Home » Hooks and Filters » Coupons » wpsc_coupon_compare_logic

wpsc_coupon_compare_logic

Description: Filter to add new coupon condition logic, gets triggered if no $c['property'] matches the default coupon logics.

  • File: wpsc-includes/coupons.class.php
  • Function: compare_logic()
  • Arguments
    • false : (boolean) Return a default value of false. The coupon logic will override with a value of true if the coupon can be applied.
    • $c : (array) Coupon Condition logic
    • $product_obj : (object) Product Info
  • Return: (boolean) Apply coupon?

Leave a response


Stop SOPA