Remove brackets from discount expiry
-
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?
This is the part 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, we’d like to keep this modification as for our case the brackets are not really needed.
- The topic ‘Remove brackets from discount expiry’ is closed to new replies.