Support » Plugin: Woo Product Category Discount » Remove brackets from discount expiry

  • Resolved giac


    Hi there, thanks for the great plugin, we removed the brackets from the discount expiry date label modifying the plugin core, of course it will be lost at the next update, is there any way to make this mod permanent?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Vidish


    Also, if you love our plugin, you can write a good review with 5 rating, that will help our future users! Thanks!

    Hi Vidish, this is the parte of the code we edited in the file class-woo-cat-disc-public.php

    if (!empty($disc_data)) {

    $price = wc_get_price_to_display($product, array(‘price’ => $disc_data[‘price’]));
    $new_price = wc_get_price_to_display($product, array(‘price’ => $disc_data[‘disc_price’]));
    $disc_label = __(‘ ‘, ‘woocatdisc’) . $disc_data[‘disc_label’] . __(‘ ‘, ‘woocatdisc’);

    $price = wc_format_sale_price($price, $new_price) . $disc_label;

    this the original part

    (‘ ( ‘, ‘woocatdisc’) . $disc_data[‘disc_label’] . __(‘ ) ‘, ‘woocatdisc’);

    that was containing the opening and closing brackets, now missing, we’d like to keep this modification as for our case the brackets are not really needed.

    • This reply was modified 2 years, 4 months ago by giac.
    Plugin Author Vidish


    Hi @giac,

    I think you are writing in wrong support thread. Our plugin does not have any such file. Can you please make sure its “Woo Product Category Discount” plugin?

    cancel this theread than please

    Plugin Author Vidish


    okay, marked it as resolved!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove brackets from discount expiry’ is closed to new replies.