• Resolved pelican104

    (@pelican104)


    The {saved_percent} tag is adding a minus sign before the number. So although my label is “{saved_percent} OFF” and the preview window shows “50% OFF” the actual webpage displays “-50% OFF”

    How can I remove the minus sign??

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author AsanaPlugins

    (@asanaplugins)

    Hi @pelican104

    Thank you for choosing our plugin.

    We apologize for the inconvenience.

    You can remove the negative prefix by adding the below function to your child theme functions.php file.

    function asnp_wesb_remove_sale_flash_prefix() {
        return '';
    }
    add_filter( 'asnp_wesb_sale_flash_percentage_discount_prefix', 'asnp_wesb_remove_sale_flash_prefix' );

    We will add an option to the plugin settings to disable it in the future versions.

    I hope it helps.

    Best Regards

    Thread Starter pelican104

    (@pelican104)

    That is perfect, thank you.

    Plugin Author AsanaPlugins

    (@asanaplugins)

    Hi @pelican104

    You are welcome.

    The option “Enable/Disable negative sign” is added to the plugin settings in the new version.

    Please help us spread the word and boost our motivation with your 5-star review for the plugin.

    Thanks and Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘{saved_percent}’ is closed to new replies.