| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
modules/Extra_Fields/ | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
modules/Extra_Fields/
Hi,
I maintain peakseasons.com x-cart, wholesale tree lot suppier. s price I listed "Case Price" and I used Extra Fields for Unit price and Pack (no of units per package). On page where all products are listed I can ses only Case price. On detail page I can see all three values. Now, owner want me to be visible all three values (case price, unit price and pack) on page whit listed items. I tried to "copy" code from template of detail page (customer/main/products.tpl) to template with listing (customer/main/products.tpl) but it doesn't work. I am not familiar with Smarty Template Engine and I'll need simple explanation. Thank you! |
|||||||
#2
|
|||||||
|
|||||||
K i think what you want to do is display the extra field on the product.tpl right?
K say you want it to display under the product name. You would take the product name code on the products.tpl: <td valign=top> {$products[product].model} {$products[product].product}</font> <font size=1> //Lets say Case price is param00, Unit Price is param01 and Pack //is param02 Case Price: {$products[product].param00} Unit Price: {$products[product].param01} Pack: {$products[product].param02} That would display the param's under the product name on the products.tpl page. Hope that helped. |
|||||||
#3
|
|||||||
|
|||||||
I am not quite sure you understand what was my question (or I understand your post), but let me try to explain again:
if you go to http://php1.secure-shopping.com/peakseasons/customer/home.php?cat=3 you will be able to see just Case price under Product name and its description. If you click on "see setails" you will see Unit price and Pack as well. I need to put Unit Price and Pack info on http://php1.secure-shopping.com/peakseasons/customer/home.php?cat=3 page too. Is it possible? Can I use the code you already posted? Thanks! Quote:
|
|||||||
#4
|
|||||||
|
|||||||
Yes you would use the same code I posted.
you would do that same thing I posted. If Unit price is under param02 and the price for it is $1 you would put the code. Unit Price: {$products[product].param02} and that would display ont the screen Unit Price: $1 you can change the param number to whatever the param is. Also if you want the "Unit Price" text to be pulled out of language you would just replace "Unit Price" with {$lng.whateveryoucalledit} and you would get the same result but the text would be in the database for easier changes later. Hope that made more sense. |
|||||||
#5
|
|||||||
|
|||||||
Yes. It does.
Thanks! Quote:
|
|||||||
|
|||
X-Cart forums © 2001-2020
|