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
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 ...
Nguyễn Hồng Quang's user avatar
3 votes
2 answers
4k views

Maximum discount percent magento

How to configure the maximum discount percent in magento for the cart amount. Example: Cart value is 3,50,000 Coupon Code discount applicable : 20% Discount applicable 70,000 However I want to ...
Sushivam's user avatar
  • 2,639
1 vote
1 answer
2k views

Products Type : Grouped Product - How can i create discount for grouped product

I need to add discounts price for grouped products. eg : item : 1 = 10, item : 2 = 20, when Item add to cart how can i display total amount is 25(discount is 15 %), My Workout : screen shots : Its ...
Gem's user avatar
  • 699
0 votes
2 answers
7k views

Is it possible to update order item price and order total after order is place

Hi want to update order item price and grand total and order details after order is placed. suppose,I have place an order with item Item A - order item price $10 Item b - order item price $20 ...
Amit Bera's user avatar
  • 77.6k
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 ...
Reena Parekh's user avatar
  • 1,917
3 votes
3 answers
5k 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: ...
Rakesh Donga's user avatar
  • 5,364
1 vote
5 answers
7k views

Tax rounding and catalog price rules

On my store we have a product that costs £2.95 including tax (at current UK rate of 20%). The tax seems to calculate fine here. However, I then have a Customer Group that gets 30% off, which should ...
doubleplusgood's user avatar
0 votes
1 answer
411 views

How to add discount coupon code on Custom tab in Magento 2?

I have created Custom Tabs in Magento 2 Between Shipping and Review and Payment. I want to remove Discount Coupon Code from Review and Payment to my Custom Tabs.How will i do it ? I have already ...
Prits's user avatar
  • 625
10 votes
1 answer
11k views

sort products by newest, discount, most sold, reviews" in products list page

On the products list page, we can see sort by "Position, name, price" as in default Magento. How to sort by newest products (uploaded recently) Discount (highest discount products first) Best ...
Baby in Magento's user avatar
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-...
open-ecommerce.org's user avatar
6 votes
6 answers
8k 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). ...
Midlaj's user avatar
  • 397
3 votes
2 answers
7k views

Shopping cart rule : discount if 2 different sku are in cart

I'm looking to build the following Shopping Cart Rule and I have no idea how to do it. I have multiple sku available, if you add 2 different sku in your cart, you get 10% off. It can be any ...
MYP Studio's user avatar
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
1 answer
2k views

1.9.0.1 shopping cart rules using stop further rule processing

Would someone please share his knowledge in setting up discount: Tried like 1000x combinations, but I cant get it to work as expected, so pls tell me if it is possible or not: I have coupon-codes ...
Stefan Gregori's user avatar
1 vote
1 answer
920 views

Shopping cart rule: first product 50% off (only first product) - How do I?

we are trying to set-up the following rule 50% discount on your first (any) T-shirt So when you buy 1 or 2 T-shirts you get 50% discount on the first product only. Can this be done? I managed ...
snh_nl's user avatar
  • 5,452
1 vote
2 answers
1k views

How to Round off Discount price?

I copy these file from core to local folder from app/code/core/Mage/SalesRule/Model/Quote/Discount.php. **WHAT I NEED TO DO IS ROUND OFF DISCOUNT VALUE WHICH ALSO ROUND OFF TOTAL VALUE AS WELL ** I ...
lalit mohan's user avatar
  • 1,075
1 vote
1 answer
917 views

How can I apply Order Discount. Order Create By admin [closed]

How can I apply the discount for total order in custom order create for the customer? Note : My discount amount may vary for every order Is possible?
zus's user avatar
  • 165
1 vote
1 answer
4k views

Do not apply catalog price rules on a product already on sale

We are runnning Magento EE 1.13. We have a very large catalog (20 000 products) and 2000 categories. We run a lot of sales but we do not use a sale category. We simply add a special price to the ...
Danie Oberholzer's user avatar
12 votes
3 answers
1k 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\...
Taral Patoliya's user avatar
6 votes
2 answers
6k views

How to determine if an item has discount from catalog price rule

Any ideas how to make sure the item in the cart / quote was affected by CATALOG price rule (not shopping cart rule)? There is a similar question without an answer: Do not apply catalog price rules ...
Amasty's user avatar
  • 6,508
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
5 votes
1 answer
11k views

Apply discount to only 1 item in the cart via Shopping Cart Price Rules

The situation is simple – I want to offer 25% discount on one product in the cart. So if you order 5 of Product A and 3 of Product B, you should receive 25% off either one of Product A or one of ...
bogeylicious's user avatar
4 votes
3 answers
4k views

Discount for category and its subcategories

For example I have: Mobile -> Apple Mobile -> HTC Mobile -> Nokia I want to give 5% discount for all product in these categories. Is there any way to do it without creating a catalog price ...
MiMo's user avatar
  • 111
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
3 answers
4k views

Discount coupon is not working for minimum subtotal

I have created a new "Shopping Cart Price Rule" for discount coupon of 20% off on minimum shopping cart subtotal of Rs. 2000. For this I set values as under: Rule Information Status: Active ...
Himanshu's user avatar
  • 183
4 votes
4 answers
16k views

Magento2 : Display percentage of discount on product list and view page

I want to display discount in percentage format on product list and product view page as like below 30% Discount How I can achieve this task in proper Magento-2 way. Code should be define in any ...
Suresh Chikani's user avatar
3 votes
3 answers
2k views

Magento 2 New user give the discount

In Magento 2.2.6, How to give 5% discount for a newly registered customer ? Thanks in advanced!
Hardik Makwana's user avatar
3 votes
1 answer
2k views

Discount calculcation bug in 1.9.0.1

I upgraded recently from 1.7 to 1.9.0.1 and I am wondering if this is a bug or if I just missed some new configuration, I am not using tax classes btw. When creating a shopping cart price rule, (e.g. ...
Socrates's user avatar
  • 175
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.
Goose84's user avatar
  • 2,611
3 votes
4 answers
12k views

How to get discounted price

I create a Catalog price rule in admin. Now it's applying in the front-end. But, I want to show actual price in the shopping cart. So I did the below code in abstract.php file. After that I call it in ...
yeshansachithak's user avatar
1 vote
1 answer
1k views

How to calculate product price based on custom action in Catalog Price Rules

I have added new action in catalog price rule. I have added this action through overriding below file. module-catalog-rule/Model/Rule/Action/SimpleActionOptionsProvider.php When this action is ...
Emipro Technologies Pvt. Ltd.'s user avatar
1 vote
1 answer
1k 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 ...
Amiyo Ghosh's user avatar
1 vote
1 answer
1k views

Magento Database: Negative values in sales_flat_order.discount_amount?

Looking into my Magento database inside the sales_flat_order table, I find - since the day I updated from the 1.4 to the 1.5 version - the values of discount_amount being negative (e.g. -5 EUR for a 5 ...
hakre's user avatar
  • 2,831
1 vote
1 answer
1k views

How to get Shopping Cart Discounts in Magento?

Having multiple promotions (or discounts) applied for shopping carts, how to get such promotions so I can display them in view? Update: I want to get each. NOT the total. This is so I can display the ...
doncadavona's user avatar
1 vote
2 answers
52 views

Discount on all products in one category

I want to have a 15% discount on all products in my "last chance" category. How do I do that? I tried making a rule, but nothing happens in the store. Thanks :-)
Siri F's user avatar
  • 13
1 vote
0 answers
94 views

I want to show next best volume discount to customer for total amount [closed]

i have two volume discount for total amount in cart If total amount is greater then 50 and less then 100 If total amount is greater then 101 and less then 200 see images For example if i have $50 ...
Ashvini K's user avatar
  • 195
1 vote
1 answer
58 views

How to configure if one of the Shopping Cart Price Rule applied Product A no other shopping cart apply for same Product A?

Once the shopping cart price rule applied, remaining shopping cart price rule not going to apply for same products.
zus's user avatar
  • 165
1 vote
0 answers
93 views

grant total not reduced after applay cupon code in magento 1.9

i have applayed a cupon code which have 100 rs rduction after apply this code i can see the discont as 100 but the grant total have no change please refer the picture
amith lal's user avatar
  • 790
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%...
Kirti Nariya's user avatar
  • 3,041
1 vote
1 answer
779 views

How to move apply coupon to Tab in Magento 2 in Checkout?

I want to move apply coupon to Custom created Tab in Magento 2 in Checkout. I want to add " apply coupon " on Summery Page. I have added this code in my checkout_index_index.xml <item ...
Prits's user avatar
  • 625
0 votes
1 answer
2k views

How to show Applied discount from Shopping Cart on Shipping Step Checkout Page Magento 2?

Please Check Attached screenshot: On Checkout Page under Shipping Step i want to display Shopping Cart page applied discount Coupon Code and Amount. Please check below code: app\code\Vendor\...
Hitesh Balpande's user avatar
0 votes
1 answer
246 views

How to apply coupon code on Custom tab in Magento 2?

I have created Custom Tabs in Magento 2 Between Shipping and Review and Payment. I want to remove Discount Coupon Code from Review and Payment to my Custom Tabs.How will i do it ? I think this part is ...
Prits's user avatar
  • 625
0 votes
2 answers
622 views

Discount the cart price which product price - Magento 2.4.2 CE

I need to discount the line item's total price in the total when the particular product is added to the cart. How to implement can get any suggestion. Eg: Product A added to the cart at the qty of 5 ...
Sabareesh's user avatar
  • 358
0 votes
1 answer
649 views

Get downloadable product link details added in cart

I have ques. I want to get downloadable products link added in cart.. Mean I want total links added in cart I have used below code.. I am developing functionality to auto discount if downloadable ...
Manoj Ninave's user avatar
0 votes
0 answers
405 views

How to add custom extra discount(%) to order or override default coupon code when placed from back end only?

Task: Give discount(%) without coupon code to user when create order from admin . it override default coupon code what I was trying provide discount(%) to user when create order from admin ...
lalit mohan's user avatar
  • 1,075
0 votes
1 answer
2k views

how to get shopping cart price rule items in catalog page

I have configured the shopping cart price rule in Magento. Is it possible to fetch category IDs, product Ids that I configure in shopping cart price rule on product catalog page ? If the product is ...
Mohamed's user avatar
  • 43
0 votes
0 answers
344 views

Discount amount is not showing on cart page

In cart page (mysite.com/checkout/cart), there is a section that shows as Summary. In this section, usually displayed as, a section to Estimate Shipping and Tax and after that, sections for Subtotal ...
Joey's user avatar
  • 571
0 votes
1 answer
1k views

Countdown Timer

I can't get the following code to work on the frontend. It displays correctly but will not countdown as I would like. I have tried changing the date but nothing happens. Could someone point me in the ...
billy's user avatar
  • 1
0 votes
1 answer
2k views

How to add condition in cart price rule?

Function to generate cart price rule public function generateCoupon($value='') { $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $coupon['name'] = 'PROMO1'; $coupon['desc']...
Midlaj's user avatar
  • 397