autoship_coupon_types_by_code

(src\coupons.php) Within the autoship_get_coupon_type_by_code() function. This filter can be used to adjust how QPilot Coupon Types are converted to WC Coupon types. Takes the coupon code type array as a parameter.

Example

$codes = apply_filters( 'autoship_coupon_types_by_code', array(
    'ReduceSubtotalByPercentage'  => 'percent',
    'ReduceSubtotalByAmount'      => 'fixed_cart',
    'ReduceShippingByAmount'      => NULL,
    'SetShippingToAmount'         => NULL
  ) );

Still need help? Contact Us Contact Us