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
17 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
19 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
20 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
22 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
6 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 ...
0
votes
0answers
11 views

Magento 2 - custom option for coupon code

In the Marketing > Cart price rules rule section I would like to create a custom option for my coupon that allows me to apply the discount in money and not as a percentage. To make myself better ...
0
votes
0answers
9 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
0answers
21 views

Logic for uses per customer in cart price rule

If the uses per customer was limitated with only one time with specific coupon code and a login customer placed an order with this code but canceled, will the customer still be able to use the code? ...
0
votes
0answers
16 views

Magento 2: None of the discount code is working

I'm tried of sorting out the discount code issue in our magento 2 website (Magento 2.4.1) . Below is my rule description. I have tried with auto generation as well as manual code. None of them are ...
0
votes
1answer
67 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
18 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
0answers
67 views

Area code is already set when auto create coupon code

I am having this issue with magento 2.4.1 instance. Scenario is: Create new cart price rule for discount Fill all rules and set Coupon to Auto Save Rule Edit rule and go to Manage Coupon Codes and ...
0
votes
0answers
7 views

Apply coupon checking with Custom Timezone

For the cart price rules, I have added different Timezone configuration for every website like US, CA, AU. Now when applying coupons on the front side I need to check with the assigned Timezone to ...
0
votes
1answer
37 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
0answers
26 views

Magento 2 how to override Apply Coupon form submit override

I want to override the post method of apply coupons in the checkout payment tab. I want to redirect when a coupon is applied not an ajax call. I have tried using coupon code event and using js no ...
0
votes
0answers
23 views

Magento 2: Cart Price Rules without coupon not working

I am trying to create a cart price rules where, when 4 or more products within an attribute set and a certain category are added, the customer should receive a 15% discount. The rule I have created ...
0
votes
0answers
25 views

Set Maximum discount in Magento 1.9

I have to limit the discount amount. that is, if subtotal above $2000 then i have to give 10% discount, but the maximum discount amount is $100, I don't know how to do this. Please help me to do this.
0
votes
0answers
13 views

Magento 2 times used of cart price rules are wrong

I have configured a cart price rule without coupon with uses per customer as 4. The customer gets discount for his 3 orders. But he didn't get the discount for 4th order. But the "times_used"...
0
votes
0answers
9 views

Apply discount on highest ticket item

Is there a way to set up a coupon in M2 that allows you to only apply the discount to the highest ticket item in the cart? Or do I have to buy an extension? I am just a retailer with M2, so cannot ...
0
votes
0answers
14 views

Apply Special Price to SKUs with a Coupon Code?

We're using Magento 2.34. We want to set up a shopping cart coupon where customers get a special price for a set of SKUs with different price levels if they enter the correct coupon code at checkout....
0
votes
0answers
21 views

How to get Final Price from Magento\SalesRule\Api\RuleRepositoryInterface

I am trying to get the final amount after from \Magento\SalesRule\Api\RuleRepositoryInterface <?php class Data extends \Magento\Framework\App\Helper\AbstractHelper { protected $...
0
votes
0answers
26 views

How to make Coupon Code Default open and remove required filed in Magento 2?

The thing i want with this in Magento 2: I want to make coupon code default open when user come on that screen. Remove its required validation . Like : How to do that Any Help is Appreciated.
0
votes
1answer
144 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
32 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
78 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
15 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
0answers
16 views

Magento 2 : Move Custom Block beside to the “Apply Discount Code” section into shopping cart page

In Magento 2, how to move custom block beside to the "Apply Discount Code" section into shopping cart page.
0
votes
1answer
80 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
69 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
16 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
80 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
0answers
21 views

Coupon code applying isn't working - Magento 1.9.4.4

When I click on the apply coupon button it does nothing but reloading the page. Expected behavior : after submitting the coupon, calculation table of the cart page should be updated. Here is the ...
0
votes
1answer
80 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
72 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
102 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
194 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
34 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
117 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
30 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
72 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
710 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
158 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
46 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
55 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
858 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
113 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
96 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 = $...
0
votes
1answer
288 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
1answer
346 views

override coupon management and guestcoupon management core vendor files magento 2

I want to override Couponmanagement.php of Magento\quote\Model\CouponManagement and guestcouponmanagemet.php of Magento\quote\Model\GuestCart\GuestCouponManagement but my plugins are not working....
0
votes
1answer
25 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 ...

1
2 3 4 5
7