Jump to content

show wholesale price on products page


Recommended Posts

in product.tpl in your theme, locate these lines, around line 188:



   {if $product->on_sale}

{l s='On sale!'}
   {elseif ($product->reduction_price != 0 || $product->reduction_percent != 0) && ($product->reduction_from == $product->reduction_to OR ($smarty.now|date_format:'%Y-%m-%d %H:%M:%S' <= $product->reduction_to && $smarty.now|date_format:'%Y-%m-%d %H:%M:%S' >= $product->reduction_from))}
{l s='Price lowered!'}
   {/if}



   {if !$priceDisplay || $priceDisplay == 2}
{convertPrice price=$product->getPrice(true, $smarty.const.NULL)}
       {if $tax_enabled}{l s='tax incl.'}{/if}
   {/if}
   {if $priceDisplay == 1}
{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}
       {if $tax_enabled}{l s='tax excl.'}{/if}
   {/if}

   {if $priceDisplay == 2}


{convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='tax excl.'}
   {/if}




Add your Wholesale price in by adding this:

Wholesale Price: {convertPrice price=$product->wholesale_price}


before each

{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}

Link to comment
Share on other sites

  • 7 months later...

this wasn`t working for me what i found here, but i found a solution


I inserted this(and it is working) :

{l s=‘Wholesale price:’}

{$product->wholesale_price} {$wholesale_price} euro/dollar….what ever




in front of the:

{l s='Pret catalog:'}
{if !$priceDisplay || $priceDisplay == 2}


so the wholesale price shows before the final price.

Link to comment
Share on other sites

  • 2 years later...
×
×
  • Create New...