Nexus85 Posted November 29, 2020 Share Posted November 29, 2020 I want to remove the discount wrapper from the product image, I don't now how to do that. Link to comment Share on other sites More sharing options...
Guest Posted November 30, 2020 Share Posted November 30, 2020 ./themes/classic/templates/catalog/_partials/miniatures/product.tpl {if $flag.type !== 'discount'} <li class="product-flag {$flag.type}">{$flag.label}</li> {/if} or <li class="product-flag {$flag.type}" {if $flag.type == 'discount'}style="display:none;"{/if}>{$flag.label}</li> Link to comment Share on other sites More sharing options...
Nexus85 Posted November 30, 2020 Author Share Posted November 30, 2020 12 hours ago, Guest said: ./themes/classic/templates/catalog/_partials/miniatures/product.tpl {if $flag.type !== 'discount'} <li class="product-flag {$flag.type}">{$flag.label}</li> {/if} or <li class="product-flag {$flag.type}" {if $flag.type == 'discount'}style="display:none;"{/if}>{$flag.label}</li> Thank you! Works like a charm Link to comment Share on other sites More sharing options...
Guest Posted December 1, 2020 Share Posted December 1, 2020 I gladly helped. You can give a like by clicking on the gray heart below the post. Link to comment Share on other sites More sharing options...
Nexus85 Posted December 2, 2020 Author Share Posted December 2, 2020 I was a bit to fast to react, on the category page the banners are gone but on the product page the discount is still shown. Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2020 Share Posted December 2, 2020 You gave a sample from the product list, I advised you to modify the product list. If you want to make a change to the product detail, change the code in the file: ./themes/classic/templates/catalog/product.tpl Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2020 Share Posted December 2, 2020 and removal next to the price ./themes/classic/templates/catalog/_partials/product-prices.tpl find {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} change to {if $product.has_discount} {if $product.discount_type === 'percentage'} <span class="discount discount-percentage" style="display:none !important;">{l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]}</span> {else} <span class="discount discount-amount" style="display:none !important;"> {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...
Helpme09 Posted June 21, 2022 Share Posted June 21, 2022 On 11/30/2020 at 5:48 AM, Guest said: ./themes/classic/templates/catalog/_partials/miniatures/product.tpl {if $flag.type !== 'discount'} <li class="product-flag {$flag.type}">{$flag.label}</li> {/if} or <li class="product-flag {$flag.type}" {if $flag.type == 'discount'}style="display:none;"{/if}>{$flag.label}</li> where do i put this 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