Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

Magento 2 : Error of continues reloading while apply and cancel of coupon code in checkout page

When trying to apply and cancel coupon code on the checkout page it continues reloading and getting an error in the console of cannot read the properties of undefined. See the attached images below of ...
Aman Mamdani's user avatar
0 votes
0 answers
117 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,326
1 vote
0 answers
169 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
1 vote
0 answers
266 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
0 answers
441 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
1 answer
326 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
91 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
30 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
335 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
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
938 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\...
Toji's user avatar
  • 610
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
343 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
1 answer
188 views

Automatically Coupon code stop working on front end Magneto 2

I have used the coupon code before but now automatically Specific Coupon Code stop working on the website It is generated properly but automatically it stops working 1: I have run all Setup upgrade ...
Junaid Khan's user avatar
0 votes
0 answers
263 views

Magento 2 Same Coupon code with different Actions

I am having 3 types of Category C1,C2 and C3. In every category there are products. 1) C1 has P1,P2 and P3 (Each P cost $38) 2) C2 has P4, P5 and P6 (Each P cost $58) 3) C3 has P7 and P8 (Each P ...
Avesh Naik's user avatar
  • 1,251
0 votes
1 answer
818 views

How to check if a sales rules coupon is allowed

I'm trying to know how can I check if a sales rules coupon is allowed for a quote in magento 1.9. Here the scenario : I have a few active rules in my shop and I would like to check if one of them is ...
C_Amixys's user avatar
0 votes
1 answer
193 views

Coupon code doesn't get set, no error

I've created a program to automatically create coupon codes based on certain criteria for a user, the code generation works fine, and I can test that by sending the coupon code in through the URL(like ...
joeybab3's user avatar
  • 378
1 vote
0 answers
107 views

Magento 1.9 add coupon code to payment page

I want to add the coupon code to the payment page. That works perfect, but when a coupon code is applied, it redirects back to the cart. Is there a way to add the coupon code, without redirect to ...
JGeer's user avatar
  • 1,422
1 vote
1 answer
54 views

How to get coupan code(Promotion code) amount for an order (Magento 2)

I am getting the coupon code(promotional code) for an order For a coupon code, I am using this $order->getCouponCode(); How to get the coupon code discounted price so I can show it to the user. ...
summu's user avatar
  • 847
4 votes
1 answer
3k views

Magento 2: How to Apply Coupon Code based on Product Customizable Option

I want to create coupon code for specific product and custom option E.g. Sku: Test1 Custom Option: Name: Demo Custom Option Option Type: Field I want to apply the coupon code ...
Ashish Viradiya's user avatar
0 votes
1 answer
294 views

generating lowercase Coupon code

I used Use Auto-Generation Magento coupon code but all coupon codes generated uppercase like F1Z8Z2FPQQYL how can I generate the lowercase coupon?! I found code but I can't understand it, how ...
majid's user avatar
  • 53
4 votes
1 answer
628 views

Custom error message for invalide coupon code magento2

I want to be able to set a specific error message for when the criteria of a promo code is not met. For eg. I have promotion rule for t-shirt qty 1. Entered valid promo code No tshirts in shopping ...
Rahul Hedaoo's user avatar
2 votes
0 answers
176 views

how to add coupons Limit to a single customer do not use multiple coupon on same cart

how to set rule for customer so he do not use multiple coupon on same cart. Customer can apply only one coupon code at a time. I dont want to give access to use another coupon code. (You can use only ...
Mahendra's user avatar
  • 716
2 votes
0 answers
390 views

Check if coupon code is valid by using customer id and product id

How to check if a coupon code is valid if i only have customer id and product id data? and how to get this coupon sales-rule data?
Tiny Dancer's user avatar
0 votes
1 answer
724 views

Validate and apply coupon when create an order programmatically

I create an order programmatically like this: $store = $this->storeManager->getStore(); $websiteId = $this->storeManager->getStore()->getWebsiteId(); $customer = $this->...
Tiny Dancer's user avatar
2 votes
2 answers
2k views

Magento 2.2 Programatically apply coupon code

How can i apply coupon code programatically in magento 2 using cart id. Thanks.
christy's user avatar
  • 157
2 votes
1 answer
381 views

How to create coupon code to be used only by people who have subscribed to the newsletter

I need a help to create a 15% OFF coupon code for products. This coupon is only for people who have subscribed to our newsletter. As far as I know, there is no option in Magento to do so, but is ...
Anurag Khandelwal's user avatar
0 votes
2 answers
1k views

How to get coupon times used with coupon code using REST Api?

I have no experience with Magento. I was asigned the task to validate a coupon code via magento rest api. I've tried to use /V1/coupons/search GET method. My request url is: https://example.com/...
Alex G.'s user avatar
0 votes
0 answers
315 views

Coupon Code in Right hand Side of Onepage Checkout giving error of 503 (Service Unavailable)--for guest checkout

The below code is working fine for Logged In users, for guest checkout it is not working. it's showing below error : `jquery-1.10.2.min.js:6 POST http://example.com/checkout/onepage/coupon/ **503 (...
prashanth's user avatar
  • 335
0 votes
1 answer
3k views

Magento 2 : Which event is dispatched when a discount is applied?

I have tried already listening to salesrule_validator_process, controller_action_predispatch_checkout_cart_couponPost and controller_action_postdispatch_checkout_cart_couponPost. None of these are ...
Guruji's user avatar
  • 155
1 vote
1 answer
404 views

Magento 2 : Coupon Code for Child of Configurable Product

I have configurable product. It has sizes of bottles like 4oz, 16oz, 32oz, Gallon. I want to apply coupon code that works on 16oz. I add 16 oz bottle to my cart, and if I just apply coupon to items ...
Jason Diehl's user avatar
1 vote
0 answers
297 views

Discount Coupon Code disappearing at checkout

I am having an issue where the coupon code inputted by a customer later disappears when checking out. Basically the customer inputs the coupon code and it looks fine but when they go checkout and type ...
DevAnd's user avatar
  • 526
0 votes
1 answer
3k views

Magento 2 REST API - Generate Coupon

I am trying to generate a coupon through the Magento 2 REST API. It works, except that I cannot change the usage_limit and expiration_date. They are always set to the values of the rule. Is there any ...
giano574's user avatar
0 votes
1 answer
64 views

Discount disappearing when customer inputs name, address, etc

I am having an issue where registered customers are able to use a coupon code but customers that are not registered cannot. Basically the customer inputs the coupon code and it looks fine but when ...
DevAnd's user avatar
  • 526
2 votes
0 answers
210 views

Cancel discount on creditmemo when conditions do not match anymore

I have a discount code that gives a client 20 euro discount on an order, if the cart contains a specific SKU (this is just an example, it could also be an attribute color with the value blue). This ...
Peter Jaap Blaakmeer's user avatar
1 vote
0 answers
2k views

Discount/Coupon Code Block not working on onepage checkout page

I have added discount coupon code block on Onepage checkout page As, reference URL: https://stackoverflow.com/questions/28759782/magento-how-to-add-promo-code-form-on-one-page-checout-page But, I am ...
Chandra Bhushan's user avatar
0 votes
3 answers
1k views

Magento coupon code validation

In which file/class, Magento checks if the coupon code is already used by the logged in customer or not?
Anshu Mishra's user avatar
  • 9,010
1 vote
1 answer
221 views

How many coupon codes I can create at a time in Magento?

I want to create 1 Million coupon codes. What is the maximum no. of coupon codes I can generate at a time? I tried to generate 0.2 Million coupons at a time but it displays error like maximum ...
vairakkani's user avatar
0 votes
1 answer
2k views

Doesn't apply coupon on the already discount products

Can I create a coupon that work with normal product but doesn't work with the already discount product? I have Magento 1.9 I want to do this: This is may dropdown menù on magento 1.9.2.3 I don't ...
Crashy's user avatar
  • 99
2 votes
4 answers
2k views

Promo code for particular SKU

I am unable to put a conditional promo code for SKU. While I am selecting the SKU attribute it's showing "is assigned" or "not Assigned" instead of putting a particularity SKU code. Can anybody help ...
user48055's user avatar
0 votes
1 answer
664 views

How do i delete auto-generated coupon codes in magento?

I would like to delete auto-generated coupon codes under shopping cart price rules in magento through script. can anyone please help me on this.
Kumar's user avatar
  • 333
1 vote
0 answers
319 views

Add coupon code in the subscription mail, Magento 1.9

Can I add an automatic coupon code in the newsletter subscription mail. I want everyone who signs up to newsletter receive a subscription mail with a coupon code that I automatically generated ...
Crashy's user avatar
  • 99
0 votes
3 answers
1k views

How can i apply coupon code if order total value is greater than 100 INR? [closed]

How to create and apply coupon codes for total order value is greater than 100 INR?
Gem's user avatar
  • 699
1 vote
1 answer
500 views

magento coupon code exists

I have a quick question on magento coupon code generator. Please see the below method in core/Mage/SalesRule/Model/Rule.php: /** * Acquire coupon instance * * @param bool $saveNewlyCreated ...
user3713377's user avatar
2 votes
1 answer
2k views

How to get applied coupon code in observer Magento 2?

I want to add a product to cart when a coupon is applied. I created an observer on event controller_action_predispatch_checkout_cart_couponPost. But I don't get the applied coupon code in observer. ...
Hima Mohan's user avatar
1 vote
0 answers
84 views

Magento coupon code generate some % off for next order

I want to generate the coupon 30% off for next order. means suppose any customer already bought one product from our store than they get 30% off on next order. How can I generate this coupon in ...
user3921091's user avatar
0 votes
1 answer
1k views

Auto apply Coupon code already logged in customer

i want to apply coupon code automatically for logged in customer when it comes view cart page .when page loaded it is automatically applied.if user is not logged in than they want to add manually for ...
user3921091's user avatar
0 votes
2 answers
139 views

Coupon code being applied to other products when the eligible product is in the cart

i couldn't find any info on this hence posting it here. Basically I have 30% discount on one single category. We had a case today where the client was able to use that 30% on the whole cart. I did ...
Zak Lewis's user avatar
0 votes
1 answer
394 views

How to Generate Sequential Coupon Codes

I have a client who wishes to generate 10,000 sequential coupon codes. I don't think this is possible in Magento. Probably due to the risk it would cause by enabling people to guess coupon codes. ...
Holly's user avatar
  • 4,923
1 vote
0 answers
276 views

Buy One get 50% Off

I've been reading up on how to implement the promotion "Buy One, get your second item 50% off" But am having no luck with this or anyone's answer. Is this possible in Magento 1.9? Can anyone help? ...
Courtney Small's user avatar