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

diplay price on products.tpl ?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-06-2003, 11:54 PM
 
iCARus iCARus is offline
 

Member
  
Join Date: May 2003
Location: Slovenia
Posts: 21
 

Default diplay price on products.tpl ?

Hello,

i dont like show "enter your price" word in products.tpl.
I want see prices instead this word.

How can i make this ?

Thanks,

iCARus
Reply With Quote
  #2  
Old 08-07-2003, 04:35 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default Maybe this will help u

I am not sure what your needs are for this, but me personaly I needed to display multiple pricing where "enter your price" was shown. So I just found the code that looks something like this:

Code:
[product].vat gt "0"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if} {else} <font class=ProductPrice>{$lng.lbl_enter_your_price} </font>

And added another if statement that looks for the category. This way I can display different text pricing for the category the customer is in.

For ex. if they are in the cars category ($cat eg 10} and I want the "enter your price" to show the different set pricing I just add them in the code.

Code:
[product].vat gt "0"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if} {else} {* <font class=ProductPrice>{$lng.lbl_enter_your_price} *} {if $cat eq 10} 26oz Jar ($20.99) | 16oz Jar ($16.99) | Tea Lights ($6.99) Votive ($1.50) | Tart ($1.00){/if} </font>

And for multiple pricing for more categories then just add an else if statement, remembering to close each if.

Code:
[product].vat gt "0"}, {$lng.lbl_including_vat} {$products[product].vat}%{/if} {else} {* <font class=ProductPrice>{$lng.lbl_enter_your_price} *} {if $cat eq 10} 26oz Jar ($20.99) | 16oz Jar ($16.99) | Tea Lights ($6.99) Votive ($1.50) | Tart ($1.00) {else if $cat eq 12} 22oz. Jar ($19.99) | 14.5oz Jar (15.99) | Tea Lights ($6.99) {/if}{/if} </font>

I hope this helps you understand. PM me if you have any questions.

Jay
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 06:42 AM.

   

 
X-Cart forums © 2001-2020