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

Questions tagged [discount]

Indicates Questions regarding Shopping Cart discount

Filter by
Sorted by
Tagged with
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: $...
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 ...
1 vote
2 answers
2k views

Percentage discounts using cart price rules being calculated incorrectly

I'm running a Magento instance of 2.3.6-p1 using PHP 7.3 and having issues with Magento not calculating the discounts correctly. How I tested Set discounts to be applied before tax in the admin Set ...
0 votes
2 answers
44 views

Adding if condition in checkout_index_index.xml

I want to add an if statement inside checkout_index_index.xml. The reason for these is to hide some of the element like discount code. I know this is possible with JS file but I don't want to use the ...
0 votes
0 answers
10 views

Magento 2 : Cart price rules with bundle product issues

I'm having an issue with a discount cart price rule for bundle products. To understand the issue you might want to know we mostly sell USED hardware. The NEW products are not sold much and not much on ...
2 votes
2 answers
3k views

How can I give first time customers a discount on their next order?

The conditions would be: 1) customers only 2) One time use only 3) must have previous order #1 and #2 are straight forward, but what is a good approach to only giving this to customers that have ...
0 votes
2 answers
44 views

Magento 2 : Prevent Child product discounts from applying to bundle products

Is there a way to prevent child product discounts from applying to bundle products? I have a bundle product with its own discount, but both the bundle discount and the child product discount are being ...
0 votes
2 answers
3k views

Set Category wise Discount in Magento2

I want to set Discount Category wise. MEN=>5% WOMEN=>7% SHOES=>5% ELECTRONICS=>10% If I create coupon for all rule customer can not apply multiple coupons in single order. How is possible? with ...
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 ...
13 votes
6 answers
13k 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 ...
1 vote
1 answer
1k views

custom fee order totals issue

I created custom fee based on following link. (Please look at my module at : https://github.com/sivajik34/Delivery-Signature-Magento2) how to add fee to order totals in magento2 Everything is ...
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 ...
0 votes
2 answers
2k 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 ...
3 votes
4 answers
6k views

Remove apply discount code from Cart

How do I remove the discount code from the cart ? There are loads of examples of how to remove it from the checkout but I also need to remove it from the cart.
0 votes
1 answer
17 views

Is it possible and how can I create a discount coupon via webapi or graphql natively?

I found this here in the documentation but I don't know where the value or type of discount goes, whether percentage or fixed
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\...
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. ...
1 vote
2 answers
2k views

Show discount including tax, calculate discount excluding tax

I want to display the discount amount including tax on cart overview page (totals summary). Magento 2.1.8 Relevant settings: Catalog prices: Excluding tax Apply Customer Tax: After discount Apply ...
0 votes
0 answers
18 views

Apply Discount to Grouped Product

I want to apply discount on the grouped products. The associated products are visible, so when i use cart price rule, the discount is applicable to them as well. Please suggest me an alternate way to ...
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 ...
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 ...
0 votes
1 answer
22 views

Magento Cart Discount Rule

Hi i need a discount rule that looks at all the products in the cart > if the total of products in the cart from category A ≥$2500 > 15% discount is applied to the amount over 2500. is this ...
1 vote
1 answer
1k 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
7 votes
2 answers
13k views

How to get discount details by coupon code in magento 2 programatily

I need to get the details of an already created discount rule in magento 2. I am using this code but don't work public function __construct( \Magento\SalesRule\Model\Coupon $coupon ) { $this-...
1 vote
3 answers
432 views

Pre populate the discount code in checkout/cart

I want to know if we can pre populate the discount code in the checkout/cart page when customer clicks a button from a page. Aim is when customer clicks a button from a page it should redirect them ...
0 votes
2 answers
466 views

How to import 20.000 coupon codes in Magento 2 without paid

I want to import 20.000 coupon codes on my website, and for this reason, I created the following script: <?php use Magento\Framework\App\Bootstrap; /** * If your external file is in root folder ...
0 votes
0 answers
59 views

remove discount from the cart page

Is there any way to remove discount price [NOT THE COUPON FORM] from the cart page and adjust the Totals accordingly but should be visible on checkout page ?
2 votes
2 answers
357 views

Tax calculation after discount

So I have a custom discount applied the following way: on vendor\module\etc\sales.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
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 ...
0 votes
0 answers
13 views

Running a special discount, but the price not reflecting on cart page

So i updated the pricing for the discount campaign. However, for the people who have added the products added in the cart can see the old pricing and add the coupon code. please help
1 vote
2 answers
2k views

Is there is a way to apply automatic coupon code in Magento 2 if total is greater than 1000?

I have a Magento 2.4 Store in which i want to auto apply coupon code when the total of the product is greater than 1000. Like i don't want to enter that in discount box Like here i don't want to ...
1 vote
0 answers
56 views

Magento 2.4.4: Discount on shipping amount not working with Paypal Payments Pro

I have created a Cart price rule with coupon code with condition where 85% discount is applied to the total. I have also enabled "Apply to Shipping Amount". When I placed an order the ...
1 vote
1 answer
562 views

Magento 2: Add discount based on individual qty and item to cart

I need to set cart discount based on individual qty and individual item for cart. For example if cart have 2 item then lowest price item to give higher percentage discount, like need to add 10% and 20%...
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 ...
0 votes
2 answers
2k 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
1 answer
484 views

How can I set discount in price at product order by a customer programmatically

If a customer places an order for 5 Qty of a product, then a 10% discount would be given. How can I do in Magento2 programmatically
0 votes
0 answers
120 views

Add discount on each product based on product price

I have 100 products in my store and each product has different price. I want to add discount on each product based on specific price. For example, If a product is added into the cart and it has 100usd ...
1 vote
1 answer
500 views

Stop child product discounts applying on Bundle product

We have about 20 simple products which have a Cart Price Rule for buy 4 and get 10% off. We also have bundle products which use these products but are already discounted. However when the rule ...
1 vote
0 answers
190 views

Magento 2 discount value is removed for logged in user using cart rules

I have a problem with discount not subtracted from grand total in checkout. The discount is coming from a cart rule and is displayed correctly on the checkout page but the grand total is without the ...
1 vote
1 answer
6k views

How to get discount amount in Magento 2

I am trying to get discount amount, but no success How to get discount amount from $block->getShipment() <?php /** @var $_item \Magento\Sales\Model\Order\Item */ $_item = $block->getItem(...
0 votes
1 answer
181 views

Catalog Price Rule - Ignore Custom Options

I recently migrated over from a Magento 1.9 instance. When we applied the catalog price rules it only discounted the price of the product and the associated custom options remained as they were (no ...
0 votes
1 answer
125 views

Remove flat rate handling fee on orders above 1000

How can i remove flat rate handling fee if the order is above $1000 ?I cant do it with a rule, as it still shows as if some discount was applied.I need to remove the handling fee itself. Thanks for ...
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+ ...
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('...
0 votes
3 answers
3k views

I want to apply custom discount of some percentage to cart total in magento 2

How to apply custom discount of some percentage like (10%,20%) of cart total once he chose use custom discount button and if he want to remove the custom discount from the cart total in front end how ...
8 votes
1 answer
20k 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 ...
2 votes
3 answers
2k views

How to show "apply discount" option on checkout magento 2

I want to use apply discount option on the checkout page. How can I show this?
0 votes
1 answer
251 views

Buy specific SKUs get 10% of on all other products

I am working in Magento 2.4.4 I am trying to set a Cart Price Rule where I say "Buy specific SKUs and get 10% discount on all the rest of products" Like "Buy X Get Y - Percent Discount&...
0 votes
1 answer
423 views

special price product collection working but loading speed is too slow ,I don't understand why the speed is so slow please help!

<?php namespace Product\Discount\Block; use Magento\Catalog\Api\CategoryRepositoryInterface; /* use Magento\Catalog\Api\CategoryRepositoryInterface; use Magento\Catalog\Block\Product\Context; use ...
1 vote
1 answer
818 views

Magento Cart Price Rule - How to Sum Specific Category For Discount

I want to create a discount code in Magento 2. The offer is £25 off every £250 spent on Garden Furniture. So, the rules must only apply on products from the garden category in the cart. For example, a ...

1
2 3 4 5
10