| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Manufacturer name in from of Product name | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#11
|
|||||||
|
|||||||
![]() In my opinion (take that for what it's worth) I would be VERY careful here... and I would edit the templates. There aren't THAT many templates involved... maybe half a dozen?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#12
|
|||||||||
|
|||||||||
![]() Quote:
Ok I didn't check to see what is affected but that's not the way to go then. So you can either change the php to export to smarty new variable with this value (that way product array won't be affected, but you still have to change the templates to reflect the new variable) or as carpeperdiem posted - change the templates only, which I think you shoud do. Sorry to mislead you like this
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#13
|
|||||||||
|
|||||||||
![]() Steve, if you checked it and it's working please upload your file (include/func.product.php ). I will make a backup and replace with yours. My X-Cart version is 4.2.2.
Hope an expert will see this and solve the mistery ![]()
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#14
|
|||||||||
|
|||||||||
![]() I didn't keep the changes and my version is 4.2.1
If you insist on changing php files... ![]() Code:
Code:
Code:
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#15
|
|||||||||
|
|||||||||
![]() Steve, the last solution is ok to me. Thanks for your support.
__________________
X-Cart Next: Business 5.2 (learning and testing) X-Cart Classic: Gold and Gold Plus 4.7 Lots of Modules and Customizations OS in use: Red Hat Enterprise, Fedora, CentOS, Debian, Ubuntu, Linux Mint, Kali Linux Ideas for Server configuration (basicaly): Nginx/Pound (reverse proxy), Apache/Nginx (webserver), Squid/Varnish (cache server), HHVM or (PHP-FPM + PHP 5.6 + opcache), MariaDB/Percona MySQL Server, Redis (storing sessions) You can catch my ideas here: http://ideas.x-cart.com |
|||||||||
#16
|
|||||||||
|
|||||||||
![]() No problem
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#17
|
|||||||
|
|||||||
![]() OK thanks for the tips. That seems an option. If you both recommend to edit the templates then I would rather do that option.
In products_list.tpl we currently have: HTML Code:
How would I change this to insert the manufacturer name beforehand. I can of course display the manufacturer ID itself by doing this: HTML Code:
And the following wouldn't work! HTML Code:
I guess that I'm not far away? Thanks.
__________________
X-Cart Gold version: 4.2.2 Apache version: 2.2.11 PHP version: 5.2.9-2 phpMyAdmin: 3.1.1 MYSQL version: 5.0.51a Operating system: Windows Vista Ultimate |
|||||||
#18
|
|||||||
|
|||||||
![]() try,
Code:
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#19
|
|||||||
|
|||||||
![]() Quote:
Thanks. That's ok if I want to display the manufacturer ID (1, 2 and so on). How do I modify it to get the actual manufacturer?
__________________
X-Cart Gold version: 4.2.2 Apache version: 2.2.11 PHP version: 5.2.9-2 phpMyAdmin: 3.1.1 MYSQL version: 5.0.51a Operating system: Windows Vista Ultimate |
|||||||
#20
|
|||||||
|
|||||||
![]() $product.manufacturer
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|