Remove display of Discount label

Would you mind sharing what you ended up doing ?



To save me and other the same time and hassle figuring it out ?

Thanks.

Thank you for your detailed instructions! :grin:

A lot easier is in style.css just put this


.save-price {display:none;}

Design -> Themes -> Visual Editor -> CSS section. Add the following rules:

.ty-save-price, .ty-discount-label {
    display:none;
} 

I would like to remove only the (double) discount percentage on my product detail page

see attachment

NOW

You save: €0.70 (14%)
I WANT
You save: €0.70

I tried the options above by my version is different so I dont dare change the code.

Hope someone can help

Thank!

version 4.3.4

korting-melding.jpg

Hello!

I would like to remove only the (double) discount percentage on my product detail page

see attachment

NOW
You save: €0.70 (14%)
I WANT
You save: €0.70

I tried the options above by my version is different so I dont dare change the code.
Hope someone can help
Thank!
version 4.3.4


In order to remove this info you should change the design/themes/your-active-theme/templates/common/product_data.tpl file. You can do it via My changes add-on, for example.

You need to find the part of the code:

{********************** You Save ******************}
{capture name="list_discount_`$obj_id`"}
    {if $show_price_values && $show_list_discount && $details_page}
        
            
            
            {if $product.discount}
                {__("you_save")}: {include file="common/price.tpl" value=$product.discount span_id="discount_value_`$obj_prefix``$obj_id`" class="ty-list-price ty-nowrap"} ({$product.discount_prc}%)
            {elseif $product.list_discount}
                 {__("you_save")}: {include file="common/price.tpl" value=$product.list_discount span_id="discount_value_`$obj_prefix``$obj_id`"} ({$product.list_discount_prc}%)
            {/if}
        
    {/if}
{/capture}
{if $no_capture}
    {assign var="capture_name" value="list_discount_`$obj_id`"}
    {$smarty.capture.$capture_name nofilter}
{/if}

And remove the following part of the code:

({$product.list_discount_prc}%)

in this section.

Do not forget to clear the cache of your installation and templates.

Best regards,

Design -> Themes -> Visual Editor -> CSS section. Add the following rules:

.ty-save-price, .ty-discount-label {
    display:none;
} 

Than you once more eCom Labs!! Your help is invaluable to all members.