Advertisement
verygoodplugins

Untitled

Jun 8th, 2020
1,435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. function adjust_deal_prices( $deal, $order_id ) {
  2.  
  3.     $order = wc_get_order( $order_id );
  4.  
  5.     $deal['value'] = $order->get_subtotal();
  6.  
  7.     return $deal;
  8. }
  9.  
  10. add_filter( 'wpf_ecommerce_activecampaign_add_deal', 'adjust_deal_prices', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement