Skip to main content

Questions tagged [coupon]

Denotes questions specific to shopping cart coupons. Consider using the shopping-cart-price-rules tag if the question is regarding shopping cart price rules in general.

Filter by
Sorted by
Tagged with
15 votes
6 answers
23k views

How can i hide Discount Code form checkout payment page in Magento 2?

I tried to hide the Discount Code field from checkout payment page, but i can't find anything in xml files. For cart page, i found this field in checkout_cart_index.xml, and i was able to hide like ...
Alin Lupoiu's user avatar
  • 2,682
10 votes
2 answers
9k views

How to get the Quote Id from Masked Quote Id (QuoteIdMask) in magento 2

I need to do something after applying the coupon code in the checkout page, So I have created the ajax call in the response of set-coupon-code.js in Sales Rule module. But I got the Masked quote Id ...
Jaisa's user avatar
  • 2,636
9 votes
8 answers
36k views

How do I find out what user used what coupon code?

I have a few coupon codes in my store, and I’d like to be able to track what code a user may have utilised. Inversely, is there a way to see how many times a particular code was used?
Christina Rule's user avatar
9 votes
2 answers
4k views

Set coupon expire date for individual coupon

I want to create coupon code and I need to set also expiration date. Magento offers to set expiration date only for promotion rules and it affects globally all coupons inside this rule. Anyway inside ...
JohnyFree's user avatar
  • 1,539
7 votes
1 answer
6k views

Working of discount coupons on the checkout page in Magento 2.2.2

I am trying to understand the working of discount coupon codes on the checkout page. When we apply any coupon code, then the discount is added to cart without reloading the page. I have checked and ...
vedu's user avatar
  • 877
7 votes
2 answers
5k views

How to create a shopping cart rule - Get an certain item free if you spend over $50

How do I create a shopping cart rule where you get an item free if you spend over $50? I do not want to download any extensions, I just need to know how to make a certain item free when customers ...
nikki's user avatar
  • 71
7 votes
2 answers
4k views

specific error messages on coupon codes

Is it possible to get the reason that a coupon code is invalid? For example, if I have a shopping cart rule that specifies that the order subtotal must be $100 or more, and the user tries to use the ...
Laura's user avatar
  • 2,710
7 votes
0 answers
1k views

Magento 2: How to Show Discount Coupon Applied Code Product wise?

In Shopping Cart, I have 2 products. When I am applying the Promo Code it's going to apply on only 1 product as per the Shopping Cart/Promotion Rules. I would like to show discount code on basis of ...
Jackson's user avatar
  • 9,969
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
5 votes
2 answers
21k views

How to get total discount amount of Coupon Code for all items in the cart

I'm using Magento 1.9.0.1 and here is the code on which I am working on: $quote2 = Mage::getSingleton('checkout/session')->getQuote(); foreach ($quote2->getAllItems() as $item){ $...
Venelin Vasilev's user avatar
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
5 votes
2 answers
10k views

Magento Coupons limit per use o per customer not working

In the screenshot you can see my options. I have created a coupon to have the free first shippings. What i need is to have one unique code (Example: FREEFIRSTSHIPPING) that can be used only one time,...
Simbus82's user avatar
  • 198
5 votes
1 answer
6k views

Buy 2 specific products and get one specific product free

been trying to set this up but need some guidance, we are running an offer where if the customers add products X and Z to the cart product Y will be free of charge. Is this possible via the build in ...
Zak Lewis'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
5 votes
1 answer
1k views

How to send a time-limited coupon code to new subscribers?

I'm using Mailchimp for newsletter signups. I'm looking for a way to automatically send a coupon code to my new subscribers. I want the coupon to expire after 3 days. Is there any extension that could ...
Tobias Krüger's user avatar
5 votes
2 answers
1k views

Disable tier pricing when applying coupon code

I want to have a web shop where products have tier pricing, such as: order 3 save 10% order 10 save 20% This is easy by setting tier pricing in products. However, I don't want tier pricing to ...
Vektori's user avatar
  • 51
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
5 votes
0 answers
275 views

Magento2 : How to show as separate lines for each discount on cart page?

In magento2 - Anybody please let me know how we can separate the discounts on cart page on different lines. For example: I have a basic discount $5 for all products and I'm applying a promotion code ...
VIPIN A ROY'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
4 votes
6 answers
16k views

Magento coupon codes - only one coupon / guest customer

I'm using magento 1.7 and I have the following issue with coupon codes. I've set up a cart rule which uses a coupon code. I want customers to be able to use this coupon only once, so I set up Uses per ...
Clain Alexandru's user avatar
4 votes
2 answers
12k views

Magento generate coupon codes programmatically

I would like to create unique coupon codes automatically. I have tried the following - when using setCouponCode() to generate coupon code, i must set static code. Example: $code = "abc"; ...
rocky's user avatar
  • 107
4 votes
1 answer
11k views

Tax calculation after discount on Magento incorrect

I have a discount code on a Magento store that reduces the cost of the purchase by 10%. All works ok in that respect, except for the tax calculation. Example: Total value of the order is £34.18 ...
Dom Greenslade BSc's user avatar
4 votes
3 answers
4k views

Discount coupon is not working for minimum subtotal

I have created a new "Shopping Cart Price Rule" for discount coupon of 20% off on minimum shopping cart subtotal of Rs. 2000. For this I set values as under: Rule Information Status: Active ...
Himanshu's user avatar
  • 183
4 votes
3 answers
5k views

Issue coupon on newsletter signup

I'm using Community 1.9 with the Magemonkey extension by eBizMarts for Mailchimp installed. How can I go about creating a rule so that any person who subscribes successfully gets a $10 coupon to spend ...
maGz's user avatar
  • 619
4 votes
4 answers
12k views

Multiple actions on shopping cart price rule

I've viewed some articles on creating shopping cart rules programmatically, but what I can't find is how to combine multiple actions into the one coupon code. What I need to do is apply 15% discount ...
MagentoEmailSadness's user avatar
4 votes
1 answer
4k views

How to update checkout/cart/ orders total when promo code is applied dynamically without page reload

I have changed my checkout/cart/ page promo code to ajax call so that it doesn't get reloaded, while on the success of that ajax call, I have to update the total price summary dynamically without ...
summu's user avatar
  • 847
4 votes
1 answer
4k views

Adding Magento coupon code in (last) step of onepage checkout

I have seen many extension on this matter. But I am looking for the clean, easy, close to core solution. Actually I am surprised that Magento/Ebay did not incorporate this simple win in a previous ...
snh_nl's user avatar
  • 5,452
4 votes
1 answer
114 views

Multi-use Coupon

Is it possible to create a Shopping Cart Price rule that will allow a customer to use a coupon code multiple times? For instance, the coupon is good for 3 items per year. The customer could order 3 ...
yldziner's user avatar
  • 453
4 votes
1 answer
3k views

Magento 2: How to Apply Coupon Code based on Product Customizable Option

I want to create coupon code for specific product and custom option E.g. Sku: Test1 Custom Option: Name: Demo Custom Option Option Type: Field I want to apply the coupon code ...
Ashish Viradiya's user avatar
4 votes
1 answer
628 views

Custom error message for invalide coupon code magento2

I want to be able to set a specific error message for when the criteria of a promo code is not met. For eg. I have promotion rule for t-shirt qty 1. Entered valid promo code No tshirts in shopping ...
Rahul Hedaoo's user avatar
3 votes
6 answers
5k views

coupon code should apply once we cancel the order

If we applied coupon code and completed order. Once we cancel the order, then coupon code should become applicable again, but it can't be used anymore. Please help me, it's strange default Magento ...
Baby in Magento's 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
3 votes
2 answers
12k views

find all applied coupon code/rules for an order

Is it possible to find out all coupon codes was applied for an specific order? i can only found out 1 coupon codes was applied for an order in sales_flat_order table. In the table, only 1 field was ...
hkguile's user avatar
  • 2,221
3 votes
1 answer
7k views

How to apply an existing coupon code programmatically in Magento 2

I try to apply an existing coupon code programmatically in a controller by coupon id. The only thing I found these code lines for Magento 1. Mage::getSingleton('checkout/cart') ->...
Alin Lupoiu's user avatar
  • 2,682
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
1k views

Why there is $address->hasCouponCode() in qoute's _validateCouponCode() function?

I'm just courius why there is check for $address->hasCouponCode() in _validateCouponCode (Mage_Sales_Model_Quote). I think that there is no such data in model nor in database like coupon code for ...
Michał Kuliński's user avatar
3 votes
1 answer
4k views

Magento 2: Minicart Failed to load the "Magento_SalesRule/js/view/payment/discount" component

I am working on MiniCart Extension in which I need a coupon code text box in my Minicart. For that I have overridden default.xml in my Custom Module but everytime It returns following error in the ...
Sameer Bhayani's user avatar
3 votes
1 answer
11k views

Check if coupon is valid for a quote

I need to programitcally re order an Item. I have achieved this by Cancel the current order Get the cancelled order quote Ammend the Qtys Recalulate the shipping This is all fine... now I need to ...
Jonathan Tizard's user avatar
3 votes
1 answer
1k views

How to show all coupon codes in cms page

I need to show all coupons codes in cms page. For this i have created a custom phtml in templete and in this template i have wrote the following code : <?php $rulesCollection = Mage::getModel('...
Vivacity InfoTech's user avatar
3 votes
1 answer
93 views

Coupon code creation in magento

I have created a new discount coupon code (2014SALE) of 10% discount for a particular category (say Car). It is working fine. But my requirement is to create an another discount of $75 for a ...
Soumya's user avatar
  • 33
3 votes
2 answers
3k views

Is there an event for apply coupon action in cart

I want to add a product to cart automatically when a coupon is applied. When the coupon is applied the product should be added to cart showing its price and a discount of the price of the product ...
James's user avatar
  • 273
3 votes
2 answers
4k views

Custom AJAX discount-form not processing coupons

Running Magento 1.9.0.1 CE I've created an AJAX version of the discount-form used in Magento to process coupons in Magento with the help of this tutorial: http://www.lelandcope.com/2012/04/how-to-...
sparecycle's user avatar
  • 1,479
3 votes
2 answers
615 views

Coupon API Soap

I’ve a problem with the Coupon API when i make : $couponCode = "test"; $resultCartCoupon = $proxy->call($sessionId, "cart_coupon.add", array($shoppingCartId, $couponCode)); I always got : ...
FERNANDO SILVA's user avatar
3 votes
1 answer
2k views

Discount calculcation bug in 1.9.0.1

I upgraded recently from 1.7 to 1.9.0.1 and I am wondering if this is a bug or if I just missed some new configuration, I am not using tax classes btw. When creating a shopping cart price rule, (e.g. ...
Socrates's user avatar
  • 175
3 votes
2 answers
8k views

Free shipping shopping cart rule and discount coupon

We need to be able to offer free shipping via shopping cart price rule to all orders above 100 dollars. We also need to be able to have a discount coupon that gives certain amount of discount on the ...
Webninja's user avatar
  • 1,613
3 votes
1 answer
2k views

To show coupon (shopping cart discount) amount including tax

As I try to show correct EU taxes I need to show correct coupon discount(shopping cart discount). My current options are: These options including tax are recommended on EU while end customer must see ...
shopMAGES's user avatar
3 votes
1 answer
4k views

shopping cart price rule condition based on final price rather than subtotal

In shopping cart price rule we have condition as subtotal but I want condition for final price ie. total cart price after coupon code applied. How to do that?
Sandesh's user avatar
  • 1,649
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
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
3 votes
1 answer
746 views

Is there a way to use item weight in a Shopping Cart Price Rule condition?

I have a product that has two weights options, 1lbs and 2lbs. Is it possible to set a Shopping Cart Price Rule condition for only the 2lbs item?
beatsforthemind's user avatar

1
2 3 4 5
7