Qnik Posted February 8, 2018 Share Posted February 8, 2018 (edited) 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 February 8, 2018 by Qnik (see edit history) Link to comment Share on other sites More sharing options...
Caleydon Posted February 9, 2018 Share Posted February 9, 2018 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. Link to comment Share on other sites More sharing options...
Qnik Posted March 2, 2018 Author Share Posted March 2, 2018 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 More sharing options...
Caleydon Posted March 8, 2018 Share Posted March 8, 2018 Mozete ma kontaktovat cez https://www.prestashop.sk/kontakt Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now