Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
$integrationParams = $vars['var1']->getParams( 'integrations' );
$integrationParams->set( 'postafpro_affiliateid', 'INVALID' );
$vars['var1']->storeParams( 'integrations' );
$integrationParams = $vars['var1']->getParams( 'integrations' );
$coupons = $integrationParams->get( 'promotions_coupons', null );
if ( ! $coupons ) {
return;
}
$coupon = array_shift( explode( '|*|', $coupons ) );
if ( ! in_array( 'COUPON_CODE_HERE', $coupon ) ) {
return;
}
$integrationParams->set( 'postafpro_affiliateid', 'INVALID' );
$vars['var1']->storeParams( 'integrations' );
Please Log in to join the conversation.
Please Log in to join the conversation.