Apply woocommerce coupon based on number of products - wordpress

I have created a coupon with product % discount 100%.
Screenshot: http://prntscr.com/eqom1u
Product also specified: http://prntscr.com/eqomba
Now i want my coupon to work for purchasing two 1 Private Training.
Case be like: If i add 1 Private Training in cart then coupon applies and i buy a product again next time i should be able to use that coupon and then only coupon should expire.
Next, If i add two 1 Private Training in cart then coupon applies and while i go for next purchase then coupon should expire cause coupon meets the requirment of two 1 Private Training.
Any one can suggest how to achieve this?

Related

Restrict coupon usage for attributes used for subscription orders

I have tried to use what I found in "Exclude variations with 2 specific attribute terms from coupon usage in Woocommerce" but I can't get it to work. My attribute $taxonomy is 'puroptions' for "purchase options" and the three $term_slugs = array('subscribe1','subscribe2','subscribe3'); for 10% discount subscription orders for one, two or three months. There is also the option for "one time purchase" at regular price.
I am trying to exclude the subscription discount attributes so customers don't get an extra 10% when we offer a 10% coupon. Either they subscribe to a product to get 10% or they use the coupon which only takes 10% from the one time purchase. Can anyone help.

Split shipping cost in cart

I have Shipping costs based on the number of categories in cart. Base shipping is 250 and if the number of categories is more than 1 for every category is charged extra 50. At the moment everything is shown together in a cart, I would like to be extra cost visible with a label and new row.
It looks like you might need to modify the WooCommerce checkout template in the theme that you are using.

Woo Commerce Conditional Tax Depending on products in cart

Hi community I have a pickle of a problem involving TAX, and I really need your help with it. I need a solution whereby if a certain product is added to the cart then the Tax rate for all products that are in the cart drop to the lower tax rate. Here is how this problem arises, one of the products is a service, this product can only be chosen if other products are also in the cart. If the customer chooses this product then the tax rate for all products drops to a lower tax rate, (as the products become part of a service which is taxed here at a lower rate) if the customer doesn't choose this product then the rate remains at the higher rate. - The logic is .. If cart contains product A then tax rate of all products changes to Lower Tax Rate.
I found this code which has a similar logic to it, but not quite there, this changes the tax class based on the subtotal being less than 110. I need to change the tax class based on wether a specific product is in the cart.. I have tried changing "subtotal" to "product" changing the "<= 110" to "= 'fitting' (fitting is the product title) but it didn't work. Any code gurus got any input on this one?
add_filter( 'woocommerce_product_tax_class', 'big_apple_get_tax_class', 1, 2 );
function big_apple_get_tax_class( $tax_class, $product ) {
if ( WC()->cart->subtotal <= 110 )
$tax_class = 'Zero Rate';
return $tax_class;
}

Gravity Forms - Conditional Result

I have a GF with 3 products at a set price. However, if the user purchases more than one, there's a $50 discount on each additional item.
EX: Product 1 = $500
User buys 2 items, $500 + $450 (total = $950). Is there a way to do this with native (or plugin) conditional logic?
The only way I know how to do this natively is to create an extra Product field that adds as a "base" fee. In your case, that fee would be $50. Then your product price would be $450 all the time. Use conditional logic to "show" the base fee when only 1 item is ordered and to "hide" the base fee when more than 1 item is ordered.

Apply coupon per product

I want to apply coupon per product basis, not on whole complete cart. So that my coupon could subtract that specific amount form all item one by one.
Pretty straight forward if your woocommerce is up to date. When you go to Dashboard > Woocommerce > coupons and add new. You can select from several options including Cat Discount, Cart % Discount, Product Discount, Product % discount. You just select either product or product % and you're good to go. Only that product will be discounted leaving the rest of the cart at full price.

Resources