All Questions
19 questions
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 ...
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 ...
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 ...
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 ...
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?
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\...
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 ...
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 ...
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.
...
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 ...
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 ...
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?
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->...
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.
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/...
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 ...
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 ...
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 ...
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.
...