Skip to main content

All Questions

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

Magento 2 coupon code shows 1 Times used in admin but it is not showing in any orders

We are currently using Magento version 2.4.5-p1. We've encountered an issue with the Magento cart price rule with coupon codes. The problem is as follows: 1 - In the Magento admin panel -> Cart ...
sumeet bajaj's user avatar
  • 1,326
0 votes
1 answer
33 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
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
1 answer
352 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
1 vote
1 answer
2k 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
1 vote
1 answer
435 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
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
2 votes
1 answer
121 views

Create coupon that sets the shipping rate to a specific amount

I need to create a coupon that sets the shipping rate of an item to a specific amount. For instance, if the customer purchases any item and uses this specific coupon code (cart rule), their shipping ...
zaanton's user avatar
  • 23
1 vote
0 answers
90 views

Magento2 without cart price rule how to add a custom coupon code

In to Magento 2.2.2 site. I want to give different price coupon code to the customers. How to create coupon code programmatically if i create cart price rule then cart price rule is many created. ...
Hardik Makwana'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
3 answers
7k views

Magento cart price rules conditions not working properly

I have a discount of free shipping which I want to apply when the shipping address is in the U.S. and the subtotal is $100 or over. I am trying to exclude Hawaii and Alaska from receiving the free ...
DevAnd's user avatar
  • 526
0 votes
1 answer
881 views

Magento 2 : Cart Price Rule

How I can create a cart price rule which will provide 10% discount, but max amount of discount should be 100. For example below are some conditions rule should satisfy: If my cart item total is 500 ...
manish_khot'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
0 answers
536 views

Magento 2: Percent coupon with discount amount limit

I want to give customers a 10% discount coupon but I want to enforce a discount amount limit, that is that the maximum discount amount is $250. Is there a way to limit this using a coupon?
Stephanie's user avatar
3 votes
1 answer
3k views

Magento2: Apply coupon code to regular price not to special price

When applying a coupon, it gives a discount to final price (special price if set). How to make modification that discount would apply only to regular prices (before the previous discount). Note: I ...
Gediminas's user avatar
  • 448
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
0 answers
306 views

Coupon code discount prirority issue in magento 2

I create 2 coupon codes : coupontest1 which have the discount 50$ and priority 0, and coupontest2 which have the discount 40$ and the priority 10. Now if a apply the first coupon code with ...
Alin Lupoiu's user avatar
  • 2,682
0 votes
1 answer
4k views

Magento 2: Multiple Cart rules not working at a time

I have two Cart rules, Both rules "discard subsequent rules" set to No. This cart rule providing 10% discount if someone adding a specific product with minimum quantity 2, no coupon or no other ...
Riyas Muhammed's user avatar
3 votes
3 answers
3k views

Create coupon code programmatically (in Magento 2.x)

I'm trying to port over tens of thousands of coupons from a custom e-commerce website into Magento 2.0.8 and I'm having a hard time getting it to work. These are simple coupons either fixed $ or % off ...
b. mackswell's user avatar
5 votes
4 answers
3k views

Is the salesrule_coupon "expiration_date" field used for anything?

When you create a coupon code in Magento 1 or Magento 2 (a "Shopping Cart Price Rule"), you can set date range where the coupon is valid from/to. This information is stored in the salesrule table, ...
Alana Storm's user avatar
  • 44.4k
3 votes
2 answers
4k views

Magento 2 - There is an event or method to "plug-in" when the coupon is removed from the cart/quote in the checkout flow?

Looking at events.xml of Magento_SalesRule there are two events, <event name="sales_order_place_after"> <observer name="salesrule" instance="Magento\SalesRule\Observer\...
Gianni Di Falco's user avatar
1 vote
1 answer
1k views

Coupon + other cart price rules

So i am trying to set up a coupon code. But whenever i use the coupon code in my cart it overrides the other cart price rules. For example : i have a rule when a product is ordered by 6 pcs they get ...
Versdivers's user avatar