Jump to content

Kombinace - nemění se cena bez DPH


Qnik

Recommended Posts

Zdravím ve spolek.

Přeložit eshop ze starého systému na prestu. Nalezli jste problém s zobrazením ceny v detailu produktu. Mám použité kombinace, které mají vliv na cenu. Pokud ovšem mezi těmito kombinacemi přepínám, změní se pouze cena s DPH, rád bych si změnil cenu obou. Příkládám prontscreeny (nepřidávám, nejdou vložit ...) i kód v produktu.tpl týkající se tohoto problému.

 

			<div class="price">	
                        <p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
                           {if $product->quantity > 0}<link itemprop="availability" href="http://schema.org/InStock"/>{/if}
                           {if $priceDisplay >= 0 && $priceDisplay <= 2}
                              <span id="our_price_display" itemprop="price">{convertPrice price=$productPrice}</span>
                              {if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))}
                                 <span>{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}<br>takneco</span>
                              {/if}
                              <meta itemprop="priceCurrency" content="{$currency->iso_code}" />
                           {/if}
                        </p>
                        <p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
                              <span id="pretaxe_price">
                              <span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span>
                              {l s='tax excl.'}
                           </span>
                        </p>
                        <p id="reduction_percent" {if !$product->specificPrice || $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}>
                           <span id="reduction_percent_display">
                              {if $product->specificPrice && $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}
                           </span>
                        </p>
                        <p id="old_price"{if (!$product->specificPrice || !$product->specificPrice.reduction) && $group_reduction == 0} class="hidden"{/if}>
                           {if $priceDisplay >= 0 && $priceDisplay <= 2}
                              <span id="old_price_display">{if $productPriceWithoutReduction > $productPrice}{convertPrice price=$productPriceWithoutReduction}{/if}</span>
                              {if $tax_enabled && $display_tax_label == 1}{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}{/if}
                           {/if}
                        </p>
                        {if $priceDisplay == 2}
                           <br />
                           <span id="pretaxe_price">
                              <span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span>
                              {l s='tax excl.'}
                           </span>
                        {/if}
                     </div>

 

Edited by Qnik (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
On 9. 2. 2018 at 9:52 AM, Caleydon said:

Ak chcete aby sa vam dynamicky menila cena aj bez DPH, je potrebne to doprogramovat do suboru product.js. V product.tpl nie je potrebne robit nic.

Dobrý den, děkuji za informaci. Jste mi ochotný v tomto problému prosím pomoci? 

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...