Wednesday 15 September 2004 4:59:25 am
Hello! In my product class the <b>price is not required</b>, so I can create a product without price. Now I want to show the price in my page only if it is greater than 0.00, <b>I don't want to display 0.00</b> I did several test but nothing worked fine. My code in line view
{section show=$node.object.data_map.price.content.is_empty|not}
{attribute_view_gui attribute=$node.object.data_map.price}
{/section}
And I tested these too
{section show=$node.object.data_map.price.content.is_null|not}
{section show=$node.object.data_map.price.content|gt(0)}
{section show={$node.object.data_map.price.content|eq(0)}|not}
But any of these worked fine, the price 0.00 still appear in my page... <b>How can I do this??</b>
Thanks a lot! Leandro
|