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
0
votes
1answer
20 views

Magento which model is correct for getting the quote in the cart?

I have tried every different combo of model that returns a quote in order to try and find the one that has the quote for the current customer's cart. So far none of them work, and I can't figure out ...
0
votes
0answers
21 views

Magento 2: create coupon code

I want to create a coupon code which can work as a gift card. Gift Card will be applied separately (not in discount form/ Multiple coupon can be apply) I followed Coupon code to achieve this but the ...
0
votes
0answers
9 views

Exclude special price items from coupon code Magento 2

How can I exclude special price items from a coupon code in Magento 2 but also apply a coupon to regular priced items? I have tried 'special price equals to or greater than 0' which works but if the ...
0
votes
0answers
14 views

How to filter product collection where sku used in any of the shopping cart rules in magento 2

I am trying to retrieve the product collections where skus are used in shopping cart rules. Here what all i am trying is I need to get the list of sku which are used in any of the shopping cart ...
0
votes
0answers
25 views

Hide reward points payment when discound code is applied in magento 2

I want to hide reward points payment option while discount code is applied but I don't know if that can be set somewhere in the Magento admin panel. I want to do it in reverse direction too, so if ...
0
votes
1answer
17 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 ...
0
votes
2answers
85 views

Magento CE 2.3.2 TypeError: setCouponCodeAction.registerDataModifier is not a function

After updating Magento CE 2.3.1 to 2.3.2 incl. updating libsodium we have trouble with our checkout. When trying to access the checkout - does not matter which way - we get the following TypeError: ...
0
votes
0answers
13 views

Manually check that applied coupon code is for free shipping on cart and checkout page Magento1.9

I want to check that the coupon which is applied is for free shipping on cart and checkout page. Thanks.
0
votes
1answer
20 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, ...
0
votes
0answers
11 views

M2 - Add coupon codes for the same rule

For a client we needs to add existing codes (about 400) with most of them with the same rule. I've already created a code which created multiple codes for the same rule. When I look into the database ...
0
votes
1answer
21 views

sectionLoadUrl error while updating cart price total Magento 2

I am updating the cart total price dynamically without page reload. I wrote code in js file require( [ 'Magento_Checkout/js/model/cart/cache', 'Magento_Checkout/js/model/cart/totals-processor/...
4
votes
1answer
104 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 ...
0
votes
0answers
19 views

$15 off when you spend $100 or more coupon

We added a cart price rule that gives you $15 discount when you purchase a total of $100 or more. We recently got an order having a discount of $100+ when the customer used the coupon code. I've read ...
1
vote
1answer
21 views

Coupon Plugin the cart is shown as empty

I want to create a plugin to hook into the CouponManagement System. I hook into beforeSet and it triggers but the cart is shown as empty, This is my code: protected $_quote; private $logger; ...
3
votes
0answers
23 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 ...
0
votes
1answer
25 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
30 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
21 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
54 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
10 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
31 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
35 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
22 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 ...
1
vote
1answer
25 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
145 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
56 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
12 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 ...
4
votes
0answers
52 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 ...
4
votes
1answer
151 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
43 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
37 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
20 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. ...
2
votes
1answer
84 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
35 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
15 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
34 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
296 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
13 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
22 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 $...
3
votes
2answers
845 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
11 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
37 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
100 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
30 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
377 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/...
4
votes
0answers
133 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
26 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
81 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 !