View Single Post
  #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