Use WooCommerce hook woocommerce_coupon_is_valid to check if coupon is valid. Example shows how to make sure certain coupons are valid for logged in users only. Same example can be use to extend validation, for example …
Continue ReadingHow to quickly unhook WooCommerce template parts
It’s possible to use wc_get_template filter to quickly remove unwanted template parts from WooCommerce templates. This is a single filter that works for all template parts, so you don’t need to look for exact ‘remove_filter’ …
Continue Reading