View Single Post
  #9  
Old 03-29-2012, 05:55 AM
 
Mike SSI Mike SSI is offline
 

Advanced Member
  
Join Date: Feb 2011
Posts: 86
 

Default Re: Show Price in Price Variant As Price

{math equation="price_modifier+current_price" price_modifier=$o.price_modifier current_price=$product.taxed_price format="%.2f" assign=total_variant_price}
{currency value=$total_variant_price plain_text_message=1}[/code]

The code above by totaltec works great but it doesn't show the cost of the first option in the list.

This code will show the cost of first option in list also:

{if $v.is_modifier eq 'Y' and $o.price_modifier ne 0}
 (
{if $o.modifier_type ne '%'}
{math equation="price_modifier+current_price" price_modifier=$o.price_modifier current_price=$product.taxed_price format="%.2f" assign=total_variant_price}
{currency value=$total_variant_price plain_text_message=1}
{*** disable orig code currency value=$o.price_modifier display_sign=1 plain_text_message=1***}
{else}
{$o.price_modifier}%
{/if}

{else}
 ({currency value=$product.taxed_price plain_text_message=1}
{/if}
)
__________________
X-Cart Gold 4.7.5
Reply With Quote