Skip to main content

All Questions

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
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
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
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
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
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
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
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
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
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