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

Display manufacturer logo in product.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 08-20-2008, 06:05 PM
  version's Avatar 
version version is offline
 

Member
  
Join Date: Aug 2008
Posts: 23
 

Default Re: Display manufacturer logo in product.tpl

{$manufacturer.manufacturerid}

I'm getting the first letter of the manufacturer instead of the ID

http://myshop.com/manufacturers.php?manufacturerid=C (wrong)

instead of:

http://myshop.com/manufacturers.php?manufacturerid=2 (correct)

any other ideas how to get the current manufacturers id?

these smarty functions are just not intuitive - even "Advanced Member"s get the basics wrong...
can we re-write them in plain php like wordpress does?
__________________
SouqBazaar
Reply With Quote
  #12  
Old 08-20-2008, 11:53 PM
  Piotr M.'s Avatar 
Piotr M. Piotr M. is offline
 

Senior Member
  
Join Date: Aug 2008
Posts: 134
 

Default Re: Display manufacturer logo in product.tpl

version,
check if you've modified php code according to my previous post.
Having first letter instead of manufacturerid takes place with code from post #7. Modified code is in post #10.
__________________
Regards,
Piotr Markushin

X-Cart PDF Catalog Generator NEW
Professional X-Cart Skins Store (7 new skins added in August 2008!)

ahedOffice.com - Web 2.0 Online Groupware
Reply With Quote
  #13  
Old 08-21-2008, 12:10 AM
  version's Avatar 
version version is offline
 

Member
  
Join Date: Aug 2008
Posts: 23
 

Default Re: Display manufacturer logo in product.tpl

thanks - works perfectly
__________________
SouqBazaar
Reply With Quote
  #14  
Old 08-23-2008, 11:23 PM
  version's Avatar 
version version is offline
 

Member
  
Join Date: Aug 2008
Posts: 23
 

Default Re: Display manufacturer logo in product.tpl

well almost perfect....

where can i specify the order?
at the moment it is by id
i would like it to be alphabetical

also what options do we have when the page get's full?
a few list display options in the module settings would be good:
- pagination
- anchor link list (by first letter)
- scroller/carousel
__________________
SouqBazaar
Reply With Quote
  #15  
Old 11-09-2008, 12:12 PM
 
gotpump gotpump is offline
 

eXpert
  
Join Date: Aug 2008
Posts: 272
 

Default Re: Display manufacturer logo in product.tpl

where in product.php should this code line be located
__________________
X-Cart DB Version: 5
Reply With Quote
  #16  
Old 06-13-2010, 01:16 AM
 
7thdesire 7thdesire is offline
 

Senior Member
  
Join Date: Sep 2006
Posts: 115
 

Default Re: Display manufacturer logo in product.tpl

i can confirm this code works in 4.3.2

but i used {$product.manufacturer} to display name if no image is there
__________________
X-cart - 4.3.2 loads of mods and custom code
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 02:20 PM.

   

 
X-Cart forums © 2001-2020