Stack Exchange Network

Stack Exchange network consists of 175 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

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.

0
votes
1answer
17 views

“Restriction is applied to your order…”, when Coupon applied

On my Magento 2.2.7 instance, when a coupon is applied in the checkout, the error message "Restriction is applied to your order. Please review shipping details on Shipping step." is displayed for 5 ...
0
votes
2answers
18 views

Error while creating plugin for Sales Rule Colelction

I am trying to create afterSetValidationFilter plugin for the Magento Sales Rule collection for implementing multiple coupon code option. Core file I want to override Magento\SalesRule\Model\...
1
vote
1answer
17 views

How to create coupon for the Configurable Product/Products. magento2

I'm applying coupon on the configurable product like now when I apply this coupon on the specific product then it cannot be applied and gives me an error The coupon code "Code-5cd3eadf39cda" is ...
1
vote
0answers
30 views

Getting Invalid Coupon messages on order placed - Magento 2

I am getting that following messages on placing the order. Any Help will be appreciated, Thanks
0
votes
0answers
9 views

Block remove from Home page on specific condition

I Make a promotion rule in which set coupon code , Uses per Coupon is 20 and Uses Per Customer 1. override newsletter email template and set coupon in mail. when any user subcribe newsletter then get ...
2
votes
1answer
27 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 ...
0
votes
0answers
22 views

Apply discount only if subtotal of products is greater than a certain amount

I need to create a cart price rule which will be applied only if: Subtotal is greater than 2000. The products forming the subtotal must be non-discounted. The products forming the subtotal must ...
0
votes
0answers
16 views

How to set the coupon on the specific product using SKU. Magento 2

I followed this code $price = 100; $sku = '24-WG085'; $discount = ($price - (($price + 1) / 2)); $shoppingCartPriceRule = $this->_objectManager->create('Magento\SalesRule\Model\Rule'); $...
1
vote
0answers
21 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 ...
0
votes
0answers
18 views

How to apply coupon on the specific product. magento 2

How can I apply the coupon on the specific product/products my code is public function setCoupon() { // $this->_state->setAreaCode('adminhtml'); // $this->_state->...
1
vote
1answer
24 views

How to create buy one get one promotion in magento

I used Buy X get Y free option.But That promotion is not working.Can any one suggest how to create this coupon.
1
vote
1answer
64 views

How to create Sales rule (Coupon) in magento 2 programmatically

I created the coupon in function its works perfectly now I want to apply sales rules (apply on specific product) my code is public function setCoupon() { // $this->_state->setAreaCode('...
1
vote
1answer
47 views

How to apply Coupon on the Specific Products in Magento 2?

I want to apply the coupon on the specific product I tried: use Magento\SalesRule\Model\Rule; public function __construct( \Magento\Framework\App\Helper\Context $helpercontext, Rule $rule, )...
1
vote
1answer
23 views

Set Coupen for specific Products. Magento 2

I create the coupon function in Helper which is public function setCoupon() { // $this->_state->setAreaCode('adminhtml'); // $this->_state->setAreaCode('frontend'); ...
0
votes
0answers
11 views

Apply discount on specific product using coupon Magento2

I want to apply the discount. how can I set the coupon on the specific product on which I can also set the product Id's on which the discount apply and how can I set the Price as well and how can I ...
3
votes
0answers
36 views

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

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 which gives $10 ...
3
votes
1answer
73 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 ...
2
votes
0answers
42 views

How to use Coupon in magento 2

I create a Coupon code from magento2.2 - programmatically create coupon this code now I have some questions 1) how can I test this code that is it working or not . 2) How can I get this coupon ...
1
vote
0answers
33 views

Magento 1.9 add coupon code to payment page

I want to add the coupon code to the payment page. That works perfect, but when a coupon code is applied, it redirects back to the cart. Is there a way to add the coupon code, without redirect to ...
1
vote
1answer
18 views

How to get coupan code(Promotion code) amount for an order (Magento 2)

I am getting the coupon code(promotional code) for an order For a coupon code, I am using this $order->getCouponCode(); How to get the coupon code discounted price so I can show it to the user. ...
1
vote
0answers
64 views

Magento 2. How to Generate Coupon for specific product / products Programmatically

I want to generate the coupon for the specific products like I want to generate the coupon for the product with id= 20 whose price is let suppose 30$ and I want to sell it on 15$. How can I generate ...
3
votes
0answers
30 views

Get list of coupons code for a cart id

Is there any API in magento to get list of all coupons appreciable to a corresponding cart id. can we get sale rules for a cart id and then find coupon through it
1
vote
0answers
13 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 ...
0
votes
0answers
24 views

Importing csv issue in order to populate table on Magento 2.3

i got a problem while i was trying to populate a table on Magento 2.3 I dont know why is this appearing, i was trying to populate the table salesrule_coupon with the following data on the csv ...
0
votes
1answer
175 views

Importing from CSV to salesrule_coupon. Notice: Undefined index: sku

I've added on System > Data Transfer > Import another option in order to populate the table salesrule_coupon and i got on my csv the following: rule_id,code,usage_limit,usage_per_customer,times_used,...
0
votes
0answers
12 views

How to add shipping price while creating coupon in magento2

Is it possible to create a coupon with shipping price so that we apply discount on shipping price. I know this is not default magento functionality. We can only generate coupons with free shipping. ...
0
votes
0answers
20 views

magernto 2 set multiple coupon on quote

I know many post asked before i asked this question but all of them are about magento 1 or does not have good response I wanna to set multi coupon on quote. i wanna do like this code $...
4
votes
2answers
552 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 ...
0
votes
0answers
10 views

Voucher is sending even the payment is failed. Can I stop sending vouchers forcefully?

dears, I receive voucher even my payment is not done. Can I forcefully stop this ??? is there any way to overcome the issue??? Plz help urgent.... using Magento 1.9
0
votes
0answers
27 views

Coupon not valid for non loggedin users

I'm setting up a sale rule with a coupon which is £10 off if you spend more than £50. While logged in this seems to work fine however when not logged in the coupon code is flagged as invalid. http:...
0
votes
0answers
74 views

Magento 2: Applying Coupon to non sale items only

I'm trying to setup a shopping cart rule with a coupon to target only items which aren't already on sale using the Actions rule "If all of these conditions are false: Special Price greater than 0" ...
0
votes
0answers
23 views

Coupon used in Invoice but doesn't show up in Sales Coupon Report

I have an order that has been completed, this order is created at 07 DEC 2018: The coupon is successfully used, but when i tried to show sales coupon report from the 01 DEC 2018 until 31 DEC 2018, it ...
0
votes
1answer
220 views

magento 2 add coupon for guest with api

I use magento 2.1.8 and when i add coupon by API i get this error {"message":"No such entity with %fieldName = %fieldValue","parameters":{"fieldName":"cartId","fieldValue":null} this is my url /rest/...
3
votes
0answers
106 views

Magento 2 Enterprise : Get Coupon code Expiration Date

I am using Magento 2.2.5 Enterprise Edition.I 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 ...
1
vote
0answers
21 views

Query string to add product and apply promo code: M2

I currently have set up a query string that automatically adds a set amount of products to the users cart when they click a specific button. I already have everything set with with the FormKey() and ...
0
votes
2answers
57 views

Create Coupon/Price rule for first 10 Customers .(Magento 2)

I want to create a price rule in magento 2, and want that to be active only for the first 10 Customers . Is it possible to achieve that ? Thank You !
0
votes
1answer
39 views

generating lowercase Coupon code

I used Use Auto-Generation Magento coupon code but all coupon codes generated uppercase like F1Z8Z2FPQQYL how can I generate the lowercase coupon?! I found code but I can't understand it, how ...
0
votes
0answers
33 views

Quantity discount for same category

I would like to have a sale where if you buy 3 items from category 'widgets' you get 25% off. I setup the following rule. It works fine if you add 3+ products from category 'widgets(118)', however ...
3
votes
0answers
112 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 ...
0
votes
0answers
29 views

Coupon always fail when conditions have “greater than”?

No matter what coupon I create, free shipping or xx% discount, when I set the conditions to be subtotal "greater than" or "equals or greater than", say, $100, the coupons always fail. That means no ...
1
vote
1answer
19 views

Magento 2. What is the entity/class responsible for calculating the discount amount?

What is the entity/class responsible for calculating the discount amount? Where is this discount amount calculated?
1
vote
1answer
46 views

Apply discount for price steps

On Magento 1, I can create a promotion to apply a discount with a discount step quantity. How can I create a discount for price steps? For example: every 500$ of 50$ discount. 501$ = Total 451$ 1020$...
0
votes
2answers
53 views

Magento1 Coupon code Position

I am applying coupon code on Magento ver.1. Its works good but its showing before Shipping & Handling ( I want to moved down after shipping and handling.
1
vote
1answer
34 views

How to customise the coupons in Magento 2?

I want to apply 50% coupon to lowest product only. If the cart has 2 products means when the customer applies the coupon "COUPON50". Product A = $20 Product B = $10 then the coupons must be apply to ...
1
vote
0answers
32 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.
1
vote
0answers
31 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 ...
2
votes
0answers
51 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
28 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
21 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
95 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\...