Jump to content

Weergave incl btw en excl btw i.c.m. attributen


GreenGrace

Recommended Posts

Goedemiddag,

 

Ik gebruik geen standaard theme, en gebruikt prestashop versie 1.6.1.6

 

Ik heb product.tpl aangepast zodat ik op de producten pagina inc. en excl btw prijzen worden weergegeven:

 

<!-- prices -->
   <div class="price">
   {assign var='productPriceInc' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)}
   {assign var='productPriceWithoutRedutionInc' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)}
   {assign var='productPriceEx' value=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)}
   {assign var='productPriceWithoutRedutionEx' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)}
   <p class="our_price_display">
   <span id="our_price_display">{convertPrice price=$productPriceEx}</span> {if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}{l s='tax excl.'}{/if}<BR><BR>
   <span id="our_price_display">{convertPrice price=$productPriceInc}</span> {if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}{l s='tax incl.'}{/if}
   </p>
   {if $product->on_sale}
   <img src="{$img_dir}onsale_{$lang_iso}.gif" alt="{l s='On sale'}" class="on_sale_img"/>
   <span class="on_sale">{l s='On sale!'}</span>
   {else}
   {if $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutRedution > $productPrice}
   <span class="discount">{l s='Reduced price!'}</span>
   {/if}
   <br />
  
   {/if}
   </div> <!-- end prices -->
 
Echter als ik nu combinaties gaat gebruiken (product attributen) veranderd de excl btw prijs niet mee met de verhoging.
post-1279881-0-49850300-1468242764_thumb.png
post-1279881-0-37427600-1468242769_thumb.png
 
Prijs incl veranderd wel, alleen de excl. btw niet. Hoe kan ik dit veranderen dat de excl btw wel mee veranderd met de combinaties?
post-1279881-0-53300800-1468242892_thumb.png
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...