Questions tagged [shopping-cart-price-rules]

Denotes questions about shopping cart price rules.

Filter by
Sorted by
Tagged with
3 votes
1 answer
2k views

Magento2: Cart price rule not applying

Bit of a strange one here I think. Using Magento 2 all I want to do is give a 10% discount on three products when a certain three products are in the cart. I have gone to "cart price rules -> ...
0 votes
1 answer
1k views

Shopping Cart Price Rule Not Applying

I have a magento store running 1.9.3.6 and I cannot get a shopping cart price rule to work. Essentially, I want 4 items from a particular category with 3 attributes to be discounted to £10 from full ...
0 votes
1 answer
1k views

Magento 2: Create a cart price rule with conditions programmatically (for coupons)

I want to generate a coupon, when a new user registrates on the website. For that, I use this module, which works very well: https://github.com/php-cuong/magento2-newsletter-coupon-code In this module ...
0 votes
2 answers
2k views

Set Category wise Discount in Magento2

I want to set Discount Category wise. MEN=>5% WOMEN=>7% SHOES=>5% ELECTRONICS=>10% If I create coupon for all rule customer can not apply multiple coupons in single order. How is possible? with ...
15 votes
2 answers
1k views

Is there an event or plugin spot for when cart rule is no longer valid?

Is there an event or place I can plugin for when a shopping cart price rule is no longer valid (such as when it expires or if you change the quantity of other products where it no longer applies)? I ...
2 votes
1 answer
1k views

How to Modify Discount amount of cart price rule on cart page in magento 2

I would like to modify Discount Amount of cart price rule on the cart page. Actually Magento apply rule using class Magento\SalesRule\Model\RulesApplier and function is protected function ...
0 votes
0 answers
3 views

Option to not give discount on bundle products when their is a cart rule for simple products

Maybe somebody knows how to solve my issue :-) I have a cart price rule for discount when there are more to 2 items in the cart works all fine, but the problem I have is that it's based on a selection ...
4 votes
0 answers
289 views

Bundle Price depending on items in bundle

This is a complex question about determining bundle prices. I have already hired a developer who cannot figure out how to make this work, and have spent days looking at extensions, so am reaching out ...
3 votes
1 answer
2k views

Magento2: Apply coupon code to regular price not to special price

When applying a coupon, it gives a discount to final price (special price if set). How to make modification that discount would apply only to regular prices (before the previous discount). Note: I ...
2 votes
0 answers
521 views

shopping cart rule for freeshipping not working with subtotal

Could any one please help me to set up a shopping cart rule for freeshipping in magento for all orders over AED - 1,850, USD - 500, GBP - 350, EUR - 450. I tried to set the option Subtotal equals ...
2 votes
1 answer
62 views

Magento 1.5 CE - need help with shipping rules excluding certain categories from free international shipping

I need help with the shipping rules. Basically - free shipping on everything over $100 excluding any item from category 907, 110 for free international shipping. I need to charge the buyer with ...
1 vote
0 answers
10 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,...
0 votes
0 answers
112 views

Shopping cart with multiple shipping conditions, one is free

I am having a problem with free shipping conditions when my cart have more than one product and there is an other shipping condition (not free) for at last an other product. Until there is only one ...
0 votes
2 answers
707 views

Disable Free Shipping After Discount?

This is driving me crazy. How do I disable free shipping after someone enters a promotional/discount code? I want this to be an either/or scenario. They can't get the discount and free shipping! Ok.....
0 votes
1 answer
609 views

Shopping Cart Rules based on if a row total ends in specific amount

I would like to implement a shopping cart rule in magento that allows me to check If a product has a price that ends in a specific number. For example, if a row total is something of the form XX.50, ...
0 votes
1 answer
31 views

No shipping costs for some categories

I want to stop my webshop from calculating shipping costs for entire categorie outlet: https://sportinngerritsen.nl/outlet. I made a shopping cart price rule for this (see the pictures below), but it'...
2 votes
0 answers
91 views

Magento Default Free Shipping not working with cart rule

I have Enabled free shipping from the admin. Create shopping cart rule for apply freeshipping only if these condition are true. But it display for all. I just want to free shipping only when cart ...
2 votes
1 answer
4k views

shopping cart rule based on custom attribute

I would like to create a rule based on 2 attributes : first attribute : enable free shipping, yes/no value second attribute : date end of free shipping promotion, date value then I will create a ...
1 vote
2 answers
2k views

How to get discount value round up in magento

I need to show round value of discount coupon, like if i have apply 10% discount on cart and after apply if 99.90 value is deducted from subtotal then if need to show 99.90 value round off and then ...
3 votes
2 answers
388 views

I have implemented free shipping with minimum order order $40.00 [duplicate]

I have implemented free shipping method with minimum order $40.00 and also flat shipping. When free shipping condition is true, then I don't want to show other shipping methods, how to do this? I ...
4 votes
1 answer
1k views

OnePage Checkout Page Error - Free Shipping error : “Please specify a shipping method”

My condition, free shipping for selected zip-code/postal code, range is, from 600003 to 600151 I am using Shopping Cart Price Rule, my workout Note : Shopping Cart Price Rule condition Matching ...
7 votes
1 answer
3k views

Shopping Cart Price Rule free shipping only for quantity subset of the same product?

I would also like to apply free shipping to only 6 products that match SKUS A-D. For example, if I have 8 of product A, free shipping should apply to only 6 of those products. Right now, my shopping ...
2 votes
3 answers
6k views

Free shipping with the shopping cart rule, on X subtotal AFTER discount

We offer Free Shipping over X (NOK 1000)amount, but the shopping cart rule doesn't allow me to set the amount to be the subtotal amount AFTER given discounts. If customer shops with for instance a ...
1 vote
1 answer
3k views

Set Individual Product's Minimum Qty Allowed in Shopping Cart for a particular customer group

I'm looking to setup a particular product with a minimum order quantity but only for a single customer group ("Wholesale"). Is there a way to do this using the core Magento 2 functionality? Barring ...
2 votes
1 answer
1k views

Magento2 : Custom Sales Rule condition and validation

I am using this article to create a custom condition in the cart rule where I want to add the stock qty including other product attributes in the rule condition. For example if product_attribute1 = ...
0 votes
0 answers
18 views

What would be a better solution to amend the discount calculation?

So there is this class vendor/magento/module-sales-rule/Model/Rule/Action/Discount/BuyXGetY.php It has this method: public function calculate($rule, $item, $qty): Data { $discountData = $this->...
0 votes
0 answers
20 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 ...
0 votes
0 answers
24 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 ...
0 votes
0 answers
8 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 (...
0 votes
1 answer
2k views

Magento Enterprise Catalog Price Rules (rule based on custom attribute)

We would like to give a discount on a product in the cart, IF the customer has exceeded a specific quantity of that product in the cart. The complex part is, the specific quantity is custom per ...
1 vote
2 answers
45 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 ...
0 votes
1 answer
1k views

How to show Promotion description on associated product page

I have created a promotional shopping cart price rule for category id 87 as shown in below image- Now I want to show its description on all those product's view page on frontend which satisfy this ...
0 votes
1 answer
2k views

Apply discount if 2 of the different item from a category are added

I'm looking to build the following Shopping Cart Rule and I have no idea how to do it. I have multiple sku available, if you add 2 different sku in your cart from the same category, you get 10% off. ...
1 vote
2 answers
1k views

Free Shipping for just one type of product

This might be an easy question, but it has me stumped. I have a rule set up that automatically gives the customer free shipping if they're ordering a certain type of product. Fixed Amount Discount ...
1 vote
2 answers
186 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 ...
0 votes
1 answer
25 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
12 votes
2 answers
2k views

Magento2 : Create Custom Condition Field like Catalog Price Rule with my Own values

In Magento 2 Custom form i would like to add condition field like Catalog Price Rule with my custom values. Please find below screen shot. Screen shot: please suggest me how to get.
0 votes
0 answers
24 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\...
1 vote
2 answers
2k views

Magento 2.2 Programatically apply coupon code

How can i apply coupon code programatically in magento 2 using cart id. Thanks.
8 votes
1 answer
1k views

Shopping Cart total percentage discount when specific item is in cart

I have a specific type of shopping cart rule I'd like to create. You can think of it as a 'variety discount'; the more products from different categories the customer has in their basket, the greater ...
1 vote
1 answer
3k views

Magento2 : Something went wrong while saving the rule data. Please review the error log

I have Magento2 version 2.1.8, when I tried to create new cart price rules after entering all info it doesn't get saved and shows error. "Something went wrong while saving the rule data. Please ...
0 votes
0 answers
26 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\...
0 votes
2 answers
1k views

Product is available to buy in increments of x

In Magento 1.x, a pop up used to appear when the shopping cart did not contain the correct quantity increment according to the inventory setting in the backend. In M2, I do not see that message. ...
1 vote
1 answer
107 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 ...
0 votes
1 answer
17 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 ...
2 votes
1 answer
1k views

apply custom discount in cart magento2 via observer

I have created a custom promotion in magento2. To get that working I needed to do some customization in cart which I am trying to do with salesrule_validator_process event. I needed the rulename and ...
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 ...
0 votes
0 answers
20 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?
0 votes
0 answers
47 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 ...
0 votes
0 answers
18 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 -&...

1
2 3 4 5
19