Questions tagged [sales-rule]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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
20 views

Using Subtotal as condition for sales rule is not working in Magento 2.2.6

I have a sales rule that has these conditions. I have to apply a discount if the cart contains at least one product of one of these categories and if the subtotal is more than 25 euro. The rule works ...
0
votes
1answer
101 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
0answers
33 views

magento 2 how to override catalog_rule_form.xml

I want to add a custom action into catalog sales rule backend page, i add this xml in my custom module here is the xml <?xml version="1.0" encoding="UTF-8"?> <!-- /** * ...
0
votes
1answer
29 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 ...
2
votes
1answer
87 views

How to add sales rule action fieldset in customer group area

I want to add sales rule fieldset to customer group form using custom module. can any one please guide me on this how to add this sales rule condition form under customer group edit form and save this ...
0
votes
0answers
12 views

Apply/change sales rule discount programmatically based on customer group

Is there any way to apply a global discount dynamically based on the customer group. Eg. Customer A belongs to Group1 and defines global sales discount 10% when he logs in and add products to the cart....
0
votes
0answers
20 views

Split coupon code by website

I'm having a issue on magento 2.3 multishipping. I'm with 2 products from different stores on quote, and a coupon code added(who match the conditions only by 1 store) when multishipping starts, ...
0
votes
0answers
25 views

Magento 2 add custom discount before cart rule discount in checkout

Here we add custom discount but here the problem is I want a custom discount to calculate before a cart rule. But here first calculate cart rule then my custom discount.
3
votes
0answers
142 views

Product grid checkbox input at sales rule form Magento 2 not working

I'm using Magento 2.3.4 and want to add product grid with checkbox as an input for sales rule form (shopping cart price rule), i follow the instruction to add product grid input from here but when I ...
0
votes
1answer
56 views

Magento 2 salesrule obsersver save after & before

In Magento 1.9 i have an observer salesrule_rule_save_before and salesrule_rule_save_after for the backend area, are there any equivalent observer like this in Magento 2 ?
1
vote
0answers
40 views

Magento 2 how to add customer chooser in cart price rules condition

I want to add customer chooser in cart price rules conditions like category and product chooser. Can anyone help me with this?
4
votes
0answers
78 views

Data migration Tool sales rule actions and condition serialized

I'm using Magento Data migration tool to migrate Magento 1.9.3 to Magento 2.3.4, everything went fine until I check the log error when I went to checkout page, I found out that in sales_rule table ...
0
votes
0answers
14 views

Magento 2.2.8: Is it possible to optimize the validation process of the cart rules?

I find that with a cart of 400 products and 300 cart rules when adding a product or going to finish the purchase takes minutes. I have been debugging processes but it is a dangerous thing to ...
4
votes
0answers
142 views

Custom Cart Rule Action Condition in Magento 2

I have a custom quote item attribute (v_code) and I want to use this when creating a cart sales rule. Scenario: If a cart item has a v_code, it's included/excluded from the discount. I've managed to ...
0
votes
1answer
167 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 ...
0
votes
1answer
117 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
1answer
287 views

Cron Job ebizmarts_ecommerce has an error: in magento2

I have uploaded ebizmarts_ecommerce module in my live server. Cron Job ebizmarts_ecommerce has an error: : Argument 1 passed to Magento\SalesRule\Model\Converter\ToDataModel::...
0
votes
1answer
52 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
4answers
114 views

How can I override following file?

In the above attach file I want to change Magento\SalesRule\Model\Rule\Condition\Address to Company\SalesRule\Model\Rule\Condition\Address
0
votes
2answers
530 views

How to override validate() of module-sales-rule/Model/Rule/Condition/Address.php?

I want to override validate() function of this file vendor/magento/module-sales-rule/Model/Rule/Condition/Address.php in my custom module file app/code/Companyname/Subtotalwithdiscount/Model/Rule/...