juraj Posted August 11, 2018 Share Posted August 11, 2018 Hi, I want to move tax (DPH) in product page. I want to move it after the price and if it is possible, change the font and color. (see picture) I will be very grateful for every idea how to do it free and easily Link to comment Share on other sites More sharing options...
juraj Posted August 12, 2018 Author Share Posted August 12, 2018 really no helps there? Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 13, 2018 Share Posted August 13, 2018 Hi, To achieve the same, you need to change the themes/{THEME_DIR}/templates/catalog/_partials/product-prices.tpl In this file, you will find the lines like {block name='product_without_taxes'} {if $priceDisplay == 2} <p class="product-without-taxes">{l s='%price% tax excl.' d='Shop.Theme.Catalog' sprintf=['%price%' => $product.price_tax_exc]}</p> {/if} {/block} You need to move these lines inside the price div in the same file. Link to comment Share on other sites More sharing options...
juraj Posted August 13, 2018 Author Share Posted August 13, 2018 {if $product.show_price} <div class="product-prices"> {block name='product_discount'} {if $product.has_discount} <div class="product-discount"> {hook h='displayProductPriceBlock' product=$product type="old_price"} <span class="regular-price">{$product.regular_price}</span> </div> {/if} {/block} {block name='product_price'} <div class="product-price h5 {if $product.has_discount}has-discount{/if}" itemprop="offers" itemscope itemtype="https://schema.org/Offer" > <link itemprop="availability" href="{$product.seo_availability}"/> <meta itemprop="priceCurrency" content="{$currency.iso_code}"> <div class="current-price"> <span itemprop="price" content="{$product.price_amount}">{$product.price}</span> {if $product.has_discount} {if $product.discount_type === 'percentage'} <span class="discount discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</span> {else} <span class="discount discount-amount"> {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]} </span> {/if} {/if} </div> {block name='product_unit_price'} {if $displayUnitPrice} <p class="product-unit-price sub">{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}</p> {/if} {/block} </div> {/block} Which "price div" you mean? i tried to put it somewhere here, in more ways but it doesn't work. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 13, 2018 Share Posted August 13, 2018 Just after this one. {if $product.has_discount} {if $product.discount_type === 'percentage'} <SPAN class="discount discount-percentage">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</SPAN> {else} <SPAN class="discount discount-amount"> {l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]} </SPAN> {/if} {/if} Link to comment Share on other sites More sharing options...
juraj Posted August 14, 2018 Author Share Posted August 14, 2018 thank you for your help but it still doesn't work for me :/ 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