| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
get manufacture in products.php | ||||
|
|
Thread Tools | Search this Thread |
#11
|
|||||||||
|
|||||||||
For anyone else reading this I made one other small change and it is working like a charm
in products(_t).tpl I change the code to Code:
Before it was returning manufacture name based on the current loop number. And not it doesn't display anything if there is no manufacture set for a product. Thanks pmstudios for all the help!
__________________
animator for hire onthez.com ------------------------ x-cart v4.0.5 Linux _________________ |
|||||||||
#12
|
|||||||
|
|||||||
Ok, i'm also interested to display the Manufacture, but instead of the Products (customer/main/products.tpl) I want to display it on the actual Product Page (customer/main/product.tpl).
All I want to do is have is something as simple as: Manufacture: Sony Can some please help with what code to insert into the template file? Thank you...
__________________
Chris Dildy |
|||||||
#13
|
|||||||
|
|||||||
Quote:
In product.php, near the bottom (add lines marked with +) Code:
In customer/product.tpl, use {$manufacturer.manufacturer} to display it...
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
#14
|
|||||||
|
|||||||
thank you very much! Works a charm
i just don't understand why that option wasn't standard.
__________________
Chris Dildy |
|||||||
#15
|
|||||||
|
|||||||
In customer/product.tpl, use {$manufacturer.manufacturer} to display it...
Where do I place {$manufacturer.manufacturer} within the code of the customer/main/product.tpl page? Do I need to put it within any other code? |
|||||||
#16
|
|||||||||
|
|||||||||
That shouldn't need to go any place in particular.
Typically it would be between the {capture} and {/capture} near the top and bottom of the file
__________________
animator for hire onthez.com ------------------------ x-cart v4.0.5 Linux _________________ |
|||||||||
#17
|
|||||||
|
|||||||
Quote:
You can put it anywhere. The product info page is product specific, so the script selects the manufacturer of that product.
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
#18
|
|||||||
|
|||||||
OK
You have to place it within the template at the spot on the page where you want it to show up. If you place it at the bottom of product.tpl it will show up after all of the other tables on the page. It works great! Thanks |
|||||||
#19
|
|||||||||
|
|||||||||
That did work great. Just what I wanted.....except.. I would like to also add the SKU in the same place...product.tpl.
Can anyone give me the code to add? Thanks, Dalmuti
__________________
Louise Studio 57 Designs - X-Cart Customization Providing X-Cart Services since 2004 Hottest Blog Directory - Submit Your Blog for a Free Listing |
|||||||||
#20
|
|||||||
|
|||||||
Quote:
You should be able to reference it by just using {$product.productcode} as it's already included in the select product query.
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|