All Questions
22 questions
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 ...
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\...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
...
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?
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 ...
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 ...
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.
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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\...
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 ...