You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When data is constructed in class-pmpro-zapier.php from the MemberOrder object, the discount code is not properly added to the $data array that is then sent to Zapier.
When the order is loaded it's handled in the code below for all of the different Zapier options available:
static function pmpro_added_order( $order ) {
// bail if setting is not checked
$options = PMPro_Zapier::get_options();
if ( empty( $options['pmpro_added_order'] ) ) {
return;
}
// Get the saved order.
$order = new MemberOrder( $order->id );
But this code loads in the DiscountCode object into $order, which is then set to NULL when passed through to Zapier.
The additional of this line will retrieve the discount code used and replace the discount_code object:
When data is constructed in class-pmpro-zapier.php from the MemberOrder object, the discount code is not properly added to the $data array that is then sent to Zapier.
When the order is loaded it's handled in the code below for all of the different Zapier options available:
But this code loads in the DiscountCode object into
$order
, which is then set to NULL when passed through to Zapier.The additional of this line will retrieve the discount code used and replace the discount_code object:
This will then be available from Zapier to assign to the target application.
The text was updated successfully, but these errors were encountered: