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
0answers
7 views

Add a custom attribute to Cart Price Rule Coupon

I want to add a boolean attribute published to the coupon rule form (different from activate) but the same kind of attribute. From what I see the only attribute linked are product attributes. I've ...
0
votes
0answers
16 views

Magento 2.3.1 Is there a way to apply discount to only 2nd product added to cart?

We want to achieve or to have below discount rule. Please let us know if it is possible or it can be achieved through any plugin. There are 3 SKU's A, B, C. User added SKU A to the cart. The user will ...
0
votes
0answers
9 views

How do I add javascript code to handle callback events after submission of coupon register?

I am using Magento 2.3.5-p2 I am required to trigger a javascript code as below once a user has successfully registered their coupon dataLayer.push({ 'event': 'trackEvent', 'eventDetails.category': '...
0
votes
0answers
18 views

How to Apply condition for specific product in Magento 2 Programatically?

I want to apply a condition on a brand Product if the condition is true the coupon should not be applied. Please Revert Asap! THANK YOU!
0
votes
1answer
29 views

Magento 2: Cart price rule conditions not working

I have created a cart price rule with coupon code. The condition should be that the code should be applied for all categories except a few categories like this: I don't know why but this is not ...
0
votes
0answers
9 views

Coupon code is applied, but not saved in the table, prevented from generating reports

I'm placing an order in magento 1.9 and I'm using coupon, the coupon code used isn't being saved in the coupon_code field of the sales_flat_order table, so I can't issue the report. I performed a test ...
0
votes
0answers
19 views

Registered coupon does not display in report filter

I'm having a hard time generating coupon report used in Magento 1.9 accessing Reports -> Sales -> Coupons, I select a date period, order status I keep "any", empty lines = "no&...
0
votes
2answers
19 views

Magento 2: Remove discount applied(Coupon code applied) on place order event

I want to remove discount applied(Coupon code applied) when order is placed. Any help would be appreciated. My controller code: class Success extends \Magento\Checkout\Controller\Onepage implements ...
0
votes
1answer
55 views

How do I get customer's coupon list?

What should I do if I want to display the user's coupon in the checkout cart? thanks a lot for you help i used ambab-module-couponlist extension,Error shippingAddress is NULL While applying coupons
0
votes
0answers
22 views

Shipping not applying after using a coupon

Since I updated to magento 2.3.6 I have a weird bug. To sumarize, we only use tablerates for our shipping. So every order lesser than 40 € is charged with 5€ of shipping charges. It was fine until I ...
0
votes
0answers
13 views

Coupon code should not apply if action tab condition not fulfill or discount price is zero

Please help me with this There are conditions and Action tab in the coupon code add/edit page and there is a conditional option where we select on which product this code should apply or not like we ...
0
votes
0answers
43 views

Magento 2 -Using Coupon Code One Category Products Price Become Same

I'm trying to make One Coupon code that will apply to a whole Category, and I want it to make all those Products to have the same exact price. So even If two products have different prices in that ...
0
votes
0answers
14 views

Magento 2: Add reward points as cart rule condition

I want to add reward points as a condition in cart price rule where the admin can select the condition from the drop down and enter the amount of reward points. The cart rule should only apply to the ...
0
votes
1answer
28 views

I need to exclude certain products from a general discount

I have a discount that subtracts 50 from the every total amount in the cart that's above 250. I did it in the cart rule using this method: How do I exclude certain products from this cart rule? ...
0
votes
1answer
26 views

one coupon - same price

I need to create a coupon that will make all the products in ONE category have the same price. The prices of the products in that category are all above 200, and I would like to make a coupon that ...
0
votes
0answers
28 views

How to re-validate the coupons in magento2 before place an order

at the time of place order re-validate the coupon-code used in the checkout. If code has already been used, the customer should not be able to place an order. Error message should say "Valid ...
0
votes
0answers
197 views

Magento 2 : Apply Cart Rule to Base Price not Special Price

Good Day, Mates! I am using Magento 2.4.x and try to change its cart price rule mode, I simply want to calculate all discounts (percentage or fixed amount) on Base Price. For example, If a product has ...
0
votes
0answers
15 views

Observer not called on promo code apply button

I want to add a product to cart when a coupon is applied. I have created an observer and inside the execute method written code to fetch promo code. Also I have declared this event -...
0
votes
1answer
27 views

Coupon div on checkout page

Right now i put in checkout page both (shipping and paying), on sidebar, firstly cart items after totals of the cart after shipping address and after shipping method(last two only on paying page). Now ...
0
votes
0answers
58 views

use datetime in expiration date for cart price rule

I am using Magento CE 2.4 and I am using admin API to create a coupon and cart price rule I want the coupon duration to become 10 min and then it is expired so I found that in the cart price rule they ...
0
votes
0answers
42 views

how to prevent customer from using multiple discounts with coupons code

I want to create a discount code that will allow x% discount on the customer's cart but I want to exclude items that already have a discount applied (Special Price) but also want to exclude items that ...
0
votes
1answer
25 views

Removing ShipFree coupon is one product in cart matches specific category

First post so bare with me. We have an issue with the logic on our Shipfree coupon code. What we want is to invalidate the shipfree coupon code if any one product in the cart is assigned to a specific ...
0
votes
0answers
7 views

How to configure a promotion in Magento 2 that combines an Advanced Price (Group Price) with a Coupon

We are trying to configure set pricing for customers in a Customer Group that also requires them to enter a valid coupon code. So far we have only been able to achieve half of this requirement using ...
1
vote
0answers
16 views

How to remove email invoice coupon code description

In invoice, when the client uses a coupon code it shows in total like Discount(description) I just want to remove the description, where this can be edited? Thanks in advance, Best regards
0
votes
1answer
454 views

Magento2- How to validate coupon code to cart before apply

How to validate Coupon Code to Cart before apply in Magento 2? Is it possible?
0
votes
1answer
21 views

Remove only one coupon from multiple from cart in magento 2

I am using magento 2.3.4 and and I have added one coupon code by default. I want to remove this on select of payment gateway but may be customer could add multiple coupon code , but I want to remove ...
0
votes
1answer
227 views

Magento 2 coupon apply and remove event

I want to redirect to /checkout if a coupon is applied and it is valid. I have tried this event controller_action_predispatch_checkout_cart_couponPost this only works on coupon cancel and /cart page. ...
0
votes
1answer
323 views

Magento 2: Get attribute at which coupon condition fails and show it in a message

I need to show custom coupon error messages on frontend based on conditions.Where does the validation of coupon occurs when customer applies a coupon on the checkout page? As far as I know, Magento\...
0
votes
1answer
205 views

Is there any way to get all Applied Discount (for cart rules and coupons) line items in cart/order in Magento 2?

I need to show all cart/order discounts in the following manner: Subtotal ----------- 100.00 CHRISTMAS10 (Christmas Sale 10 % off) ----------- -10.00 CHDLL1242DK (Coupon ...
1
vote
1answer
132 views

How to move apply coupon to Tab in Magento 2 in Checkout?

I want to move apply coupon to Custom created Tab in Magento 2 in Checkout. I want to add " apply coupon " on Summery Page. I have added this code in my checkout_index_index.xml <item ...
0
votes
0answers
42 views

Apply Discount and Cancel Discount is not work on my Custom Tab

I have created a Module in which Created some custom Tab and on that tab i have added discount coupon code. I have added <div class="payment-option _collapsible opc-payment-additional discount-...
0
votes
1answer
128 views

How to add discount coupon code on Custom tab in Magento 2?

I have created Custom Tabs in Magento 2 Between Shipping and Review and Payment. I want to remove Discount Coupon Code from Review and Payment to my Custom Tabs.How will i do it ? I have already ...
0
votes
1answer
81 views

How to apply coupon code on Custom tab in Magento 2?

I have created Custom Tabs in Magento 2 Between Shipping and Review and Payment. I want to remove Discount Coupon Code from Review and Payment to my Custom Tabs.How will i do it ? I think this part is ...
1
vote
0answers
18 views

M2 - Weird coupon date change on save

Magento version: 2.3.4 When I create a new shopping cart price rule (coupon code) and choose a date range like this: Then in the coupon overview list I see this date: So that correct, but when I ...
0
votes
2answers
141 views

Is it possible to create a non-ecommerce site using Magento?

I have a site to develop that needs to be a kind of voucher code site. This means that the site will provide voucher codes for other sites, the user will come to my site and pick voucher codes for ...
0
votes
1answer
322 views

Magento 2 coupon code : DIscount maximum up to x amount

i want to create coupon code in magneto something like below 1:discount 1% of sub-total up to a maximum of Rs. 300 i can not find any such way to do via magento backend
0
votes
1answer
119 views

Magento2.3: Product level validation in cart price rule is not working

I want to apply coupon for a particular product, so I have set the coupon is valid for SKU basis and selected the product which I wanted that the coupon has to apply. Please see the below screenshot. ...
1
vote
1answer
186 views

Enable free shipping only for coupon only

How do I configure the Magento2 can do below promotion? Free shipping with coupon code: (order >= $50)? I did google some result, some ask to enable free shipping method and set min-order-amount ...
0
votes
1answer
260 views

How to import 20.000 coupon codes in Magento 2 without paid

I want to import 20.000 coupon codes on my website, and for this reason, I created the following script: <?php use Magento\Framework\App\Bootstrap; /** * If your external file is in root folder ...
0
votes
1answer
45 views

Create conditions for coupon rule in Magento 2

I'm trying to create conditions in the coupon rules, but when creating the conditions they are not aggregated correctly Im doing: $rule = $this->couponRule; $cond['conditions']['...
0
votes
0answers
215 views

Magento 2: discount coupon not working ONLY on checkout page

In Magento 2.3.3 and I have noticed that the discount code is not working on the Checkout Page. The weird thing is that, It is working on the Cart Page, but on the Checkout Page It doesn't do ...
1
vote
0answers
60 views

Change coupon discount calculation

I'm new in Magento, and if someone can bring me some light is there a way to overwrite the calculation method when discount is applyed? Mage version 1.9.4. The problem is for eaxmple how mage is ...
0
votes
1answer
74 views

Automatically Coupon code stop working on front end Magneto 2

I have used the coupon code before but now automatically Specific Coupon Code stop working on the website It is generated properly but automatically it stops working 1: I have run all Setup upgrade ...
0
votes
1answer
1k views

How to show Applied discount from Shopping Cart on Shipping Step Checkout Page Magento 2?

Please Check Attached screenshot: On Checkout Page under Shipping Step i want to display Shopping Cart page applied discount Coupon Code and Amount. Please check below code: app\code\Vendor\...
0
votes
1answer
237 views

Magento 2: SQL error when redeeming coupon code

Magento 2.2.9 When I try to redeem a coupon code I get an SQL error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'rule_coupons.expiration_date' in 'where clause', query was: SELECT `t`.* ...
0
votes
0answers
93 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
1answer
116 views

How to Get List of Coupons Available for Customer Using REST API

I need to get the List of Coupons Available for Logged in customers using REST API.
0
votes
1answer
1k views

Uncaught Error: Function name must be a string magento 2

Fatal error: Uncaught Error: Function name must be a string in /Applications/MAMP/htdocs/magentoshop/app/code/Magestore/couponoverride/Model/CouponManagement.php:74 Stack trace: #0 [internal ...
2
votes
3answers
185 views

M2 - Change end date of all coupon codes

In the database there is a table called salesrule_coupon which has all the coupon codes in it. I need to change the column expiration_date for all the coupons to the same date 30-08-2024, Is This ...
1
vote
1answer
130 views

Can anyone explain me the code and what is been returned in $discountData : Magento 2

$rulePercent = min(100, $rule->getDiscountAmount()); $discountData = $this->discountFactory->create(); $itemPrice = $this->validator->getItemPrice($item); $baseItemPrice = $...

1
2 3 4 5
7