Skip to main content

Questions tagged [shopping-cart-price-rules]

Denotes questions about shopping cart price rules.

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

Magento 2 coupon code shows 1 Times used in admin but it is not showing in any orders

We are currently using Magento version 2.4.5-p1. We've encountered an issue with the Magento cart price rule with coupon codes. The problem is as follows: 1 - In the Magento admin panel -> Cart ...
sumeet bajaj's user avatar
  • 1,316
0 votes
1 answer
18 views

how to override sales rule module and a option field to the view file

how to override the sales rule module and an option field to the view file and check the option is enabled or not vendor/magento/module-sales-rule/view/adminhtml/ui_component/sales_rule_form.xml
Midhun M's user avatar
1 vote
1 answer
20 views

Create Rule in Magento 2.4 If a combined $X amount of items in Y category, then get free ship

I have been searching for days but cannot find a way to do this. If you know of an extension to pull this off, I'm open to it. We want to offer a coupon code. If you have $100 or more of products in X ...
David S.'s user avatar
0 votes
0 answers
14 views

Magento 2 : Cart price rules with bundle product issues

I'm having an issue with a discount cart price rule for bundle products. To understand the issue you might want to know we mostly sell USED hardware. The NEW products are not sold much and not much on ...
Ivar Kramer's user avatar
0 votes
1 answer
28 views

How to get from_date and to_date of cart_rule and catelog_rule in magento 2?

I'm writing a before plugin and i need to get from_date and to_date of cart_rule and catelog_rule in my plugin code namespace Vendor\CouponBeforePlugin\Plugin; use Magento\Quote\Model\Quote\Item\...
Midhun M's user avatar
0 votes
0 answers
34 views

Magento 2 : Display All Cart Price Discount in Minicart

How to display all cart price rules discounts in minicart for M2.4.6 for those which can be calculated... For example if the buyer buys more than 100 USD or similar. I am aware, that discount based on ...
Petka's user avatar
  • 1
1 vote
1 answer
124 views

Two Cart Price Rules are applying incorrect discounts

I am experiencing an issue where two Cart Price Rules are returning incorrect discounts. Rule 1 apply 20% discount Rule 2 apply 30% discount The total 50% discount should be applied. For example, if ...
Milan Chandro's user avatar
0 votes
0 answers
40 views

Magento2 How to get Use auto generated coupon by website wise.?

// For all websites $websites = $this->_storeManager->getWebsites(); foreach ($websites as $website) { $websiteUrl = $website->getDefaultStore()->getBaseUrl(); $url = $websiteUrl . ...
Magecomp Product Team's user avatar
0 votes
0 answers
43 views

Magento2 how to get two tables data in my custom grid.?

I want to get data as name from salesrule table code from salesrule_coupontable. Here I attached the salesrule and salesrule_coupon table in which I want to get code column data. In the salesrule ...
Ekta's user avatar
  • 101
0 votes
1 answer
78 views

Magento 2 Cart Price Rule is not working

This is the first time I created a sales rule on the site, but it doesn't work. I want the shipping cost for a product to be free. I have done the following: Create the price rule in Marketing -> ...
Diego Castro's user avatar
1 vote
1 answer
55 views

Cart Price Rule

I am working in Magento 2.4.5 I am trying to set a Cart Price Rule where I say "Buy specific X SKU and Y SKU get 10% discount on" Is there any possibility to set this up without any ...
Anas's user avatar
  • 11
0 votes
0 answers
95 views

Magento 2 coupon code is not used but it is show used on admin

Magento version 2.4.5-p1. In the Magento cart price rule, the coupon code is shown as marked on admin but it is not used from the frontend, and also coupon code is not visible when we checked from ...
sumeet bajaj's user avatar
  • 1,316
0 votes
1 answer
210 views

cart price rule exact expiration date

Is there a way to get the exact cart price rule expiration date (the hour and minutes), I see that magento only stores the years, month, and day for to_date field.
Bob's user avatar
  • 11
0 votes
0 answers
60 views

Scheduled change for cart price rule activation

When a scheduled change is set for a cart price rule activation, it doesn't work on the storefront within the set time frame, namely, when I put the coupon code, it shows a message that a coupon code ...
Bob's user avatar
  • 11
2 votes
1 answer
80 views

Add price with carton and price without carton

I have products such as gaming tables and chairs. I want to add two prices to them: a price with carton and a price without carton. How can I do that?
mdm95's user avatar
  • 25
0 votes
1 answer
87 views

I have a question regarding shopping cart rule validation

I have multiple active shopping cart rules on my website, including some older rules. The problem is that Magento validates these rules every time there is an update to the shopping cart or when a ...
Magenteiro's user avatar
0 votes
2 answers
366 views

How Can I Remove Decimal From Price in Magento 2.4.6?

how can I remove the decimal section after the price in Magento 2.4.6 on the admin and frontend ?
Peren's user avatar
  • 27
1 vote
0 answers
405 views

TypeError: get_parent_class(): Argument #1 must be an object or a valid class name, string given in magento/framework/Code/Reader/ClassReader.php

I get this error when I tap "schedule new update" button in a cart price rule page you can see in the image below, I echo $className variable, which causes the error, it displays "...
Bob's user avatar
  • 11
0 votes
1 answer
35 views

Shopping Cart Rule : add a 10% dicsount if a SKU is added at least 3 times to the shopping cart

I need to create a condition which applies a 10% discount on a particular sku, when it has a quantity equal or greater than 3. How can I achieve this in the Magento admin cart rules section ?
Alok Tiwari's user avatar
0 votes
1 answer
22 views

How i control many cart rule scenario

I am apply multiple cart rule in same time checkout page Please give me suggestion. The following scenario give below. Scenario # 1 - which is active on staging, but not working. * Buy 3 of SKU: ...
Alok Tiwari's user avatar
0 votes
1 answer
60 views

How to create catalog price rule while initializing module?

I'm trying to create catalog rule by installing the module, but it's not working. This is my CreateRule\Setup\InstallData.php file <?php namespace Perspective\CreateRule\Setup; use Exception; use ...
MaxLogic's user avatar
0 votes
0 answers
41 views

How to apply cart price rules for new customers in a customer group immediately after they are added?

When a customer is added to customer group, the customer group's cart price rules for new customer are only applied after the customer has completed their first order. How can I override this ...
Stuba Kulga's user avatar
2 votes
1 answer
2k views

Magento 2: Custom cart price rule condition

I want to create a cart price rule condition that checks for a cart item's buyRequest object to act upon it accordingly. A rule should only be applied when that buyRequest contains a certain value. I ...
omsta's user avatar
  • 698
0 votes
1 answer
434 views

How can I validate the custom rule condition on custom module in Magento 2

Here I Create custom rule condition for custom module in magento 2 now i need to check that all rule at order place time I create event "sales_order_place_after" in that the rule condition ...
Jay Parmar's user avatar
1 vote
1 answer
136 views

Magento 2 Can't get the sales rules conditions in my ui form at edit time Magento 2?

I create custom module for add rule condition in custom module but not get condition data on edit time here i share my files vendor_module_form.xml <fieldset name="conditions_fieldset"&...
Jay Parmar's user avatar
1 vote
1 answer
607 views

Magento 2: Add discount based on individual qty and item to cart

I need to set cart discount based on individual qty and individual item for cart. For example if cart have 2 item then lowest price item to give higher percentage discount, like need to add 10% and 20%...
Kirti Nariya's user avatar
  • 3,071
0 votes
1 answer
22 views

Shopping Cart Price Rule for selected items in one category

I was requested to create a Cart Price Rule which applies a discount of $10 to a shopping cart containing some items from one category. In this sub-category, I have 80 different items but only 15 of ...
Aude's user avatar
  • 1
2 votes
1 answer
914 views

Magento 2: Cart price rule Actions dynamically add text field using UI Components

I have need to add dynamic text field in cart price rule edit section. when click on Add button text field should be added. And save data in salesrule table. When select from Apply Percent Discount: ...
Kirti Nariya's user avatar
  • 3,071
2 votes
1 answer
508 views

Magento cart price rule not applied free shipping to whole cart in magento2.4.5-p1

How to reproduce this issue: Make a cart price rule: With no coupon code and Free shipping option select to "For shipment with matching items" On frontend Shipping price should be zero
tausif meman's user avatar
0 votes
2 answers
597 views

How Magento validate products in cart for carts price rule and how to extract product from conditions_serialized column of the sale rules table?

I need to create an indexer for cart price rules. I decided to iterate the values from sales_rules table and extract the products from conditions_serialized coloumn. My indexer file is like below.i ...
Mujahidh's user avatar
  • 2,813
0 votes
0 answers
122 views

Add discount on each product based on product price

I have 100 products in my store and each product has different price. I want to add discount on each product based on specific price. For example, If a product is added into the cart and it has 100usd ...
Asad Ali's user avatar
1 vote
1 answer
228 views

how can discount apply on another product Y based on X Product Step Qty

I need to apply discount on another different product Y based on X Product Step Qty. So that why I was created custom simple action in sales rule. I created custom action class for calculation ...
Harsh Patel's user avatar
0 votes
1 answer
255 views

How to add custom fee to cart summary on click

I want to add a custom fee to the cart summary when the checkbox is check and remove when unchecked and also adjusting the order total with each checkbox change. How can I achieve this?
devskull's user avatar
0 votes
1 answer
257 views

Magento 2 How to validate newly added field in cart price rule

I have added a new field in the Cart Price Rule form as below. I have saved the value in the table as a new column <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi=&...
Jancy Abraham's user avatar
0 votes
1 answer
622 views

Magento 2 How to Get List Products from Cart Price Rule Condition

I want to get the cart price rule applicable products list in my block. How can I get it? For catalog rule, at vendor/magento/module-catalog-rule/Model/Rule We have the method getMatchingProductIds() ...
Jancy Abraham's user avatar
0 votes
2 answers
792 views

How to apply cart rule (free shipping) on custom shipping method

I have created custom shipping method and working fine. I want to know what i have to do for my custom shipping method to set price zero when cart price rule become true for free shipping. For example:...
Mital Shah's user avatar
2 votes
1 answer
766 views

How to validate a custom field in sales rule before the discount applying to cart in magento 2.4

I created three custom fields in salesrule Database Table. apply_on_weekday applicable_time_from applicable_time_to Now I wants to validate that custom fields before the applying the cart price rule ...
Harsh Patel's user avatar
1 vote
0 answers
203 views

Magento 2 discount value is removed for logged in user using cart rules

I have a problem with discount not subtracted from grand total in checkout. The discount is coming from a cart rule and is displayed correctly on the checkout page but the grand total is without the ...
AlaaL's user avatar
  • 21
1 vote
1 answer
460 views

Magento 2 Shipping carrier Shipping Cost Vs Shipping Price

What is the purpose of the shipping cost, I can observe the shipping Price is always visible on the frontend calculation. I've tried to edit the below file to verify the shipping cost. But it is not ...
Knight017's user avatar
  • 632
0 votes
1 answer
505 views

Cart price rule when buying two items of a specific product

I try to develop a cart price rule for the following scenario: I offer a configurable product in three sizes, i.e. SKU Product_A for the parent and SKU Product_A_Medium, Product_A_Large and ...
chappachoo's user avatar
1 vote
0 answers
736 views

Task not starting

I am using magento 2.4.3-p2 and created a cart price rule to give free delivery over £50. Since enabling this rule i get notifications at the top of the admin panel saying "Task "Rule ...
Alex Smith's user avatar
1 vote
0 answers
19 views

How to write apply cart rule function

I have some rules applied to my shopping cart. Assuming the rules have id: 1,2,3,4 and the order in which the rules are applied is 3,2,4,1. I want to get cart information detail after applied rule 3,2,...
Truong Nguyen's user avatar
0 votes
0 answers
27 views

Exclusionary Cart Price Rule - Magento 2

I am trying to set up a exclusionary shopping cart price rule in Magento 2 using a coupon code. e.g. Apply a 10% discount to all products on the store with X coupon code, but NOT to the following ...
Derrick H's user avatar
1 vote
2 answers
72 views

exclude some other product in the cart from receiving discount

How to get product value ( product price) if attribute "logitech" is set to yes [attribute is Boolean]. I'm new here, still learning magneto. below code, calculate all items in the cart but ...
Bayzel's user avatar
  • 187
0 votes
1 answer
353 views

Why Magento not supporting cart price rule per store

Why Magento does not support storeview level sales rules? Is there any way we can create shopping cart price rules based on store-views? Discount should apply only for particular store views
Krishnan Daiva's user avatar
0 votes
1 answer
29 views

Include SKU in cart price rule that is being excluded by another condition

I am trying to create the following cart price rule: Exclude all products with certain tax-class Include certain SKUs that have that tax-class I know, sounds weird. But product management wants it ...
Matthias's user avatar
1 vote
1 answer
843 views

Magento Cart Price Rule - How to Sum Specific Category For Discount

I want to create a discount code in Magento 2. The offer is £25 off every £250 spent on Garden Furniture. So, the rules must only apply on products from the garden category in the cart. For example, a ...
J Quatropi's user avatar
1 vote
0 answers
161 views

Magento 2: Remove product from cart when a cart according to cart price rule

I have created an extension which does this: A free product is added to cart when a cart price rule is applied. I want to remove the product when the condition becomes false. Any help would be ...
mechanic's user avatar
  • 440
0 votes
1 answer
357 views

Cart price rule to exclude multiple SKU's

I'm not a dev and have very limited experience in M2 but I'm in need of some help, if possible? I need to create a 'cart price rule' to exclude multiple SKU's but have no idea how to do this. So far I ...
matthewbarnett's user avatar
0 votes
1 answer
227 views

Cart Price Rule Condition is not working

I am trying to show Free Shipping only for this SKU but its not working below is my condition but the free shipping is visible on All products including above mention sku.
Pramod's user avatar
  • 1,464

1
2 3 4 5
18