Dev Resources

  • Home
  • Reference
  • BuddyX Theme
  • Functions
  • Hooks
  • Classes
Filter by type:
Search
Browse: Home / Reference / includes/class-wc-discounts.php

WC_Discounts::validate_coupon_sale_items()

Method: Ensure coupon is valid for sale items in the list is valid or throw exception.

Source: includes/class-wc-discounts.php:804

Used by 1 function | Uses 1 function

WC_Discounts::validate_coupon_excluded_items()

Method: All exclusion rules must pass at the same time for a product coupon to be valid.

Source: includes/class-wc-discounts.php:831

Used by 1 function | Uses 2 functions

WC_Discounts::validate_coupon_eligible_items()

Method: Cart discounts cannot be added if non-eligible product is found.

Source: includes/class-wc-discounts.php:859

Used by 1 function | Uses 4 functions

WC_Discounts::validate_coupon_excluded_product_ids()

Method: Exclude products.

Source: includes/class-wc-discounts.php:877

Used by 1 function | Uses 1 function

WC_Discounts::validate_coupon_excluded_product_categories()

Method: Exclude categories from product list.

Source: includes/class-wc-discounts.php:905

Used by 1 function | Uses 2 functions

WC_Discounts::get_object_subtotal()

Method: Get the object subtotal

Source: includes/class-wc-discounts.php:943

Used by 2 functions | Uses 3 functions

WC_Discounts::is_coupon_valid()

Method: Check if a coupon is valid.

Source: includes/class-wc-discounts.php:985

Used by 1 function | Uses 11 functions

woocommerce_coupon_error

Filter Hook: Filter the coupon error message.

Source: includes/class-wc-discounts.php:1009

Used by 3 functions | Uses 0 functions

WC_Discounts::validate_coupon_usage_limit()

Method: Ensure coupon usage limit is valid or throw exception.

Source: includes/class-wc-discounts.php:601

Used by 1 function | Uses 1 function

WC_Discounts::validate_coupon_user_usage_limit()

Method: Ensure coupon user usage limit is valid or throw exception.

Source: includes/class-wc-discounts.php:650

Used by 1 function | Uses 0 functions
1 2 … 5 Next »
Proudly powered by WordPress