Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Display manufacturer list on category page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-20-2012, 04:10 PM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default 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.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #2  
Old 03-20-2012, 04:50 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
Powertrain (03-20-2012)
  #3  
Old 03-20-2012, 06:22 PM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default 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.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #4  
Old 03-20-2012, 06:59 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 03-20-2012, 09:16 PM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default 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.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #6  
Old 03-20-2012, 09:32 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 03-21-2012, 04:54 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default Re: Display manufacturer list on category page

Try this ...

http://www.xcartmods.co.uk/x-cart-filter-by-manufacturer.html
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote

The following user thanks carlisleglass for this useful post:
Powertrain (03-23-2012)
  #8  
Old 03-21-2012, 02:20 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
Powertrain (03-23-2012)
  #9  
Old 03-23-2012, 06:49 PM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default 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.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #10  
Old 03-24-2012, 07:02 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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} 
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
Powertrain (03-24-2012)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:21 AM.

   

 
X-Cart forums © 2001-2020