Questions tagged [sales-rule]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 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
18 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.
2
votes
0answers
61 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
20 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
28 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
39 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 ...
0
votes
0answers
10 views

Magento2: How to use product inventory(qty) in salesRules conditions

I want to apply the SalesRules based on product Qty on cart using event Observer. What is the best way to use this. I am using below events:- checkout_cart_product_add_after ...
0
votes
1answer
85 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 ...
3
votes
0answers
55 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
72 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
129 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
0answers
23 views

magento 2 add one more text field in cart price rule and save the data in salesrule table

How to add one more text field in cart price rule and save the text filed value in sales rule table.
0
votes
1answer
47 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
2answers
351 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/...
0
votes
4answers
77 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