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

Displaying a link to Manufacturer within a Product

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-27-2009, 10:23 PM
 
joannet joannet is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 105
 

Default Displaying a link to Manufacturer within a Product

I would like to add a link to a product manufacturer in the individual product page itself.

To explain by example:

There are about 1000 products in the store and over 50 Manufacturers that make the different products.

I've set up the products and the manufacturers. So the products are displayed in each category as well as under each Manufacturer.

The idea is that somewhere on the individual product page, there should be a link to the manufacturer of that product.

"Click here to read about the Manufacturer" or something similar.

For ease, it would be ideal if this could appear on the individual product page automatically, depending on what Manufacturer has been selected on the product page in admin.

I thought of adding an extra field named Manufacturer and then type out the link to the manufacturer in each labour intensive for the amount of products/manufacturers on the site.

Any ideas or help would be greatly appreciated.

Thanks
__________________
/joannet/
X-Cart version 4.1.9 and above
Reply With Quote
  #2  
Old 09-28-2009, 04:11 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default Re: Displaying a link to Manufacturer within a Product

Hi Joanne

What version of x-cart are you using for this shop?
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 09-28-2009, 06:42 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Displaying a link to Manufacturer within a Product

You may need to adjust depending on your cart version but this code will show manufacturer image. Put it in skin1/customer/main/product.tpl where you want it to show
Code:
{if $product.manufacturer ne ""} <a href="manufacturers.php?manufacturerid={$product.manufacturerid}"><img src="image.php?id={$product.manufacturerid}&amp;type=M" alt="{$manufacturer}" /></a>&nbsp;<a href="manufacturers.php?manufacturerid={$product.manufacturerid}">See All Products</a> {/if}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 3 users thank cflsystems for this useful post:
3andena (03-01-2012), am2003 (09-28-2009), joannet (09-29-2009)
  #4  
Old 09-28-2009, 11:25 AM
 
joannet joannet is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 105
 

Default Re: Displaying a link to Manufacturer within a Product

Hi Paul,

Version 4.2.2 for this one.
__________________
/joannet/
X-Cart version 4.1.9 and above
Reply With Quote
  #5  
Old 09-29-2009, 03:34 PM
 
joannet joannet is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 105
 

Default Re: Displaying a link to Manufacturer within a Product

Thanks Steve - works well!
__________________
/joannet/
X-Cart version 4.1.9 and above
Reply With Quote
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 03:10 PM.

   

 
X-Cart forums © 2001-2020