Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

modules/Extra_Fields/

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-14-2003, 07:49 AM
 
captainjackprogrammer captainjackprogrammer is offline
 

Member
  
Join Date: Sep 2003
Posts: 15
 

Default 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!
Reply With Quote
  #2  
Old 10-14-2003, 09:19 AM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default

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.
Reply With Quote
  #3  
Old 10-14-2003, 09:42 AM
 
captainjackprogrammer captainjackprogrammer is offline
 

Member
  
Join Date: Sep 2003
Posts: 15
 

Default

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.
Reply With Quote
  #4  
Old 10-14-2003, 10:22 AM
 
Gibberish Gibberish is offline
 

Senior Member
  
Join Date: Sep 2003
Posts: 182
 

Default

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.
Reply With Quote
  #5  
Old 10-14-2003, 10:24 AM
 
captainjackprogrammer captainjackprogrammer is offline
 

Member
  
Join Date: Sep 2003
Posts: 15
 

Default

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.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:03 PM.

   

 
X-Cart forums © 2001-2020