Skip to main content

Questions tagged [coupon]

Denotes questions specific to shopping cart coupons. Consider using the shopping-cart-price-rules tag if the question is regarding shopping cart price rules in general.

Filter by
Sorted by
Tagged with
1 vote
1 answer
26 views

Is the coupon usage limitation broken in general due to async update?

We have coupons which should be usable only once. In my integration tests I was able to use them twice. I found out, that this is linked to the queue runners. When I start the queue consumers locally, ...
Alex's user avatar
  • 13.9k
0 votes
1 answer
12 views

Is there a way to have 1 coupon with 4 different values

I am looking for an solution that with which i can do the following: I want to use 1 coupon code for this. If Subtotal (Excl. Tax) exeeds € 1500,- then give 2.5% reduction over the whole cart. If ...
Remigius's user avatar
0 votes
2 answers
119 views

How to apply multiple coupon in Magento 2.4.7?

In Magento 2.4.7, now multiple coupon is supported. Shoppers can apply multiple coupons to a cart. Merchants can also apply multiple coupons using shopping assistance. However after applied one coupon ...
leo's user avatar
  • 1,246
0 votes
1 answer
28 views

How to get from_date and to_date of cart_rule and catelog_rule in magento 2?

I'm writing a before plugin and i need to get from_date and to_date of cart_rule and catelog_rule in my plugin code namespace Vendor\CouponBeforePlugin\Plugin; use Magento\Quote\Model\Quote\Item\...
Midhun M's user avatar
0 votes
1 answer
18 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
Rodrigo Araújo's user avatar
0 votes
0 answers
159 views

How to update grandtotal using knockout JS in Magento 2 checkout page

I've added a text field where customers can enter a coupon code. When click the "Apply Coupon" button, I am fetching the value of the coupon. I want to use this coupon value to adjust the ...
manoj kumar's user avatar
0 votes
0 answers
89 views

Magento 2 coupon code is not used but it is show used on admin

Magento version 2.4.5-p1. In the Magento cart price rule, the coupon code is shown as marked on admin but it is not used from the frontend, and also coupon code is not visible when we checked from ...
sumeet bajaj's user avatar
  • 1,306
0 votes
0 answers
70 views

Magento 2.4.4 Coupon Usage Count Not Reflect in Admin Cart Price Rule

Coupon for single use is used multiple times, ssue Merchants set up a coupon for single use and customers are able to use it multiple times. Steps to reproduce: Create a coupon and configure the ...
Mark Philips's user avatar
0 votes
0 answers
58 views

Scheduled change for cart price rule activation

When a scheduled change is set for a cart price rule activation, it doesn't work on the storefront within the set time frame, namely, when I put the coupon code, it shows a message that a coupon code ...
Bob's user avatar
  • 11
0 votes
2 answers
207 views

Getting coupon codes from sales rule?

Magento 2.4.6 I creates a sales rule, lets say it has ID 123. I am loading it like this for now (yes, I know ObjectManager is bad practice): $objectManager = \Magento\Framework\App\ObjectManager::...
user4095519's user avatar
1 vote
1 answer
32 views

magento 2.4 what are coupon modifiers?

I'm looking at Magento\SalesRule\view\frontend\web\js\action\set-coupon-code.js and on line 47 there's this code: //Allowing to modify coupon-apply request dataModifiers.forEach(function (modifier) {...
Lou Nik's user avatar
  • 453
1 vote
0 answers
157 views

Magento2.4.5-p1 coupon with uses per coupon 1 and per customer with coupon not working

Magento Version - 2.4.5-p1 Using FPC (full page cache enabled) Issue: Create a coupon with uses per coupon as 1 and uses per customer as 1 also. Even both uses type set to 1 even after that we are ...
Preetesh's user avatar
0 votes
1 answer
24 views

Get coupon / Discount object

In (themePath)/Magento_Checkout/templates/cart/item/default.phtml, i want get the coupon / Discount object. I use this code : @var \Magento\Framework\View\Element\AbstractBlock $block [...] var_dump($...
clama4242's user avatar
0 votes
1 answer
29 views

Coupon code definition and usage restriction

Please Suggest a method to restrict the coupon code for 1 time only, even if the coupon codes are bulk generated using the Manage Coupon Codes functionality. All individual codes needed to be ...
user108732's user avatar
1 vote
0 answers
228 views

How to apply multiple coupon codes on cart / quote in Magento 2.3.x?

Need custom logic to apply multiple coupon codes on a Cart / Quote in Magento 2.3.x. Core Magento allows to apply only one coupon code on Cart. However, I need to apply multiple coupon codes on an ...
nikin's user avatar
  • 1,142
0 votes
1 answer
180 views

Create Sales Rule With Subtotal condition

I know how to create a sales rule. But i'm failing to add this rule a condition based on the subtotal Which means i Want to reproduce this programmatically I see this is added into the salesrule ...
Claims's user avatar
  • 1,191
2 votes
1 answer
613 views

Magento 2.4.4 - Module coupon return $object_or_class must be of type object|string, null given

I have updated the Magento 2.4.4 version and also the stripe payment module. I noticed that when I try to save or create a coupon from the Magento backend it comes back this error related to the ...
Jackom's user avatar
  • 493
1 vote
1 answer
391 views

How to Add Cart Price Rule Condition in Coupon Code Programmatically in Magento 2.4.0?

I want to add Add condition in Coupon Code: If Email is [email protected] Please check attached screenshot: How do I'll do this programmatically? Please check my code everything is working fine ...
Wajahat Bashir's user avatar
1 vote
0 answers
104 views

How to we can send Coupon Code For Next Order Discount in Magento 2.4.0?

I want to send Coupon Code for Next Order Discount. When any customer will place an order then customer will received a unique Coupon Code For Next Order. anyone have an idea how to i'll do this ?
Wajahat Bashir's user avatar
0 votes
1 answer
697 views

Custom Coupon Code Validation

Using Magento 2.4. I need some help in tackling a task. In a store developed with Magento2 I need to create/extend the validation for coupon codes. This particular store relies heavily on coupon codes ...
LRMD's user avatar
  • 1
0 votes
0 answers
399 views

Magento 2.3.1 Is there a way to apply discount to only 2nd product added to cart?

We want to achieve or to have below discount rule. Please let us know if it is possible or it can be achieved through any plugin. There are 3 SKU's A, B, C. User added SKU A to the cart. The user will ...
vishal's user avatar
  • 25
0 votes
0 answers
37 views

Magento 2 : How to programatically apply a condition on a coupon for specific product?

I want to apply a condition on a brand Product if the condition is true the coupon should not be applied. Please Revert Asap! THANK YOU!
Aniket Singh's user avatar
0 votes
1 answer
334 views

Magento 2: Cart price rule conditions not working

I have created a cart price rule with coupon code. The condition should be that the code should be applied for all categories except a few categories like this: I don't know why but this is not ...
mechanic's user avatar
  • 440
0 votes
2 answers
904 views

Magento 2: Remove discount applied(Coupon code applied) on place order event

I want to remove discount applied(Coupon code applied) when order is placed. Any help would be appreciated. My controller code: class Success extends \Magento\Checkout\Controller\Onepage implements ...
mechanic's user avatar
  • 440
0 votes
1 answer
315 views

How do I get customer's coupon list?

What should I do if I want to display the user's coupon in the checkout cart? thanks a lot for you help i used ambab-module-couponlist extension,Error shippingAddress is NULL While applying coupons
Bob's user avatar
  • 15
0 votes
1 answer
82 views

I need to exclude certain products from a general discount

I have a discount that subtracts 50 from the every total amount in the cart that's above 250. I did it in the cart rule using this method: How do I exclude certain products from this cart rule? ...
Tal's user avatar
  • 1
0 votes
1 answer
29 views

one coupon - same price

I need to create a coupon that will make all the products in ONE category have the same price. The prices of the products in that category are all above 200, and I would like to make a coupon that ...
Tal's user avatar
  • 1
0 votes
0 answers
323 views

How to re-validate the coupons in magento2 before place an order

at the time of place order re-validate the coupon-code used in the checkout. If code has already been used, the customer should not be able to place an order. Error message should say "Valid ...
venkata prasad's user avatar
1 vote
1 answer
1k views

Magento 2 : Apply Cart Rule to Base Price not Special Price

Good Day, Mates! I am using Magento 2.4.x and try to change its cart price rule mode, I simply want to calculate all discounts (percentage or fixed amount) on Base Price. For example, If a product has ...
Khaled Bin Amir's user avatar
0 votes
1 answer
39 views

Removing ShipFree coupon is one product in cart matches specific category

First post so bare with me. We have an issue with the logic on our Shipfree coupon code. What we want is to invalidate the shipfree coupon code if any one product in the cart is assigned to a specific ...
EcomTrav's user avatar
1 vote
0 answers
51 views

How to remove email invoice coupon code description

In invoice, when the client uses a coupon code it shows in total like Discount(description) I just want to remove the description, where this can be edited? Thanks in advance, Best regards
Rui Silva's user avatar
  • 374
0 votes
1 answer
2k views

Magento2- How to validate coupon code to cart before apply

How to validate Coupon Code to Cart before apply in Magento 2? Is it possible?
Mahendra's user avatar
  • 716
0 votes
1 answer
74 views

Remove only one coupon from multiple from cart in magento 2

I am using magento 2.3.4 and and I have added one coupon code by default. I want to remove this on select of payment gateway but may be customer could add multiple coupon code , but I want to remove ...
sam's user avatar
  • 489
0 votes
0 answers
110 views

Magento 2 - New coupon code not working in cart page

Magento 2 coupon code are saved in cart while changed new coupon code still shows the old coupon code how to fix this issue?
kanidhaya's user avatar
  • 180
0 votes
1 answer
1k views

Magento 2 coupon apply and remove event

I want to redirect to /checkout if a coupon is applied and it is valid. I have tried this event controller_action_predispatch_checkout_cart_couponPost this only works on coupon cancel and /cart page. ...
Ramesh KR's user avatar
  • 876
0 votes
1 answer
881 views

Magento 2: Get attribute at which coupon condition fails and show it in a message

I need to show custom coupon error messages on frontend based on conditions.Where does the validation of coupon occurs when customer applies a coupon on the checkout page? As far as I know, Magento\...
GenZ Dev's user avatar
  • 600
1 vote
1 answer
2k views

Is there any way to get all Applied Discount (for cart rules and coupons) line items in cart/order in Magento 2?

I need to show all cart/order discounts in the following manner: Subtotal ----------- 100.00 CHRISTMAS10 (Christmas Sale 10 % off) ----------- -10.00 CHDLL1242DK (Coupon ...
Milind Singh's user avatar
  • 1,594
1 vote
1 answer
786 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
0 answers
296 views

Apply Discount and Cancel Discount is not work on my Custom Tab

I have created a Module in which Created some custom Tab and on that tab i have added discount coupon code. I have added <div class="payment-option _collapsible opc-payment-additional discount-...
Prits's user avatar
  • 625
0 votes
1 answer
414 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
0 votes
1 answer
247 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
1 vote
0 answers
22 views

M2 - Weird coupon date change on save

Magento version: 2.3.4 When I create a new shopping cart price rule (coupon code) and choose a date range like this: Then in the coupon overview list I see this date: So that correct, but when I ...
n00bly's user avatar
  • 623
0 votes
2 answers
284 views

Is it possible to create a non-ecommerce site using Magento?

I have a site to develop that needs to be a kind of voucher code site. This means that the site will provide voucher codes for other sites, the user will come to my site and pick voucher codes for ...
Allen Mark's user avatar
0 votes
2 answers
964 views

Magento 2 coupon code : DIscount maximum up to x amount

i want to create coupon code in magneto something like below 1:discount 1% of sub-total up to a maximum of Rs. 300 i can not find any such way to do via magento backend
user1799722's user avatar
0 votes
1 answer
164 views

Magento2.3: Product level validation in cart price rule is not working

I want to apply coupon for a particular product, so I have set the coupon is valid for SKU basis and selected the product which I wanted that the coupon has to apply. Please see the below screenshot. ...
MagentoDev's user avatar
1 vote
1 answer
402 views

Enable free shipping only for coupon only

How do I configure the Magento2 can do below promotion? Free shipping with coupon code: (order >= $50)? I did google some result, some ask to enable free shipping method and set min-order-amount ...
Paul Fan's user avatar
  • 658
0 votes
2 answers
467 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 ...
IvannVerano's user avatar
0 votes
1 answer
366 views

Create conditions for coupon rule in Magento 2

I'm trying to create conditions in the coupon rules, but when creating the conditions they are not aggregated correctly Im doing: $rule = $this->couponRule; $cond['conditions']['...
Diego Queiroz's user avatar
0 votes
0 answers
394 views

Magento 2: discount coupon not working ONLY on checkout page

In Magento 2.3.3 and I have noticed that the discount code is not working on the Checkout Page. The weird thing is that, It is working on the Cart Page, but on the Checkout Page It doesn't do ...
Gerardo Siano's user avatar
1 vote
0 answers
95 views

Change coupon discount calculation

I'm new in Magento, and if someone can bring me some light is there a way to overwrite the calculation method when discount is applyed? Mage version 1.9.4. The problem is for eaxmple how mage is ...
Jack's user avatar
  • 11

1
2 3 4 5
7