Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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
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
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
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
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
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
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
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
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
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
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
1 vote
1 answer
50 views

Create shopping cart price rule with coupon on clicking Place Order [closed]

I am working on a custom module in which I need to generate a coupon with "n" number of uses per order while clicking "Place Order" in checkout page. Can anyone suggest me the best way for it.
Swetha Vaidyanathan's user avatar
5 votes
1 answer
11k views

Apply discount to only 1 item in the cart via Shopping Cart Price Rules

The situation is simple – I want to offer 25% discount on one product in the cart. So if you order 5 of Product A and 3 of Product B, you should receive 25% off either one of Product A or one of ...
bogeylicious's user avatar
1 vote
2 answers
1k views

Free shipping coupon is not applying

I have created a coupon code for free shipping following steps similar to described here, but when I try to use valid or not valid coupon code Magento (1.4.1.1) does nothing. Site URL and coupon code ...
JackTheKnife's user avatar