Get on sale product
-
Hi, I need to alter sale price (when there is any) shown in the invoice and I’ve tried to get on sale product with this:
add_filter('wf_pklist_alter_item_price', 'wt_pklist_item_price', 10, 5); function wt_pklist_item_price($item_price, $template_type, $_product, $order_item, $order) { if( $_product->is_on_sale() ) { // do something } }
But this didn’t worked. Any suggestion how to achieve this? Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get on sale product’ is closed to new replies.