X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Manufacturer category (https://forum.x-cart.com/showthread.php?t=34601)

k20tuned 10-14-2007 09:03 AM

Manufacturer category
 
Is there a way to have the manufacturer section shown above the category section on the home page?

xray2 10-14-2007 06:04 PM

Re: Manufacturer category
 
There may be a more elegant solution but...

Fire up your x-cart admin menu, select edit templates then navigate to the "customer" directory and select the home.tpl template. ( /customer/home.tpl )


Locate the manufactures display code:

Quote:

{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
{include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}

Now move the manufactures code above the categories display code:

Quote:

{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{include file="customer/categories.tpl" }
<br />
{/if}

On the x-cart stock template, the final version would look like this:

Quote:


{if $active_modules.Manufacturers ne "" and $config.Manufacturers.manufacturers_menu eq "Y"}
{include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{if $categories ne "" and ($active_modules.Fancy_Categories ne "" or $config.General.root_categories eq "Y" or $subcategories ne "")}
{include file="customer/categories.tpl" }
<br />
{/if}
{if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu eq "Y"}
{include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}


-- xray2

k20tuned 10-14-2007 06:27 PM

Re: Manufacturer category
 
well done, it works great. thank you

balinor 10-15-2007 04:25 AM

Re: Manufacturer category
 
Moving this to the Template Editing forum.

ladybird 10-20-2008 09:38 PM

Re: Manufacturer category
 
Further to this thread, I am trying to get the manufacturers list to display permenantly in menu box like the category list does.

I have figured out how to change the name of manufacturers to Brands, now I need to put it in the standard categories bordered menu box and have it appear on every page.

Any thoughts appreciated

JWait 10-21-2008 04:53 PM

Re: Manufacturer category
 
If you did the change as shown above, it should already do what you ask. How did you change it to "Brands", and did it display properly before you made the name change?

ladybird 10-21-2008 05:36 PM

Re: Manufacturer category
 
Hi,

if you click on makeuwell.com.au in my signature you will see that in the template we are using, 'manufacturers' only appears in the vert left menu under Special, with no border and you have to click on it to actually see the manufacturers.

In order to change the name I just changed the associated label in languages which was easy but I have been unable to figure out how to make the actual list of manufacturers appear on every page like the list of categories does.


All times are GMT -8. The time now is 01:36 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.