X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   modules/Extra_Fields/ (https://forum.x-cart.com/showthread.php?t=4762)

captainjackprogrammer 10-14-2003 07:49 AM

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!

Gibberish 10-14-2003 09:19 AM

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.

captainjackprogrammer 10-14-2003 09:42 AM

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:

Originally Posted by Gibberish
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.


Gibberish 10-14-2003 10:22 AM

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.

captainjackprogrammer 10-14-2003 10:24 AM

Yes. It does.

Thanks!


Quote:

Originally Posted by Gibberish
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.



All times are GMT -8. The time now is 01:11 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.