Skip to main content

All Questions

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

Magento 2 - Which event is triggered when payment fails and coupon code usage needs to be reset on the checkout page?

We are currently using the PayPal Braintree module on our Magento 2 website. We need to find an event that triggers when a payment fails during checkout. The issue we are facing is that when a ...
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
2 votes
1 answer
640 views

Magento 2.4.4 - Module coupon return $object_or_class must be of type object|string, null given

I have updated the Magento 2.4.4 version and also the stripe payment module. I noticed that when I try to save or create a coupon from the Magento backend it comes back this error related to the ...
Jackom's user avatar
  • 503
2 votes
3 answers
495 views

M2 - Change end date of all coupon codes

In the database there is a table called salesrule_coupon which has all the coupon codes in it. I need to change the column expiration_date for all the coupons to the same date 30-08-2024, Is This ...
n00bly's user avatar
  • 623
0 votes
1 answer
193 views

Coupon code doesn't get set, no error

I've created a program to automatically create coupon codes based on certain criteria for a user, the code generation works fine, and I can test that by sending the coupon code in through the URL(like ...
joeybab3's user avatar
  • 378
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
3 votes
0 answers
46 views

magento 1.9 special offer timer for first time user

For my Magento 1.9 website, I want to set the special offer timer. In which I want to display this timer to first time user (new visitor) only and it will use this offer within an hour only. After an ...
Narayan's user avatar
  • 119
5 votes
3 answers
8k views

magento2.2 - programmatically create coupon

in a magento 2.2 based site we need to programmatically create a coupon code for . However was only able to find one code sample and it does not seem to work. Meaning no coupon code is created and ...
Jayreis's user avatar
  • 725
2 votes
1 answer
1k views

How to check if a coupon code is a free shipping one?

I'm working with Magento 1.9.2. I need to check (via code) if a coupon is a "free shipping" one: how can I do it? I searched everywhere online but I didn't find a solution yet. I know there are two ...
user avatar
1 vote
1 answer
796 views

Only one coupon per customer in magento shoppin cart price rule

I am using Magento ver. 1.9.2.0 and I have the following issue with coupon codes. I have set up a shopping cart rule which uses a coupon code. I want customers to be able to use this coupon only once, ...
Sheenu's user avatar
  • 119
1 vote
0 answers
166 views

Coupons not working with Recurring Products in Magento [closed]

When I apply a coupon at cart having a recurring product, it applies the Coupon but calculates wrong and displays wrong amount. But it is working fine with normal products(other than recurring ...
Shivanand Chary's user avatar