Tag: wc_coupon

  • Check WooCommerce coupon via Ajax

    Check WooCommerce coupon via Ajax

    Here is how a WooCommerce coupon code can be checked for validity. The code below allows us to check WooCommerce coupon against the database. This is done using the inbuilt WC_Coupon class provided by WooCommerce.