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 logo in product.tpl (https://forum.x-cart.com/showthread.php?t=22026)

version 08-20-2008 06:05 PM

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?

Piotr M. 08-20-2008 11:53 PM

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.

version 08-21-2008 12:10 AM

Re: Display manufacturer logo in product.tpl
 
thanks - works perfectly

version 08-23-2008 11:23 PM

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

gotpump 11-09-2008 12:12 PM

Re: Display manufacturer logo in product.tpl
 
where in product.php should this code line be located

7thdesire 06-13-2010 01:16 AM

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


All times are GMT -8. The time now is 05:14 AM.

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