| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Manufacturer name in from of Product name | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
![]() Quote:
Doesn't work for me I'm afraid. I tried both these options in post #17. Is bringing in the manufacturer more involved than modifying this bit of code? 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 |
|||||||
#22
|
|||||||||
|
|||||||||
![]() Quote:
Use post #14. Then you should edit some tpl files. And replace $product.product and $producttitle with your new variable. For the future I will insert an check box in Admin and make some if statements. For example: Do you want Manufacturer name in front of product name?
__________________
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 |
|||||||||
#23
|
|||||||||
|
|||||||||
![]() One more soft question. What is the difference between $product.product and $product.producttitle? Are they the same? Maybe they have same values, using different queries.
Cheers
__________________
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 |
|||||||||
#24
|
|||||||
|
|||||||
![]() Quote:
$product.manufacturer is a valid variable in product.tpl
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
#25
|
|||||||||
|
|||||||||
![]() Quote:
$product.product is the value of product field in products table. In func.product.php we find Code:
What's the reason? I don't know maybe to make it more obvious that this is the product name
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#26
|
|||||||
|
|||||||
![]() Quote:
Does that mean it should work in products_list.tpl (line 29). Is that what you're saying? Because when I alter: HTML Code:
HTML Code:
If need be I'll try the method described in #14 but I got the impression that it was not best practice.
__________________
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 |
|||||||
#27
|
|||||||||
|
|||||||||
![]() product.tpl and products_list.tpl are different templates and $product.manufacturer is not be available in products_list.tpl
You need to edit the php file responsible for populating the products array for products_list.tpl to include manufacturer description in the query
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#28
|
|||||||
|
|||||||
![]() Quote:
Thanks very much Steve. That makes sense. I'll see how I get on doing that.
__________________
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|