Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
19 views

In Magento 1, Restrict a coupon code to a Not logged In customer Group?

How to restrict coupon code for the guest user? I want to the guest user can apply code only one-time.on the other hand other customer groups can apply same coupon code more than one time.
0
votes
0answers
17 views

Multiple Coupons in Checkout

I am trying to implement a function of multiple coupons at the checkout for a single purchase. In fact I need to allow a maximum of 2: 1 "promotion" 1 of "affiliate" Type, influencer10 = 10% off the ...
1
vote
0answers
22 views

If condition satisfies Not to apply any coupon (No coupon)

We have a customization like a quote edit and approve functionality. Ex: Original product price is 350 where customer write a note "I need this product for 200" admin can approve the request at ...
0
votes
0answers
16 views

How to apply multiple coupons to a single cart magento 2?

I found the multiple-coupons for magento2 extension at amasty, but after using that extension Magento's default frontend is working fine but the rest APIs(from Magento dev docs) to apply the coupon on ...
2
votes
0answers
18 views

how to add coupons Limit to a single customer do not use multiple coupon on same cart

how to set rule for customer so he do not use multiple coupon on same cart. Customer can apply only one coupon code at a time. I dont want to give access to use another coupon code. (You can use only ...
0
votes
0answers
10 views

How does Magento 2 discounts / coupons / cart price rules work?

If I have an order which has 2 item such as Item 1 - £11.00 Item 2 - £6.00 Subtotal: £17.00 If I then apply a £2 discount via a voucher code Magento takes the discount off each item but oddly. ...
0
votes
0answers
22 views

Magnento 2 how can apply multiple coupons in checkout

public function collect( \Magento\Quote\Model\Quote $quote, \Magento\Quote\Api\Data\ShippingAssignmentInterface $shippingAssignment, \Magento\Quote\Model\Quote\Address\Total $...
0
votes
0answers
9 views

How to display shopping cart rule on mini cart also in 1.9

I applied some promotion rule on shopping cart but I want to display in mini cart also, is any way to display same rule on mini cart.
1
vote
0answers
42 views

How to update Knockout using PHP window data with Ajax? - Magento 2.1

I have the following code which is working fine. I want to update coupon Name, Description and Amount based on a coupon code name change. This is my php file use Magento\Checkout\Model\...
0
votes
1answer
51 views

Magento 1.9 - issue creating coupon rule. An error occurred while saving the rule data

I can create a new Shopping Cart Price Rule, but when using Actions or Conditions it won't save, resulting in a red error: An error occurred while saving the rule data. Please review the log ...
1
vote
0answers
16 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. ...
0
votes
0answers
29 views

Show discount including tax, calculate discount excluding tax

I want to display the discount amount including tax on cart overview page (totals summary). Magento 2.1.8 Relevant settings: Catalog prices: Excluding tax Apply Customer Tax: After discount Apply ...
0
votes
1answer
40 views

Coupon Label Does not Show if discount 0%

I want a way of adding a coupon code that is basically just an identifier for a promotion e.g. Free Gift Wrapping or a free product give away. I do not want to go the route of having to have the ...
1
vote
1answer
34 views

Magento 2: Restrict customer to use 1 coupon code

I have multiple coupon codes in my store. The customer should not be able to use a coupon if he/she has already used a coupon before? Is that possible? Thanks.
1
vote
1answer
57 views

Magento 2 - Not able to override CouponManagement Model

I am trying to override Magento\Quote\Model\CouponManagement core vendor file. What I am trying to achieve is change the default error message when the wrong coupon code is added. My di.xml <?...
2
votes
0answers
67 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?
0
votes
1answer
71 views

Validate and apply coupon when create an order programmatically

I create an order programmatically like this: $store = $this->storeManager->getStore(); $websiteId = $this->storeManager->getStore()->getWebsiteId(); $customer = $this->...
1
vote
0answers
41 views

Magento 2: create a coupon code using events and observers

I need to create a coupon code for different customers based on their country. For example: If the customer is from US, the discount should be 10% and if it is UK, it should be 20%. This I have to ...
0
votes
0answers
85 views

How to move coupon code to shipping step of checkout in Magento 2?

I am trying to move coupon code to shipping step instead of payments & review step. how this can be implemented? I need discount code form to appear in shipping step after shipping methods ...
0
votes
0answers
29 views

Coupon Message Always Success

I'm using Magento 2.1.9 I have 0 coupons setup but anything that gets typed into the Coupon box on checkout always results in the success message "You used coupon code 1234". How can i change this ...
0
votes
1answer
38 views

How to apply coupon code if specific products are available on the cart?

The cart contains two products ex: product1+product2 then only my discount can be applied, otherwise should not allow even individual also. Based on SKU
0
votes
0answers
91 views

Magento1: Payment method “Zero Subtotal Checkout” not working

I would like to use a coupon code that allows 100% off on a product but the store still ask for a payment method as a Required Fields but the fields are blank. I enabled the Zero Subtotal Checkout at ...
1
vote
1answer
326 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
0answers
14 views

How to create a personal coupon when user registers with a friend reference?

I'm pretty new with this magento 2 thing. I'm trying to attach a coupon once a user registers into my store. I did extended the register model to ask for a friend reference code. If there is a ...
1
vote
3answers
434 views

Change success message on applying coupon code

In Magento 2.x, By default, we can set coupon codes from Marketing->Cart Price Rules. I've added a test code and it's working as expected. When I added the code in cart page (mysite.com/checkout/cart)...
0
votes
0answers
20 views

How to allow staff accounts to view Coupon Lists in Magento 1.9.2.2

I am working with Magento 1.9.2.2 and I would like to allow staff accounts to view coupon lists. Currently staff accounts can view the details for a coupon, but not the list of codes for that coupon. ...
0
votes
1answer
94 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 ...
0
votes
0answers
97 views

How to apply Discount on subtotal and if subtotal greater than or equal to $50 - Magento1

I am using below code to create unique coupon codes programmatically. I am able to generate codes but while applying it on cart the discount applies to each product added in cart instead of subtotal ...
0
votes
0answers
12 views

What is the similarity between cart and minicart while clicking the “Proceed to Checkout” button in magento 2

While clicking "Proceed to checkout" button, both in cart and minicart What is the common value is return in magento 2. I need to group cart and mini cart by using one common value. Please provide ...
4
votes
1answer
833 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 ...
0
votes
0answers
95 views

Coupon code: expiration date

Is there a way to modify the expiration date of a single coupon and not only for all the coupons of the promo rule? I mean...daily, I need to send emails (with Oracle Responsys) with a coupon (...
2
votes
1answer
391 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 ...
1
vote
1answer
49 views

How to get list of Coupon Codes

Is there any way to get list of all coupon codes which are available to the cart will be displayed in the Cart Page ?
0
votes
2answers
443 views

Add Discount coupon code box on checkout page in magento 1.9

We want to add Discount coupon code box on checkout page. This coupon code box showing only on cart page we also want on checkout page.
2
votes
1answer
455 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 ...
0
votes
0answers
21 views

Magento 2 Price Cart Rules - Coupon creation help

I got some requests from Marketing to create coupons. I'm a new Magento admin and lost TBH. Any specific direction on how to create these coupons greatly appreciated! Email promo Coupon code ...
0
votes
0answers
126 views

Getting 'Coupon with the same code already exists' in magento 2.2.1

In Magento 2.2.1, if I delete Shop Cart Price Rule, it gets deleted but for some reason, the coupon code which was associated with that rule is still left in the database. So, if I try to create a ...
0
votes
1answer
126 views

Coupon API not working for guest user in Magento 2 core API

I Followed below steps, 1. Create cart for guest user URL: http://devsite.com/magento2.2/rest/all/V1/guest-carts Content-Type: application/json Method: POST Authorization Bearer Key: ...
0
votes
0answers
198 views

Can't apply coupon discount on included tax

I have the products defined with the price (included tax) I created a €10 coupon (fixed amount discount for a whole car). When I apply it to a basket with a single product of €8, I see it discounts ...
0
votes
1answer
108 views

setCouponCode not working in magento 2?

SalesQuoteCollectTotalsBefore This observer will dispatch when the shipment is selected. After that, I need to apply a coupon code. public function execute(\Magento\Framework\Event\Observer $...
0
votes
0answers
19 views

Magento 1.9.2.3 - apply voucher code button issue

In cart, my "Apply Voucher" button does not work. Checked script and seems to work as I added console.log('test') and I can see it in console on click but nothing happened, code wasn't added. Seems ...
1
vote
2answers
127 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 ...
2
votes
0answers
165 views

Custom Cart Price Rule Actions in Magento 2.2 (Trigger somewhen when a coupon code is redeemd)

Is it possible to add custom actions for coupon codes? e.g You're on the cart page and have been provided with a coupon code, when you enter the coupon code it adds x1 Burger to your basket. or You ...
0
votes
0answers
70 views

Checkout coupon update problem

When i try to submit a coupon the coupon input turn required... Where can i change this? The only diference is the input class, it changes from: class="form-control form-control-primary required-...
0
votes
0answers
120 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 ...
0
votes
1answer
526 views

Programatically apply coupon code in magento 2.2

How can i apply coupon code programatically in magento 2 using cartid.
0
votes
0answers
273 views

magento2 programmatically update sales rule

I have a Magento2 site and a Cart pRICE rule setup. now I need to programmatically update the cart rule with a new coupon code that I would generate. From a prior post I have the below code which ...
3
votes
3answers
1k 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 ...
0
votes
1answer
39 views

Use only one Coupon Code among a set

Magento 1.9 We want to Create a group of different coupon codes , and there is chance that multiple coupon code can be received by single customer. Here system must restrict to use only one coupon ...
0
votes
0answers
46 views

Magento's Hidden_tax_amount field for discount coupon and reward points

I am using Magento 1.9.2.4 and not able to understand when will magento store tax value in hidden_tax_amount field as both the tax for discount coupon and reward points are stored in it, Is any other ...