Questions tagged [shopping-cart-price-rules]

Denotes questions about shopping cart price rules.

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

Magento 2.4.0 = How to I can apply Cart Price Rule Condition in this coupon Code?

I want to Add Cart price rule condition in my custom auto generated Coupon Code. If email is equal to test@gmail.com. How to i'll do this. Please check my code. This code is working Perfectly i just ...
user avatar
0 votes
0 answers
6 views

Remove Cart Price Rules with type No Coupon

I create a cart price rule with coupon type is No Coupon. I don't wanna change its condition in admin, how can I remove this rule by code? I override function applyRules in module Magento_SalesRule (...
user avatar
0 votes
2 answers
35 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 ...
user avatar
0 votes
1 answer
19 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
user avatar
0 votes
0 answers
19 views

Cart Price Rules by condition

In my code i can apply 50% discount on cart but i want this discount to apply only when product from a specific category is added. \Magento\Quote\Model\Quote $quote, \Magento\Quote\Api\...
user avatar
0 votes
0 answers
23 views

Does Magento 2.4.2 Cart Price Rule's Applicability Check Works Fine?

lately I am trying to tweak Magento 2 Cart Price Rule feature for our business requirements and I realized something. First of all, I need to say that we override Magento\SalesRule\Model\Rule\...
user avatar
0 votes
1 answer
15 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 ...
user avatar
0 votes
0 answers
10 views

How do you setup a code to only work if a customer has not placed an order in 'x' amount of days?

We are looking to setup a rule in 'cart price rules' so a code only works if a customer has not place an order in 'x' amount of days. I found a hidden condition under Purchase History > Orders ...
user avatar
0 votes
0 answers
15 views

Magento 2: Check if a cart price rule conditions have been met

How to programmatically check if a cart price rule condition is met on the cart page?
user avatar
1 vote
1 answer
60 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 ...
user avatar
0 votes
0 answers
22 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 ...
user avatar
0 votes
0 answers
17 views

Magento 2 cart rules discount on 2 products in a specific product list

my site has 100 products, and I choose 5 products A,B,C,D,E I want to set up a cart rule with the following conditions customer buy randomly 2 of 5 products above can get discount ex: buy 1 A, 1 B -&...
user avatar
0 votes
1 answer
30 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 ...
user avatar
0 votes
1 answer
32 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.
user avatar
  • 1,664
0 votes
0 answers
11 views

Magento 2 exclude a product from UPS shipping but not from flatrate

For Magento 2 we have created an attribute to exclude that product from shipping methods and that product that is excluded will have an individual shipping price on it. For example, we have 2 products ...
user avatar
0 votes
0 answers
16 views

configurable product outcomes changed to grouped / bundled items?

i only see that you can replace a configurable product's outcome with a simple product. our store will have about a dozen configurable products that will have 100s of outcomes based on the attributes, ...
user avatar
0 votes
0 answers
41 views

Magento2 cart price rule with configurable product and simple product

I have a configurable product and 5 simple products Configurable product sku is DF-123 and its child products which are 5 different simple products sku is a,b,c,d,e 5 simple products:- a1,b1,c1,d1,e1 ...
user avatar
0 votes
0 answers
54 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 ...
user avatar
  • 772
1 vote
2 answers
117 views

Cart price rule issue for uses per customer

I am using Magento ver. 2.4.3 and I have created the coupon code with following configuraion: uses per coupon - 1 uses per customer - 1 Expected result: The coupon should be valid only once for ...
user avatar
0 votes
0 answers
78 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 ...
user avatar
  • 25
0 votes
1 answer
90 views

Getting Unknown Type error for custom option in Cart Price Rule

I have added custom option for 'Apply' in Cart price rule. But when trying add product to cart I get following error place_x_receive_y_free is unknown type {"exception":"[object] (...
user avatar
0 votes
1 answer
30 views

Cart price rule apply coupon discount for all product not only selected sku magento 2

i have cart price rule ( coupon Code)for 6 products which is working fine but when we add product not under the rule also get the discount
user avatar
  • 1
0 votes
1 answer
30 views

Cart Price Rules always applied - regardles of storeview, status or even expiry date

I have a problem with Magento 2 (2.4.3-p1) where the Cart Price Rules are always applied to products on the checkout. Regardless of the rule is active, conditions are met, the coupon code was entered ...
user avatar
  • 15
1 vote
0 answers
27 views

How to validate Cart Price Rule in Custom Module?

I want to validate cart price rule in custom module.
user avatar
  • 13
0 votes
0 answers
16 views

Complicated products discount scenario

I need to make this scenario in my catalog with magento 2.4.3. I use a catalog price rule which gives a 10% discount to some products of a certain brand. I have this rule created easily with ...
user avatar
  • 912
0 votes
1 answer
31 views

Cart Price Rules - disable general discount after using code

I have a problem, I want to set up discount with a code which offers 50% on a specific product. But I also have a general discount which offers 20% after buying N products. I want to disable the ...
user avatar
  • 3
0 votes
1 answer
110 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 ...
user avatar
0 votes
1 answer
100 views

Exclude Product from cart rules if product have catalog rule discount

I have overridden the below function for business logic(Want to exclude a product from cart rule which has catalog rule applied on the product) and it's working fine on the cart page vendor/magento/...
user avatar
0 votes
0 answers
33 views

Add New Sales Rule Action Logic

I need to add logic to a new action that I have added to the dropdown of a sales rule. Essentially I need to change the Buy X get Y Free rule so that it works differently. So I have added a new action ...
user avatar
  • 11
0 votes
1 answer
27 views

Magento 2 shopping cart based on quanity

i want to cart rule setup for specific category product my all product price is $14.99 so i want to rule like when customer buy 1 product price total : $14.99 when customer buy 2 products total : $...
user avatar
0 votes
1 answer
71 views

Magento 2 Add Condition Rule In A Custom UI Form

Im using Magento 2.3.6. I want to add condition action in my custom module admin form. I use like below code but I have not received condition in var_dump with save action. Please suggest me what i ...
user avatar
0 votes
0 answers
12 views

Can i create multiple cart price promotions on the same products Magento 1

i have a cart price rule running on a group of products that have a price of 79.95 and if you buy 2 of these products , you get them for 119. The problem i am facing is i want to add another promotion ...
user avatar
0 votes
0 answers
109 views

Magento 2 cart price rule discard subsequent rules not working

I added 2 new rules to magento 2.3.4 and these aren't working as they should. These rules are for Guest Users Rule 1: DIS100 $100 off $699 Coupon : No Coupon (auto apply) Priority: 2 Condition: ...
user avatar
  • 530
0 votes
0 answers
56 views

Magento 2 : Create duplicate cart price rule using existing cart price rule id

I want to duplicate the cart price rule in magento 2 by using cart price rule id. is there any way?
user avatar
0 votes
0 answers
12 views

How to set up a double points promotion in magento 2

I am trying to set up a double points promotion in Magento 2 which will run for a week. I am not sure how to do this Thanks Richard
user avatar
0 votes
0 answers
26 views

How to customize cart price rule in Magento 2?

I have configured below pricing rule and need to achieve some requiremensts mentioned in bottom. I have 20%, 30%, 40%, 50% catalog price rule configured I have 40% cart price rule configured ...
user avatar
0 votes
2 answers
128 views

Discount the cart price which product price - Magento 2.4.2 CE

I need to discount the line item's total price in the total when the particular product is added to the cart. How to implement can get any suggestion. Eg: Product A added to the cart at the qty of 5 ...
user avatar
  • 298
0 votes
0 answers
28 views

cart rule with discount despite minimum order value

I want to create a discount code that allows costomer to buy article for 0€ (also shipping for free). Want to use cart rules because there I can easily create a list with 100 codes. Minimum order ...
user avatar
0 votes
0 answers
16 views

Custom cart price rules

I want to create a cart rule which is: buy 2 specific products and another product will be free and add to the cart automatically I tried to create configuration by Magento default cart rule, however, ...
user avatar
0 votes
0 answers
25 views

Magento Cart Rule: discount increases with number of items in the cart from the same category

I want to make a cart rule where if you put: 1 item in cart you get 20% off 2 items in cart you get 30% off the whole cart 3 or more items in the cart you get 40% off the whole cart All items are ...
user avatar
  • 1
0 votes
0 answers
35 views

How to apply free shipping over 500$ in specific category products total

How to apply free shipping for specific category products total grater than 500$. Example : there are three category category1 , category 2 , category 3 if category 1 or category 2 or any products ...
user avatar
1 vote
1 answer
204 views

Get final total price at checkout

At checkout, I would like to have the checkout total price (display in the right corner in the order summary box) in order to display a message under the 'Order Total' according to his value (and ...
user avatar
  • 11
0 votes
0 answers
14 views

Rule for Free Shipping in a range of postcode/zip don't working

In cart price rule, the rule bellow doesn't works, I followed the official doc: https://docs.magento.com/user-guide/shipping/shipping-free.html which I was able to get free shipping using another rule ...
user avatar
0 votes
1 answer
261 views

magento 2.3 get cart item related to applied cart rule

Situation: There are 4 products in the cart One of these products causes a cart rule to apply By getting the cart items via code, I need to be able to identify the one item that is causing the rule ...
user avatar
  • 129
0 votes
1 answer
46 views

How to trigger discount amount calculation in checkout page?

To offer different discounts based on the selected payment method, I have created two Cart Price Rules (one for each payment method) to apply the "Percent of product price discount" action. ...
user avatar
0 votes
0 answers
50 views

Magento 2 programmatically create cart rule with specific category condition

I want to add a new cart rule programmatically with condition to allow only specific category. I found the code here to add rule programmatically and its working fine, but how to add the category ...
user avatar
  • 530
0 votes
0 answers
118 views

Cart Price Rules - Discard Subsequent rules with Exceptions

should sound weird, but is there a way to allow another rule to work though discard subsequent rules is set to Yes. I tried giving Priority 1 to my current rule, and priority 0 to the other rule, they ...
user avatar
  • 13
0 votes
0 answers
21 views

Adding Different Price Components

I would like to ask about adding different price components for both: A Simple Product A Bundled Product For example, I would like to offer the customers the option to buy the product either on Full ...
user avatar
  • 1
0 votes
0 answers
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 ...
user avatar
  • 1
0 votes
0 answers
17 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 ...
user avatar
  • 548

1
2 3 4 5
19