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
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
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
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
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
0 votes
1 answer
76 views

Magento 1 creating a variable fixed-amount coupon code in PHP

I'm trying to create a coupon code for a customer that gets a fixed value from PHP (essentially it can be a different amount for each customer/instance of generation). For the coupon code generation, ...
joeybab3's user avatar
  • 378
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
77 views

magento 2 apply default discount code

I am working on magento 2.3.0 and checkout is working fine with discount. I have created discount code named 95TEST which discount 95% on order total. Now, Every time when customer redirect to ...
Hiren Shah's user avatar
1 vote
0 answers
34 views

coupon code restrict for only some associated products in magento 1.9.0

I want restrict coupon code some associate products I have one configurable product it have 25 simple products(associate products) i have create coupon code to apply only 5 simple product if i add ...
Pawankumar's user avatar
5 votes
1 answer
1k views

Magento 2 Enterprise : Get Coupon code Expiration Date

I am using Magento 2.2.5 Enterprise Edition. I'm created cart price rule from admin. Now I want to display coupon expiration date in front-end but in enterprise edition start/end date is saving by ...
Sneha Panchal's user avatar
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
625 views

Shopping Cart Price Rule Magento 1.9.2

Want to know how we can Set Shopping Cart Price Rule in Magento 1.9.2 for specific Category? i have 1 product which is under multiple categories but i only want to put Condition on One Particular ...
Crumby's user avatar
  • 41
1 vote
0 answers
430 views

Magento 1.9 Coupon code applied but subtotal, grand total and withdiscount totals not updating in quotes/carts

I m facing strange issue as follows: I have created one shopping cart rule - with 10% on every product and to all customer groups. Conditions and Actions applied for all the products. When i add ...
sandip's user avatar
  • 4,054
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
1 vote
0 answers
499 views

Magento 1.9 Shopping Cart Price Rule apply issue

I'm struggling with an issue regarding the Shopping Cart Price Rules. I've created a rule with a single coupon and the only condition is Subtotal is equal or greater than 65,50. When I'm using this ...
FreshHaze'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
178 views

Adding discount for whole cart

I would like to create a coupon with following conditions: - There are special products for which the coupon is valid - For the first article, you get 10% - If you buy the second article you get ...
Florentine's user avatar
1 vote
0 answers
93 views

Multiple users are using single coupon simultaneously

I have created one shopping cart rule with uses per coupon "1" and uses per customer "1". For example, if user A adds product in cart and apply "COUPON01" on cart page. Also user B adds product in ...
Gobinda Bhatia's user avatar
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
0 votes
1 answer
482 views

coupon code only allowed to be used programmatically

I am looking for a way to have a coupon code that can only be used through code and not be allowed to be used in the cart. I am programmatically adding the coupon code to the cart when the user is ...
Trevor Orr'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
1 answer
791 views

Coupon expiration date not working

In Magento CE 1.9.2.4 I use an extension who creates coupons for birthdays in a "Shopping Cart Price Rule". These coupon are generated with an expiration date. The coupon works except that Magento ...
Gil's user avatar
  • 21
0 votes
1 answer
80 views

Shopping Cart Rule on Non sale items

I need to be able to apply 20% off just the non exclusion items in the cart. Can someone please share their knowledge on how to set this up. My Coupon Description: 20% OFF PURCHASE with Coupon Code. ...
Kelley's user avatar
  • 1
0 votes
1 answer
129 views

Coupon Code for First Time user in magento 2.1

I have override the file - Magento-Checkout- Controller-Cart-CouponPost , Using orderCount of the particular customer to check whether its new user or old , but no clue whereto put the condition.
supriya mishra's user avatar
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
1k views

Magento Shopping Cart Price Rules Wrong Calculation

Magento ver. 1.9.0.1 I am running a $10 off coupon code for orders over $100 and more. When there's one SKU in cart, the code works perfectly fine. When there's multiple SKU in cart, the code fails....
Tan KianBoon'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
1 answer
2k views

how to generate and get the coupon code?

$generator = Mage::getModel('salesrule/coupon_massgenerator'); $data = array( 'uses_per_customer' => 1, 'uses_per_coupon' => 1, 'qty' => 1, //...
user avatar
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
5 votes
5 answers
11k views

Grand Total not updated when discount code is applied

There are 2 types of Discounts (Shopping Cart Rules) Working on the Website right now: Coupon Codes - Working Absolutely Fine BUT - Subtotal does not get Updated. Ex: 10% Off on Rs. 500 and Above - ...
Akshat Malik's user avatar
0 votes
1 answer
67 views

Shopping cart rules: Autogenerated unique codes, applicable to any product with different discounts

I need to generate a number of unique coupon codes. Any of those coupon codes could be used for any of the products. The problem is that different products need to get different discounts. Seems to ...
Rimšiakas's user avatar
3 votes
1 answer
3k views

Create Free Shipping Coupon

I have trouble to setup a free shipping coupon in Magento 1.7.0.2. The coupon itself will be applied successfully but the Free Shipping Method doesn't appear. Actually I want to setup a coupon which ...
Stefan's user avatar
  • 1,507
0 votes
1 answer
23 views

Magento- Create a product, such that no existing coupons is valid for that product

I have around custom coupon codes generated for various type of offers and free shipment. All my products are given a price and reduced price to buy for the user. And further discounts are applicable ...
phoenixmagento's user avatar
1 vote
1 answer
2k views

Magento Shopping Cart Price Rule and Tier Price

Here's what I am trying to achieve. I have some products which have tiered pricing set for them. When purchasing one unit of such an item the regular price will apply. Whenever buying two units of ...
MatthijsIJ's user avatar
  • 3,622
1 vote
1 answer
689 views

Magento Coupon codes although deleted already, doesn't allow to create coupon with same code again

I am not sure if it's some kind of core-logic(unknown to me) or a bug maybe, but even though I have already deleted a coupon-code rule from "Shopping Cart Price Rules", when I search in the "...
H.D.'s user avatar
  • 361
0 votes
1 answer
3k views

Customize "apply coupon" action when a particular coupon is applied and then re-update shipping in cart & checkout

I am running magento ver. 1.9.0.1 in my site. I want to customize shipping rate when a particular coupon is applied. How can I do that when "Apply Coupon" button is clicked, if a given coupon is the ...
H.D.'s user avatar
  • 361
0 votes
1 answer
249 views

How to fetch "created_at" date while applying a coupon code in cart page

This is regarding mass generation of coupons. I generate many coupons under single rule. When I apply anyone of those coupons in the cart page I need to perform custom validation apart from magento ...
Swetha Vaidyanathan's user avatar
0 votes
1 answer
809 views

Free Shipping Coupon Not valid

So we have created a coupon via the admin panel for free shipping. It's a specific coupon "free" andhas a condition that the shipping country is the "United States". The problem is that if a non ...
CD Brian's user avatar
  • 169