Questions tagged [coupon-codes]

Denote questions related to coupon codes or promo codes

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

Listing coupons / price rules separately in checkout?

Magento 2.2.3 I have a cart price rule which will give a 4% discount depending on the payment method. I also have a coupon called MYCOUPON giving another 5%. Magento adds those together and shows a ...
2
votes
2answers
32 views

Magento 2 RSS Feed for coupon codes gives parameter error

I am trying to get rss feed for coupon code, Rss Feed for New Products, Special Products and all categories is working fine but not working for coupon code, I tried it on multiple magento ...
3
votes
1answer
31 views

Magento 2 get Store Id of a coupon code programmatically

I am using multiple stores, I wanted to get all the coupon code of a particular store. In Magento 2 database, salesrule_website table have stores related information, but their is no model/collection ...
1
vote
0answers
14 views

Magento2: How to get/display Coupon Code expiration date as front-end side?

I want to get/display coupon code expiration date as front-end side. Please help me with this.
0
votes
0answers
19 views

How to show all applicable promotion on cart and checkout page magento 2

I need to show all applicable coupon code in cart page and checkout page. If there is any extension for this please also suggest. Thanks.
1
vote
0answers
17 views

Magento2 coupon code not working

I have generated multiple coupon codes inside the same rule. However, one coupon code is not working. I tried to add that coupon code and it was working but suddenly it stopped working. I also checked ...
0
votes
0answers
10 views

Magento2 Coupon for Flat Rate Shipping

I see where I can set Free Shipping via Coupon Code. But can I make a shipping method available via coupon code? Or at least set the price of shipping via a coupon code? Can this be done without an ...
0
votes
1answer
37 views

How to remove particular coupon code if other cart rule without specific coupon is applied on product in magento2?

condition 1: I have 2 cart rule which are directly applied on product if specific conditions are true as given in cart rule. condition 2: there is an another cart rule in which i have added one ...
0
votes
1answer
26 views

How to activate giftcard account after creation in magento 2

I can create a giftcard account as: $model = $this->giftCAFactory->create()->setStatus( \Magento\GiftCardAccount\Model\Giftcardaccount::STATUS_DISABLED )->setWebsiteId(...
0
votes
0answers
22 views

How to get Giftcard Code programmatically in Magento 2 EE?

How to create Gift Card Account programmatically, as I need to get coupon code using API. I am looking if it is possible to trigger built in observer programmatically in Model class e.g <event ...
0
votes
2answers
20 views

Magento 2 : Check log in customer email id while applying coupon code on cart

I want to check customer's email id when he is applying coupon code on cart page. If customer email is valid for that coupon then coupon code will be apply otherwise display an error. For this, i ...
0
votes
0answers
22 views

display specific error message on coupon code instead of coupon not valid

how it is 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 Rs1000 or more, and the user tries to use ...
0
votes
0answers
26 views

M2: coupon code for cart price rule applies percentage discount to whole cart instead of specific products

If I apply my Magento 2 cart price rule coupon code which is set up to give a 10% discount on products of a specific attribute set the coupon code will show as having been applied to my whole cart; ...
0
votes
1answer
50 views

when coupon code apply and discount amount 0 then coupon not showing in order summery

I want to coupon code showing when discount amount is 0.00 Note: when discount coupon code is 0 or more then rule working fine
0
votes
0answers
26 views

Magento 2 Same Coupon code with different Actions

I am having 3 types of Category C1,C2 and C3. In every category there are products. 1) C1 has P1,P2 and P3 (Each P cost $38) 2) C2 has P4, P5 and P6 (Each P cost $58) 3) C3 has P7 and P8 (Each P ...
0
votes
0answers
7 views

Generate 50% off coupon on already discounted products.If there is 10%, 20%, 30% or 0% OFF then the coupon should make it 50%

I want to generate coupon that apply 50% OFF on the products but if there is already discount on them like 10% OFF then the coupon should make it 50% OFF.Like wise if there is already 30% OFF the ...
0
votes
0answers
13 views

Summary on cart page removes after apply coupon code magento 2

Add one or more product(s) to cart. Go to the cart page. Change the country to Uk enter state zip code If we refresh the page this will remain the same. But if we apply the promo code the above ...
0
votes
0answers
33 views

Magento 2 Uses per Coupon not working on cart price rules

I have Create new Cart rule to apply 10% discount with Coupon Code OFF10, when we set Uses per Coupon Value to 50 Then Coupon is not apply, it show error message 'The coupon code "OFF10" is not valid'...
1
vote
0answers
16 views

I am facing issue of “Specified rule does not allow auto generated coupons” while saving cart rules

I am customising module where i want to save cart rule without Use Auto Generation. When i save cart rules its showing this error Unable to save program with ID 37. Error: Error occurred when saving ...
0
votes
0answers
25 views

Magento 2 Random customers unable to apply coupon

We are running in to the issue when random customers unable to apply valid auto generated coupon codes, using default Magento 2 MARKETING > Cart Price Rules feature option. They get "Coupon code is ...
0
votes
1answer
36 views

How to check if a sales rules coupon is allowed

I'm trying to know how can I check if a sales rules coupon is allowed for a quote in magento 1.9. Here the scenario : I have a few active rules in my shop and I would like to check if one of them is ...
0
votes
3answers
56 views

Magento 2.X: Locate setCouponcode($string) method

can someone help me Locate setCouponCode($string) method in magento2 ?
0
votes
0answers
9 views

Magento 2 - How to change position of Coupon Validating error message?

Our coupon code text box is at bottom of the page. When we apply wrong coupon code it shows error message on top of page as shown in image. I want to change position of that error message (only ...
0
votes
0answers
38 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
18 views

Magento 2 - Setting up $1 Shipping Promotion Code

We are switching to Magento 2.3 and cannot seem to find a way to set up a promotion we run often - "$1 Shipping for orders over $X." Previously, we would set this code up as a Shopping Cart Price Rule ...
0
votes
1answer
20 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
1answer
27 views

is Magento2 supports the multiple coupons from same rule?

I'm using the 3rd party extension for multiple coupons extension. it working as differnt rules apply but I need same rule different coupons need to apply in the cart. this is work in magento2? my ...
3
votes
2answers
246 views

Apply bindings and subscribe on change of discount amount totals.totals() in Magento 2

in my checkout page when promo code is applied, I am updating a text using some calculation using knockoutjs In my checkout page, on applying and removing promo code, it changes the discount key in ...
2
votes
1answer
98 views

How to Modify Discount amount of cart price rule on cart page in magento 2

I would like to modify Discount Amount of cart price rule on the cart page. Actually Magento apply rule using class Magento\SalesRule\Model\RulesApplier and function is protected function ...
4
votes
1answer
47 views

Magento2: Order success create coupon

I want to generate coupon on order success below is the code i am unsing to generate in Observer public function __construct( \Psr\Log\LoggerInterface $logger, \Magento\SalesRule\...
0
votes
0answers
57 views

magento 2.3.0 shipping method based coupon code not working in cart page

We have a special coupon code, it should work only for "FedEx Ground Shipping method". This shopping cart price rule is worked in checkout page but it is not worked for cart page. In cart page: We ...
2
votes
2answers
44 views

remove coupon code from cart

I want to delete the coupon code programmatically. My code is: $cart = $this->quoteRepository->getActive($cartId); if(isset($response_json['errorMessage']) || $json_response['status']['...
2
votes
1answer
36 views

get Coupon Code in beforePlaceOrder

Hello I want to get the coupon code in a plugin. My code is: private $logger; private $checkoutSession; public function __construct( \Psr\Log\LoggerInterface $logger, \Magento\Checkout\...
0
votes
0answers
12 views

coupon for free shipping gives an Error

Magento 1.9.4 2 shipping methods: 1. flat rate local delivery option 2. table rate (we use that for nationwide shipping) We would like to run a promo for free shipping on the first shipping option (...
0
votes
0answers
12 views

How can I how effect of cart rule on product and category page

I'm using a get method (via the URL) to apply coupons on my site. Is there a way I can reflect the effects of the coupon on the product and category pages as if the product has a special price. ...
0
votes
0answers
21 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 ...
2
votes
1answer
22 views

Two item category coupon code with fixed amount for whole cart

Magento version, 1.9.2.4 How do I generate a coupon where a person puts in there cart one item each from two different categories and then gets a fixed discount off the whole cart. But, if only ...
0
votes
0answers
21 views

Magento 1.9.3.1 - Coupon - set condition calculate cart total on non sale items?

I've a client with a request for a coupon that seems to have hit a restriction in what magento 1.9.3.1 can actually do. We have products that are normal price and 'special price'/sale items. The ...
0
votes
1answer
61 views

Magento 1.9 - how to determine if customer already used discount code

How Magento know if the customer already used coupon code (unregistered customer). Is Magento checking customer's IP or some other specific data?
0
votes
0answers
25 views

How to add an automatically generated coupon code to the welcome email

I want to add an automatically generated coupon code to the welcome email. Each coupon code can only be used once. I don't know much about magento. Can anyone tell me what to do?
1
vote
1answer
322 views

Magento 2 REST API: Get list and details of all active coupons

Is there an API to get the list of all active coupon codes from magento 2? /V1/coupons/search this shows me all the coupons, but it doesn't give any information about if the coupon is active or it'...
1
vote
0answers
61 views

Magento 2 : Coupon codes - auto generate

We already have a rule with 500 coupon codes auto-generated which are due for expiry in a few days. If we generate a new set of auto-generated codes with a new start and finish date on the same rule ...
0
votes
0answers
70 views

how to exclude special prices and multiple purchase discount from coupon code discounts

I want to create a discount code which will allow x% discount on the customers basket but I want to exclude items that are already have a discount applied (Special Price) but also want to exclude ...
0
votes
0answers
8 views

Can't get BOGO to reflect in cart, but applies. HELP

I am trying to create a BOGO coupon in Magento. 2 things. Is there a configuration to turn on the website field in the Cart Price Rules (it's not available to me)? When i create the BOGO, i can ...
0
votes
1answer
56 views

how to display list of valid coupon code on cart page

how to display list of valid coupon code on cart page in magento 2 $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $objectManager->create('Magento\Catalog\Model\...
1
vote
1answer
43 views

Apply coupon code only to non discounted products

I need to make a coupon code which should be applied only to non-discounted products and certain categories. In Cart price rules->Actions I tried the following conditions: If ALL of these ...
1
vote
1answer
398 views

how to get all coupon code which can apply on cart page in magento 2

How to get all coupon code which can apply on cart page in magento 2 $getRules = $objectManager->create('Magento\SalesRule\Model\Rule')->getCollection(); using the above code i get the all ...
1
vote
0answers
63 views

How to get list of available coupon code of Current Product Only

How to get available coupon code of current product
0
votes
1answer
33 views

How to move Apply coupon code button on product page

Is it possible to move apply coupon code button on product page and it will work or not ?
0
votes
1answer
144 views

How to display list of coupon code in product page in magento 2.2.7

How to display list of coupon code in product page.