All Questions
72
questions
0
votes
1
answer
116
views
Change WooCommerce cart item tax rate based on the item discounted price
I want to calculate the tax based on the item price after discount.
I have two tax rates: 5% GST and 12% GST.
For products with price after discount that is less than 1000, I want to apply a tax rate ...
0
votes
1
answer
212
views
WooCommerce after cart validation apply a voucher code as coupon discount
I'm building some functionality in WooCommerce that allows users to input an externally generated voucher code when adding a product to the cart. This voucher code is then checked to see if it's been ...
1
vote
1
answer
281
views
How to apply discount on variable and single products, based on cart quantity and product attribute in WooCommerce?
I am trying to apply a percentage discount based on quantity of products with a specific product attribute, in cart.
More precisely my goal is to apply 15% discount on orders of minimum 6 products ...
0
votes
0
answers
117
views
Check if product with category "A" is in the cart and apply a 10% discount to all products with category "B" in the cart:
I'm trying to add a 10% discount to all products that fall into category B when a product from category A is in the cart, this is what i've tried so far and from what I see there's not an obvious ...
-3
votes
1
answer
61
views
woocommerce cart qty discount for shipping
Shipping discount.
this there away to offer 50% discount on woocommerce shipping when you have 3 or more items in the cart?
eg
product 1
3
votes
1
answer
1k
views
Automatically add a percentage discount if WooCommerce cart contains at least X products
I am trying to create an automated discount that kicks in when and if the cart contains a minimum of three products or more.
If and when that is, a discount of 10% should be given no matter if the ...
1
vote
1
answer
349
views
WooCommerce progressive quantity discount for specific product categories
I was researching a method to give a progressive discount if you have more than 1 product in the cart. I found this thread and actually using this code:
//Discount by Qty Product
add_action( '...
2
votes
1
answer
144
views
Apply a welcome discount to non "on sale" items in WooCommerce
I use this code to set up a "welcome" discount for a registered user:
add_action( 'woocommerce_cart_calculate_fees', 'personal_discount_based', 20, 1 );
function personal_discount_based( $...
1
vote
1
answer
1k
views
Apply a discount based on ACF field to cart total in WooCommerce
I'm trying to create a discount programmatically for orders on my store. My users have a variable discount rate e.g. 10%. I want to apply their discount to the order before checkout, however, some ...
1
vote
1
answer
383
views
Bulk Discount for specific product ID in WooCommerce
I want to discount a specific product during checkout based on quantity thresholds:
When product >= 10 units ----- discount 2 dollars per unit
When product >= 20 units ----- discount 3 dollars ...
1
vote
1
answer
570
views
Woocommerce percentage discount per item based on quantity
Based on WooCommerce Cart Quantity Base Discount answer code, I apply a discount from xx products on shopping cart with the following:
add_action( 'woocommerce_cart_calculate_fees','...
1
vote
1
answer
474
views
WooCommerce promotional discount: Buy 10 Get 1 Free
I'm trying to set up a specific discount for three variable products (464, 465 and 466). If a customer buys ten products they get one for free.
Based on WooCommerce discount: buy one get one 50% off ...
2
votes
1
answer
428
views
WooCommerce buy one get one 50% off, excluding a product variation
I am using WooCommerce discount: buy one get one 50% off with a notice answer code, if customer purchases a specific product, customer get 50% discount off on the 2nd item.
Now If the targeted product ...
1
vote
1
answer
121
views
Add a discount when defined products are WooCommerce cart
I am trying to set a discount for when BOTH products are in the cart no matter what other products are also in there.
As of now, all it takes is one of the two within the array.
add_action( '...
0
votes
1
answer
265
views
Progressive discount based on cart total and user roles in WooCommerce
I'm using Progressive discount based on cart total in WooCommerce answer code to make some Woocommerce order total discounts (see below). But I would like to make a discount based on user role, as ...