Featured Items, at Gator Shop (powered by gators plus we dont feel you should be punished with higher shipping fees based on your total order value. Blog, the Hosting Blog, visit our creatively-named blog, where techRead more
Tax Title and Tags not included in vehicle prices shown and must be paid by the purchaser. Take the new Accord and Civic sedans, for example. 2019 Honda Fit LX, lX CVT Regular Unleaded I-4.5 L/91.Read more
function get_free_shipping( context 'view' ) return this- get_prop( 'free_shipping context * Get product categories this coupon can apply. public function set_date_modified( date ) this- set_date_prop( 'date_modified date * Set how many times this coupon has been used. More on shipping zones here. View on Trac, called by 1 to 1 of 1, invoked. Youll also need to go to Woocommerce Settings Shipping and then setup a shipping zone with a free shipping option for this to fully work. public function _construct( data ' ) parent construct( data / If we already have a coupon object, read it again.
No additional plugins required to do just about everything youd want and most customers would expect when working with coupons. If ( data instanceof WC_Coupon ) this- set_id( absint( data- get_id ) return; / This filter allows custom coupon objects to be created on the fly. 'woocommerce' break; default: err break; return apply_filters( 'woocommerce_coupon_error err, err_code, this * Map one of the WC_Coupon error codes to an error string. Give Limit usage to X items a value if you want to restrict how many items the coupon can apply. Use template/p for output rendering of the log * (PRO) feature: Limit coupon to first time purchase only * (PRO) enhancement: Free products: Better grid layout of the free product selector * (PRO) enhancement: Free products: Auto submit of selection (works for inputs in container. @return boolean public function get_virtual( context 'view' ) return (bool) this- get_prop( 'virtual context * Get discount amount for a cart item. If the restrictions are no longer met, it will silently be removed from the cart. With the Products box, you can begin typing the name of one or more of your products and then select them from the dropdown that appears. '3.0' coupon key wc_string_to_array( value break; case 'individual_use case 'free_shipping case 'exclude_sale_items if! Individual use only prevents this coupon from being used when another one is already applied, or applying additional coupons after this one was already added. Id 'shop_coupon' get_post_type( data ) ) this- set_id( data else this- set_id( id this- set_code( data else this- set_object_read( true * If the object has an ID, read using the data store. Apply coupon through an url like this: Use the url voila!
The WooCommerce coupons class gets coupon data from storage and checks coupon validity. The WordPress Core woocommerce coupon get discount amount hook. Function filter_woocommerce _coupon _get _discount_amount ( discount, discounting_amount, cart_item, single, instance ). WooCommerce Extended Coupon Features adds functionality to the WooCommerce coupons and allows for automatic discount rules.