We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [discount]

Indicates Questions regarding Shopping Cart discount

Filter by
Sorted by
Tagged with
3
votes
2answers
1k 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 ...
0
votes
0answers
10 views

Magento 2 - base price + percentage to be displayedand used for calculating price

A Magento store needs to update prices based on CSV every day. The price given is "base price", instead of pre-processing said CSV to add profit, how can I add a certain percentage to price? Found ...
0
votes
1answer
19 views

How to remove particular coupon code if other cart rule without specific coupon is applied on product in magento2?

condition 1: I have 2 cart rule which are directly applied on product if specific conditions are true as given in cart rule. condition 2: there is an another cart rule in which i have added one ...
6
votes
5answers
3k views

Magento 2: How to implement First Order Discount?

I am planning to give the discount to the customers for their first order purchase. After shipment selection, I want to show the discount in the order summary(discount is only for the first order). ...
0
votes
0answers
17 views

Magento 2 Apply Custom Discount to the Quote Programmatically

I want to add custom discount to the quote programmatically but the total not updated and when place the order the discount is not affected. $cartId = 199; $quote = $this->...
8
votes
3answers
442 views

Magento 2: Use of priceModifiers

While browsing the code of magento 2.0.7's catalogrules module, i came accross a class Magento\CatalogRule\Model\Product\PriceModifier, Which was passed to Magento\Catalog\Model\Product\PriceModifier\...
13
votes
7answers
6k views

Magento 2 - discount depend on Payment Method does not work

I go to Magento 2 Admin > Marketing > Promotions > Cart Price Rules and create a new Rule: Bank Transfer Payment: Tab Rule Information: Rule Name: Bank Transfer Payment Status: Active Websites: Main ...
2
votes
1answer
44 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 ...
1
vote
1answer
23 views

How to set special price for specific customer group

Guys I'm wondering how to add special price for specific customer group? For example, I have a group called "VIP", I want to set 10% discount on every product for this specified group only. Thank you ...
0
votes
1answer
787 views

'Exception' with message 'Quote totals must be collected before this operation.'

I have create a programmatically order and set programmatically discount amount but i have getting error when submit order. Here is exception message : DEBUG (7): ====ex==exception 'Exception' with ...
2
votes
1answer
698 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: ...
0
votes
1answer
610 views

Recalculate order grand total including discount and tax

I have an order data without shipping included, i tried to re-calculate total order when adding shipping price like this: $shippingAmount = '30000'; $quote = $this->getQuote(); $quote->...
0
votes
2answers
896 views

Sub total is not updating on custom discount (Substraction is not working with dynamic value in cart)

I am working on a module in which I need to develop a discount facility. Everything is working fine, however, when the customer is not logged in at that time gift card discount showing but the base ...
0
votes
1answer
44 views

when coupon code apply and discount amount 0 then coupon not showing in order summery

I want to coupon code showing when discount amount is 0.00 Note: when discount coupon code is 0 or more then rule working fine
0
votes
1answer
57 views

Magento 2: Show subtotal without discount in Cart page

In my custom module, I need to Display subtotal without discount(subtotal - discount) how can I achieve my needs? , any help appreciated. Thank you
0
votes
0answers
29 views

Set discount only for one category for product who has multiple categories - Magento 2

I have some products which have 2 categories: Fabric and Wallpaper. I set cart condition that apply if category is Fabric and quantity is > 2. This works perfect. But I have a problem because some ...
0
votes
0answers
13 views

How to automatically apply a 50% discount to the order total for all re-orders?

As a client requirement, I need to automatically apply a 50% discount off the order total for all re-orders. This will be for all registered users. Is there a way to customize the re-order function to ...
1
vote
3answers
846 views

Can you tell me from where it comes discount in Magento 2 order items

I see it show discount in Magento 2 admin order details page . But I am unable to find out the reason of discount . There is no catalog price rule applied. Can anyone give me idea how i can find out ...
3
votes
0answers
37 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 ...
0
votes
0answers
7 views

Generate 50% off coupon on already discounted products.If there is 10%, 20%, 30% or 0% OFF then the coupon should make it 50%

I want to generate coupon that apply 50% OFF on the products but if there is already discount on them like 10% OFF then the coupon should make it 50% OFF.Like wise if there is already 30% OFF the ...
2
votes
3answers
174 views

Magento2 How to Discount Description add on Checkout order summary

I Want to add Coupon Description in Order Summary I have to Find the file here app/design/frontend/[VendorName]/[theme]/Magento_SalesRule/web/template/cart/totals/discount.html <!-- ko if: ...
0
votes
1answer
34 views

Magento 2 cart rule conditions and action to exclude specific product using sku

I have added cart rule and its working properly, I need to exclude specific product from cart rule and others to go with cart rule. EX: sku1 need to exclude from cart rule. 1.Only "sku1" in the ...
0
votes
1answer
29 views

Discount attribute is not visible in attributes set

I am new to Magento 2 and I am wondering why discount attribute is not visible in the store -> Attribute set -> Default -> Groups. I checked that the discount attribute is present in the ...
0
votes
1answer
17 views

How to Get Special Prices to Show with Original Price Strike-through in magento 2

Am adding special price with Original Price Strike-through
0
votes
0answers
24 views

Magento 2: Show discount and summary on mini cart (canvas)

I need to show the total summary and discount information on canvas cart. I am using a mini cart as canvas cart. https://prnt.sc/pcud8e May I call the api /V1/guest-carts/:cartId/totals-information ...
2
votes
1answer
1k 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: $...
5
votes
1answer
11k views

Magento 2 - How to add custom discount in cart programmatically?

I want to apply custom discount amount to cart programmatically. I have tried doing it in following 2 ways, none of which work: METHOD 1: I tried following the default way in which Magento2 applies ...
1
vote
0answers
27 views

Different price between PDP and cart

A client uses bundle products with discounts, which are set as a percentage of the original price. The discounted price is rounded to two decimals on the PDP and used in the total price calculation (...
0
votes
0answers
12 views

Discount Message showing twice

Can anyone help me figure this out? I added text (as the default rule label) when creating a coupon code but for some reason in checkout the message shows up twice
0
votes
0answers
12 views

Discounts can not be applied to manual entered orders

I have a annoying issue that when we are entering an order manually in the backend we can adjust the product price to a custom price all OK but we are unable to use the discount box. It seems to be ...
2
votes
1answer
925 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('...
0
votes
1answer
32 views

Magento 2.3.X: GraphQL does not reflect catalog rule discounts

I'm using Magento 2.3.2. I've successfully completed all cart-related tasks (create cart, add a product, select shipping& payment methods, and place the order) using GraphQL. GraphQL seems not ...
0
votes
2answers
1k views

How to create % discount code for ENTIRE cart subtotal?

How do I create a discount code for the ENTIRE value of a shopping cart, with multiple items in it? By default, the "percentage of product price discount" function applies a % discount ONLY to the ...
1
vote
0answers
38 views

How to remove coupon from payment dive after clicking order summary discount code close button in magento2?

I have made custom discount remove button on checkout order summary. coupon removed successfully but how to refresh payment div discount box code after removing coupon? order summary: payment div:
0
votes
2answers
1k 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 ...
0
votes
1answer
65 views

Magento 2: Remove coupon code from discount label

I want to remove Coupon code from Discount title on order summary from the Checkout page. please refer screenshot. i have checked console: <tr class="totals discount"> <th class=...
0
votes
0answers
14 views

Event for apply discount coupon Magento 2

I want to add custom validation for Discount coupon that it can be used only on first order of any customer. For this i want to create an observer for an event which will trigger when customer ...
0
votes
0answers
31 views

Magento 2: Shopping Cart Rule discount based on item quantity

I'm a Magento 2 newbie. My customer wants to add a cart rule like, apply 2% discount if item quantity >=12 apply 4% discount if item quantity >=24 apply 6% discount if item quantity >=36 apply 8% ...
0
votes
1answer
22 views

How to show discount on all products without applying it in checkout page

I want to show X percent discount on all products in my website. I dont want to apply that on checkout page. Just only want to show visually like below image Is there any way to show this ? ...
3
votes
0answers
38 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 ...
2
votes
1answer
500 views

Magento 2 : How to Set custom Discount from controller?

I am developing 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. ...
1
vote
3answers
5k views

How to create sales rule programmatically in Magento2

I am migrating code from Magento1 to Magento2 and need to create a group of sales rules programatically. I need to do this because it's based on the price of the item, plus $1 if they purchase two (...
0
votes
1answer
36 views

Can anyone explain me the code and what is been returned in $discountData : Magento 2

$rulePercent = min(100, $rule->getDiscountAmount()); $discountData = $this->discountFactory->create(); $itemPrice = $this->validator->getItemPrice($item); $baseItemPrice = $...
0
votes
0answers
11 views

Magento 2: Fetch coupon details from coupon name without applying it to the cart

How can I fetch coupon details ie discount amount or percentage from coupon name without applying it to the cart?
8
votes
1answer
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 ...
0
votes
1answer
64 views

Magento2 : Product not saving set custom attribute using Observer

I want to set Discount on my product after Save product so I'm using catalog_product_save_after then I am creating an attribute 'discount' and set the calculated value, but when i save the collection ...
0
votes
2answers
52 views

Round Special Price displayed in Catalogue pages (Product Listing Pages) - Magento 2.3.2

Magento 2.3.2 - I have set discount through Catalog Price Rule. And so in Catalog pages (Product Listing Pages) there are two Prices displayed 1) Regular Price 2) Special Price (discounted ...
0
votes
0answers
19 views

Catalog Rule - Discount price application

What is the exact location where discount is applied ? How can we markup the discount price ? Are negative values acceptable in discount price ? If we want to set negative values and increase ...
0
votes
1answer
630 views

Round price before apply any catalog price rules to it

I've been struggling with a rounding issue lately. We have a product at 40.65. With a tax of 23% it gets up to 49.99 and rounding that up it goes to 50. Now i want to apply some price rules. A rule ...
0
votes
0answers
23 views

Magento 2: create coupon code

I want to create a coupon code which can work as a gift card. Gift Card will be applied separately (not in discount form/ Multiple coupon can be apply) I followed Coupon code to achieve this but the ...