Questions tagged [discount]

405 questions
2
votes
1 answer

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 id is a variable product with for example 3…
user13656551
2
votes
2 answers

Buy one get second 50% off for WooCommerce product variations

I wish to set up a specific discount on a particular variable products but for certain selected variations not for all variation: eg : my varible id - 1571 variation id - 1572 variation id - 1573 So if customer buys one product they get the…
2
votes
1 answer

Discount based on WooCommerce product custom input fields

I'm trying to give the user a discount based on a quantity field in the single product page. Basically, the website sells tickets and I have a different price for adults and for children. So I created input fields in the single product page so the…
2
votes
1 answer

Discounting the cheapest item for a specific category in WooCommerce

I wound like to discount the cheapest cart item in Woocommerce, based on a product category. Based on "Cart discount for product that cost less in Woocommerce" answer code that works perfectly. But how to make it work for a specific product category…
2
votes
2 answers

Dynamic sale price display for specific products in Woocommerce

I need to develop a script in function file that display sale price for specific categories for registered users. This code work fine. I need to add sale price design to it function thenga_customer_specific_pricing( $price, $product ) { if…
2
votes
1 answer

Auto apply coupon based on total spent in shop woocommerce

I need to apply a previously created coupon in woocommerce cart based on total spent in shop by logged in users. Example, If user already spent $300 or more in previous orders, in the next order, automatically apply "xxx" coupon. based on "Apply…
2
votes
1 answer

Add calculated saving total in Woocommerce order totals rows

In Woocommerce, I am using the following code to calculate and display 'Total Saving' on the order in Cart and checkout pages: function wc_discount_total_30() { global $woocommerce; $discount_total = 0; foreach (…
DVJy
  • 107
  • 1
  • 11
2
votes
1 answer

Cart item discount based on specific product variation in Woocommerce

I’ve, on my DIY sell store, a product named ‘Reusable wet’ which come in different patterns and different packages. 5 Reusable wet cost €10 10 Reusable wet cost €18 Since they are a lot of different patterns, the customer could want 10 wet, but…
LoïcR
  • 4,940
  • 1
  • 34
  • 50
2
votes
1 answer

Cart item discount based on quantity in Woocommerce 3

My WP site sells customized t-shirts. The customization plugin makes each customized shirt a line item in the woocommerce cart. If there are 2 shirts ordered of one design (quantity of 2 on that line item) I want to discount. But if there is just 1…
1amdadmt
  • 33
  • 1
  • 6
2
votes
0 answers

Woocommerce pdf invoice- Display subtotal that includes discount and without tax?

I'm using a woocommerce plugin (Woocommerce pdf invoice & packing slip), I have been trying to make this happen, I was close to achieving it but it occurred some bugs when there is tax included. So I’m looking to display a “Subtotal after discount”…
2
votes
1 answer

Apply a discount on the cart content total excluding taxes in WooCommerce

I need to apply a discount to the cart subtotal before tax is calculated if a user is ordering for the first time. However, tax is calculated per-item in WooCommerce and added to the subtotal afterwards. So I need to apply the discount to the items…
Seb G
  • 661
  • 1
  • 15
  • 34
2
votes
1 answer

Magento 2 apply discount on tax issue + FPT

Firstly I am using Magento 2.1.8 version I'm facing an issue with tax total amount and discount from coupon code. Whenever I apply a discount coupon on cart, tax amount stays the same. I have read a few posts saying that Magento 2 option: My…
Macas
  • 560
  • 3
  • 22
2
votes
1 answer

Add a custom bundle cart discount for non discounted items by a coupon

I have Woocommerce cart and I successfully added a "bundle" discount that allows a $7 discount off each item in the cart if the cart quantity is 5 or more. I also want to have coupons enabled for certain products. but I don't want to stack my…
Nick
  • 1,036
  • 2
  • 14
  • 27
2
votes
1 answer

Progressive discount based on cart total in WooCommerce

I'm trying to automatically apply 3 different coupon codes in WooCommerce Cart. Here's my code! add_action( 'woocommerce_before_cart', 'apply_matched_coupons' ); function apply_matched_coupons() { global $woocommerce; $coupon_code5 =…
Arne De Belser
  • 121
  • 4
  • 13
2
votes
0 answers

How to fix discount amount directly in Odoo POS

When I tried to host odoo 9 points of sale, I am able to fix the discount in percentage. But how can I set the discount in amount? There we can fix the amount to be paid. But this is not calculated as the discount. We need to resemble this discount…
Jithin U. Ahmed
  • 1,495
  • 1
  • 19
  • 29