![]() |
Re: Manufacturer name in from of Product name
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. |
Re: Manufacturer name in from of Product name
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? |
Re: Manufacturer name in from of Product name
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 |
Re: Manufacturer name in from of Product name
Quote:
$product.manufacturer is a valid variable in product.tpl |
Re: Manufacturer name in from of Product name
Quote:
$product.product is the value of product field in products table. In func.product.php we find Code:
$product["producttitle"] = $product['product']; What's the reason? I don't know maybe to make it more obvious that this is the product name |
Re: Manufacturer name in from of Product name
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:
{$product.product|escape} HTML Code:
{$product.manufacturer|escape} If need be I'll try the method described in #14 but I got the impression that it was not best practice. |
Re: Manufacturer name in from of Product name
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 |
Re: Manufacturer name in from of Product name
Quote:
Thanks very much Steve. That makes sense. I'll see how I get on doing that. |
All times are GMT -8. The time now is 07:38 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.