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)
-   -   Display manufacturer list on category page (https://forum.x-cart.com/showthread.php?t=63034)

Powertrain 03-20-2012 04:10 PM

Display manufacturer list on category page
 
HI,

I have searched for this but only found posts for displaying manufacturer on product page.

I would like to display available manufacturers on category/subcategory page.

If any product in that category has manufacturer specified it would display a list of those manufacturers below or above product list.

Is there a post somewhere that has covered this, is it possible and how would I go about it?

Using X-Cart 4.4.2

Please point me in the right direction.

Thanks.

totaltec 03-20-2012 04:50 PM

Re: Display manufacturer list on category page
 
Use webmaster mode and look at the variables assigned on those pages. Here is a tut if you are not familiar with this method:http://forum.x-cart.com/showthread.php?p=335522 #2 on the list currently.

If you can see the variables, you should be good to go to write some Smarty code, if they are not assigned you will need to dive into the DB with PHP and assign them.

Kind of a generic response, but hopefully it will help.

Powertrain 03-20-2012 06:22 PM

Re: Display manufacturer list on category page
 
Thanks Mike, I'll try my best but not really sure what variables to look for, where will they be displayed?

I'm surprised that this is not default function in x-cart.

cflsystems 03-20-2012 06:59 PM

Re: Display manufacturer list on category page
 
Products shown on products list pages have manufacturerid specified for them in the product array but not the manufacturer name. If you want to show a list of manufacturers this will stillhas to be custom coded within php to assign the list to smarty with names

Powertrain 03-20-2012 09:16 PM

Re: Display manufacturer list on category page
 
Quote:

Originally Posted by cflsystems
Products shown on products list pages have manufacturerid specified for them in the product array but not the manufacturer name. If you want to show a list of manufacturers this will stillhas to be custom coded within php to assign the list to smarty with names


Hey Steve :)

Are there any examples on forums that you are aware of?

Thanks.

cflsystems 03-20-2012 09:32 PM

Re: Display manufacturer list on category page
 
Not aware of anything like this but there could be something in here. Try searching again. And you know my email if you need professional help with this

carlisleglass 03-21-2012 04:54 AM

Re: Display manufacturer list on category page
 
Try this ...

http://www.xcartmods.co.uk/x-cart-filter-by-manufacturer.html

cherie 03-21-2012 02:20 PM

Re: Display manufacturer list on category page
 
Depending on the skin, the list of Manufacturers should always show in the menu on the side on all pages. Also check that the box is checked in the Manufacturers settings.

Powertrain 03-23-2012 06:49 PM

Re: Display manufacturer list on category page
 
Quote:

Originally Posted by cherie
Depending on the skin, the list of Manufacturers should always show in the menu on the side on all pages. Also check that the box is checked in the Manufacturers settings.


They do but it always displays ALL manufacturers, i'd like to display only manufacturers that exist in products belonging to category you are viewing, if that makes sense.

Displaying all manufacturers on homepage is fine but once you click on category it should only display manufacturers from products in that category.

cherie 03-24-2012 07:02 AM

Re: Display manufacturer list on category page
 
You could do something like this on the product listing or subcategories tpl (untested):

PHP Code:

{foreach from=$products item=p}
  {foreach 
from=$manufacturers_menu item=m}
    {if 
$p.manufacturerid $m.manufacturerid}
      {
$p.product},
    {/if}
  {/foreach}
{/foreach} 



All times are GMT -8. The time now is 07:51 PM.

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