Help with printing a discount from a plugin
-
Hello,
I am trying to figure out how to print the extra discount on takeaway from a plugin. I contacted the plugin author to give me advice regarding how to achieve that and i got this answer:
You should contact with support of Star printer and ask them support display Fee of order then it will works fine
If you still want to get fee/discount, you can use this custom code:$order = new WC_Order( $order_id );
$discount_fee = $order->get_total_fees();`For the love of me i cant figure out how to implement it here and make it work:
if($order_meta['_cart_discount'][0] != 0) $ft("DISCOUNT", -$order_meta['_cart_discount'][0]) $ft("TOTAL", $order_meta['_order_total'][0]);
Regards
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help with printing a discount from a plugin’ is closed to new replies.