Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [discount]

Indicates Questions regarding Shopping Cart discount

225 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
3 answers
2k views

Magento 2: How to get discount price for each cart rule in quote

I need to get all discounted price from each cart rule which is applied on current quote. I am getting applied rule ids from $quote->getAppliedRuleIds() and I am getting total discounted amount but ...
Max's user avatar
  • 323
8 votes
1 answer
1k views

Shopping Cart total percentage discount when specific item is in cart

I have a specific type of shopping cart rule I'd like to create. You can think of it as a 'variety discount'; the more products from different categories the customer has in their basket, the greater ...
Gaffen's user avatar
  • 81
7 votes
0 answers
1k views

Magento 2: How to Show Discount Coupon Applied Code Product wise?

In Shopping Cart, I have 2 products. When I am applying the Promo Code it's going to apply on only 1 product as per the Shopping Cart/Promotion Rules. I would like to show discount code on basis of ...
Jackson's user avatar
  • 9,939
6 votes
1 answer
2k views

Magento 2 : How to Set custom Discount from controller?

I am developing a module which set discount to total, Whenever customer will press Get Discount. I can able to reduce Subtotal and GrandTotal in customer quote, Also my quote table is getting updated. ...
anonymous's user avatar
  • 3,752
6 votes
1 answer
1k views

Magento 2 : How can I add discount to a custom option

I have a product with custom options and a catalog price rule (that applies to a certain customer group). When your in this customer group (group X), you get a discount of 15%. This works for the ...
Giel Berkers's user avatar
  • 12.3k
6 votes
0 answers
836 views

Magento : Validate Product against shopping cart rule

I have a Shopping cart rule which applies to a particular category with some discount. I have a situation wherein I want to validate product against this rule whether this rule can be applied to that ...
Magento Learner's user avatar
4 votes
0 answers
82 views

Discount Calculation Issue Magento 2

I am facing an issue with the discount calculation. There are three coupon which are applied automatically without coupon code (coupon 3, coupon 4, coupon 5) and one more coupon code which i have ...
Sunny Rahevar's user avatar
4 votes
0 answers
270 views

Invalid form key. please refresh the page. Discount code and Paypal review

This one seems different to all the previous questions about this error message. I'm getting the following message "Invalid form key. please refresh the page." when trying to enter a discount code or ...
Will Wright's user avatar
3 votes
0 answers
170 views

Magento 2: Set custom discount price to existing cart/quote in controller

I would like to set a custom discount price to an existing cart/quote in my controller and found some other people that had this question but none of them got answered: I want to add discount to ...
Felix Schönherr's user avatar
3 votes
0 answers
106 views

How to get the applied custom discount amount in observer?

I followed the steps in the below link to apply custom discount [https://magento.stackexchange.com/a/93349/21007][1]. But I need to get the applied custom discount amount in the observer event of ...
Arul's user avatar
  • 309
3 votes
1 answer
561 views

Magento 2 Add Discounts to totals to Quote

I am trying to create my custom reward points module. I need to apply discount to customer based on his reward points when he click use my rewards in cart/checkout page. For that i am followed below ...
Avinash Samala's user avatar
3 votes
0 answers
35 views

bundle vs single quantity discount

I write you because I am trying to create a shopping cart rule that applies a discount to a bundle of materials (2 different materials in each BOM) if the user places more than 10 bundles in the ...
Jacopo's user avatar
  • 31
3 votes
0 answers
38 views

Different discount for category products

I want to know is there a way to get different discount for the products in the same category if quantity exceeds a limit. For example: I have these products with these prices: A=10 B=15 C=12 And ...
Sebastian's user avatar
3 votes
1 answer
297 views

Crons not working in Magento 2.2.6

I am using Magento 2.2.6 with a theme. www.rbhomoeoshop.com The store is using rule to offer x amount of discount on each and every product. There is no condition for discount. after every 2 or 3 ...
Niraj Nagar's user avatar
3 votes
4 answers
5k views

Cart rule free shipping on subtotal after discount magento 2

I am working on Magento 2.2.5. I have one cart rule that gives free shipping if the subtotal is equal to or greater then $50. It is working well, but if the user gets any discount from a coupon or ...
David Coder's user avatar
3 votes
0 answers
423 views

Add dynamic discount value in custom discount section html file Magento 2

I have created the module for the custom discount from https://www.mageplaza.com/how-add-custom-discount-magento-2.html. But there is a static value '$10'in customdiscount.html file.I want to add the ...
Sunny Rahevar's user avatar
3 votes
2 answers
3k views

Catalog price rules work only on the catalog page, not in single product page, cart and checkout

I have Magento 1.9 I created a rule for discount 3 of my categories. Immediately the rules works perfect, I see that everywhere sould be. But after a few time (I tried, but I didn't understand how ...
Crashy's user avatar
  • 99
3 votes
0 answers
572 views

Discounted shopping cart not working with PayPal

I am trying to add a surcharge to anyone who pay with PayPal. There are couples of extensions but the free one don't work too well. Then I was pointed to a direction to put "Negative Discount" under "...
Alan Sheep's user avatar
2 votes
1 answer
578 views

Coupon Code Discount for Product in Certain Categories

I'm trying to create a coupon code that will apply a discount to an item in a cart if it is in a certain category but won't discount other items that are also in the cart. I tested out what I created ...
Ana S's user avatar
  • 21
2 votes
0 answers
99 views

In Magento 2, How to apply Discount code to order

In Magento 2, I am Creating order programmatically using this tutorial. I need to apply Discount code(Cart) to order. I am using this link. But not working. Any other solutions worked out.
Saravanan DS's user avatar
  • 1,126
2 votes
1 answer
351 views

Set custom discount price to existing cart/quote in controller

I know I asked the question once before, but i got no answer, so I try it again and hope for an answer this time. I also saw some other guys that tried to get an answer for this question, but none of ...
Felix Schönherr's user avatar
2 votes
1 answer
2k views

How to Modify Discount amount of cart price rule on cart page in magento 2

I would like to modify Discount Amount of cart price rule on the cart page. Actually Magento apply rule using class Magento\SalesRule\Model\RulesApplier and function is protected function ...
Chirag Patel's user avatar
  • 6,136
2 votes
1 answer
216 views

Order has discount but the discount was not applied in the item level

Can someone help me understand why my order has a discount but the discount is not divided into each of the items accordingly. In most of the orders, the discount amount is divided into each item ...
Brandon Orphiano's user avatar
2 votes
0 answers
49 views

Magento 2 shopping cart and checkout: show discounts tax included

In my checkout and shopping cart discounts are appearing tax excluded. I would like to show it tax included I'm searching where is defined the displayed value to place something like amount * 1.21, ...
Josías's user avatar
  • 23
2 votes
0 answers
25 views

Magento 2 : Category products dynamic rules get scope between 10% and 20% discount

We have a category where we need to add all products from another category with between 10% and 20% discount. The problem is that some of the products have a special price AND a price-rule which ...
Rune's user avatar
  • 21
2 votes
1 answer
408 views

Apply catalog price rule on all products of one category

i have different cataloge price rules for different products of different categories. Now i want to add a new minus discount to a category with 60 products (-5%), which i implemented successfully. ...
Christian Stegemann's user avatar
2 votes
0 answers
84 views

Cart price roles - Discount 20% on a cheaper product - Magento 2

I am trying to set in Cart prices roles discount 20% on a cheaper product and I can't find a way.
Milena Mirkovic's user avatar
2 votes
1 answer
90 views

Customer in more than customer group

One customer asked me, if it's possible to add a customer in more than one customer group. He wants to give his customers a discount which is manufacturer based. Example: Customer 1 get a discount ...
dbachmann's user avatar
2 votes
0 answers
265 views

How to display Catalog Price Rule Discount and Special Price Discount along with Cart Price Rule Discount?

I'm using Magento version 2.2.4. Currently on view and edit checkout page, only Cart price rule discount is shown as below How to show Catalog Price Rule and Special Price (added while adding a ...
Nausif's user avatar
  • 1,554
2 votes
0 answers
116 views

Magento 2 Cart Price Rule Coupon Specific Coupon Does not Apply for some porducts in Admin Order

There is an issue which I am not sure if it's a bug and I hope someone can tell me, the bellow screen shoot were taken from an order: As you can see the product in red circled didn't apply the ...
Juliano Vargas's user avatar
2 votes
0 answers
45 views

Free Delivery and Coupon Codes

A client has a site that offers free shipping over £20 as a delivery method. However, there are also some discount codes 15% off etc. The client has a major issue with peoples baskets being £20+ ...
Tom Jolly's user avatar
2 votes
2 answers
3k views

Magento 2- Show Discount percentage in product view page

I have set the discount in percentage but its showing only for the simple products.Also I want to show it in the configurable products. For the Simple Products: vendor\magento\module-catalog\view\...
Developer Account's user avatar
2 votes
1 answer
205 views

How to remove automatic applied coupon in magento 1.9

I want to remove automatic applied coupon when user enter another coupon code.
Ankush Deora's user avatar
2 votes
1 answer
363 views

How to move coupon code to shipping step of checkout in Magento 2?

I am trying to move coupon code to shipping step instead of payments & review step. how this can be implemented? I need discount code form to appear in shipping step after shipping methods ...
Jafar Pinjar's user avatar
  • 1,939
2 votes
1 answer
510 views

Magento 2 : Catalog Price Rule Based On Time Period

I have come across a requirement where my client wants to provide a discount on specific products which is based on time period. Below is the condition. Discount Start - Every day after 22:00 Hrs ...
manish_khot's user avatar
2 votes
0 answers
422 views

Incorrect Shipping charge when Discount Coupon applied

Preconditions Magento Version: Magento 2.1.5 We are using table rate method for shipping, below are the value range: Rate $6.99 for orders up to $12.99 Rate $5.99 for orders above $13 and up to $25....
Vigna S's user avatar
  • 627
2 votes
0 answers
526 views

Magento 2: Percent coupon with discount amount limit

I want to give customers a 10% discount coupon but I want to enforce a discount amount limit, that is that the maximum discount amount is $250. Is there a way to limit this using a coupon?
Stephanie's user avatar
2 votes
0 answers
596 views

Discount amount not showing on checkout

I have created rule 50% discount. When buying product it does apply discount on the price but it does not showing that discount amount on checkout. I tried to do my research and I found that I need ...
Milo's user avatar
  • 135
2 votes
0 answers
1k views

How to programmatically add discount to order total on magento 2

I need to programmatically add custom discount to order total on magento 2. This will work in such a way that when the customer inputs a code in the checkout page, a certain amount will be discounted ...
Chiamaka_Ican's user avatar
2 votes
1 answer
1k views

Magento : Catalog Price Rules "Apply Rules" Programmatically

i'm create Catalog Price Rules Programmatically it's work fine. The issue is, I need to login with admin and click button "Apply Rules" other wise discount is not apply in magento store. So I need "...
krunal's user avatar
  • 21
2 votes
1 answer
938 views

Customer Tax and Discount Rules

Even though I've been working with Magento for some years now, the combination of discount rules and tax rules has always been some kind of mathematical mystery. In basic, there are 2 parameters: ...
Giel Berkers's user avatar
  • 12.3k
2 votes
1 answer
624 views

magento 2 - call payment method render function after discount has been applied

i defined a function RecalculatePlan in */view/frontend/web/js/view/payment/method-renderer/installment-method.js that recalculates the installments displayed in a table contained in the method ...
Mirko's user avatar
  • 21
2 votes
1 answer
2k views

Coupon for specific product not for subtotal of cart

I would like to setup a promotion in my Magento system, I not sure defualt magento can do this, Anyway here is the task: I have Three products in cart •Product A: $50 •Product B: $100 •Product C: $...
Riyas Muhammed's user avatar
2 votes
0 answers
49 views

Discount For Specific Order Number

We want to offer special discount for Order Number "10000900 - 10001000". Anyone who's order/purchase comes under this range will get a special discount of 40%. As far as i know magento doesn't have ...
Mek's user avatar
  • 91
2 votes
0 answers
879 views

Magento catalog price rule apply percentage discount but it's rounding up to 21% and 22%

I am applying a catalog price rule to reduce certain items by 20%, however some items are showing a reduction of 21%, 22% and 23% which is shown on the sale tag. We are using the theme 'Harbour' which ...
Gina Lucia's user avatar
2 votes
0 answers
102 views

New filter condition: Add cart id as attribute to shopping cart rule => Solving discount on first item only

we have been trying to solve this for ages. Apply 50% on first product in cart only. As I understand this cannot be done as is. Magento 1.9.0.1 So I was thinking. Can I add a new filter condition? ...
snh_nl's user avatar
  • 5,452
2 votes
0 answers
56 views

Discount Option In Magento

I want to apply the 10% discount option for two of my products for which it has to show that on online purchase it show the discounted price in the invoice that will be generated for the product. how ...
Kiran Kumar's user avatar
2 votes
0 answers
331 views

Add Fee or Discount to Order Totals - Problem with Order Confirmation Email

I am finding difficulty in getting discount to order confirmation email template . I am working on enterprise version 1.12.0.2 . Discount label and price is not displaying in order confirmation email ...
Bhupendra Jadeja's user avatar
2 votes
0 answers
401 views

Product Discount Groups and Customer Groups

How can I set-up Product Discount Groups and add different prices for the Customers Groups? I want to import different products in Magento: E.g. one sheet has 30.000 products. The products are sorted ...
Cri's user avatar
  • 21
2 votes
1 answer
1k views

Add shipping on subtotal after discount

I want to add freeshipping on subtotal but after discount i already have tried with if ($request->getFreeShipping() || $request->getPackageValueWithDiscount() >= $this->getConfigData('...
Mike's user avatar
  • 455

1
2 3 4 5