The way I have the code will cause two differnet messages to show up if the
Code:
{if $product.price ne 0 }
(which is one candle line) you will see one message (which will be a size chart graphic for that candle line) instead of the weight and price, or
Code:
{if $product.price ne 1 }
(which will be another line) you will see the other message(size chart). All I have to do to make this happen is make one candle lines price=0 and there other =1.
So can anyone fix the following code so that the two differnet messages will show if one price=0 and the other price=1?
Code:
{if $product.price ne 0 }
<tr><td class=ProductPriceConverting>
{$lng.lbl_price}:</td>
<td>
<font class=ProductDetailsTitle>{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if $config.Taxes.use_vat eq "Y" and $product.vat gt "0"}, {$lng.lbl_including_vat} {$product.vat}%{/if}
{else}
{* <input type=text size=7 name=price> *}
<tr><td>
first size chart goes here</td>
<td>
{/if}
</td>
</tr>
{/if}
{if $product.price ne 1 }
<tr><td class=ProductPriceConverting>
{$lng.lbl_price}:</td>
<td>
<font class=ProductDetailsTitle>{include file="currency.tpl" value=$product.price}</font><font class=MarketPrice> {include file="customer/main/alter_currency_value.tpl" alter_currency_value=$product.price}</font>{if $config.Taxes.use_vat eq "Y" and $product.vat gt "0"}, {$lng.lbl_including_vat} {$product.vat}%{/if}
{else}
{* <input type=text size=7 name=price> *}
<tr><td>
second size chart goes here</td>
<td>
{/if}
</td>
</tr>
{/if}
{/if}
</table>
Thanks