Questions tagged [shopping-cart-price-rules]

Denotes questions about shopping cart price rules.

Filter by
Sorted by
Tagged with
16
votes
4answers
8k views

Apply discount to shipping cost

I want to apply discount on shipping rate. For example if cart subtotal is greater than $125 then there will be a discount of $17 on the shipping cost. I have created shipping cart rule in admin but ...
12
votes
2answers
17k views

difference between cart getItemsCount() and getSummaryCount()

I am displaying the total items present in the cart at header. I am able to display the count of items. But I am bit confused between two methods of cart 1. Mage::helper('checkout/cart')->...
11
votes
1answer
490 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.
10
votes
2answers
194 views

All payment methods are not coming in Cart Price Rule

In Magento 2.3.1 I'm creating Cart Price Rule for Payment Methods. I have to create for Bank Transfer but there is Bank Transfer option not coming. https://www.screencast.com/t/h4rc4PnQU
10
votes
3answers
5k views

Add attribute to Shopping Cart Price Rule coupon

Is there any way to add an attribute to a Shopping Cart Price Rule in Magento? I need to add a field called "featured" for every Shopping Cart Price Rule and after that, be able to filter rules by ...
10
votes
1answer
2k views

403 Forbidden on specific promo form POST contents

I'm getting 403 Forbidden responses when attempting to save changes to an existing shopping cart price rule. It only occurs under the following condition: Adding more than 3 conditions to the rule ...
10
votes
1answer
281 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 ...
9
votes
1answer
2k views

Shopping cart price rule applied at Grand total (or subtotal after discount)

I have a rule: Buy 2,500 get product A free Then customer has coupon discount 200 and grand total now 2300. In this case rule 2500 must not be applied. I've found on shopping cart price rule ...
8
votes
4answers
4k views

“Stop Further Rules Processing” not applying to all items

There appears to be a bug with "Stop Further Rules Processing" in Magento CE1.9 / EE1.13 where only the first item in your cart recieves the discount. I would expect: If I have multiple shopping cart ...
8
votes
2answers
8k views

Buy X Product and Get Y another product free of same category

How to implement and apply Buy X And Get Y another product of same category free in the shopping cart price rules in magento.
8
votes
1answer
2k views

Magento Enterprise 1.14.1.0 - Shopping Cart Price Rules - Promotion - Fatal Error Maximum function nesting level reached

I've been playing around with the Shopping Cart Price Rules for Magento Enterprise 1.14.1.0 and have stumbled across a problem. I was trying to create a simple rule such that you would get a £10 ...
8
votes
5answers
13k views

Buy one get one free

Can someone please tell me why this price rule only works if the quantity 2 of the same SKU? I want the rule to work when any 2 SKU's are added to cart with the sample attribute.
8
votes
1answer
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 ...
7
votes
1answer
1k views

Magento 1.9.1 - Shopping cart price rules - Condition subselection issue

After upgrade from Magento 1.8.1 to 1.9.1 I got not working add to cart button for configurable products, fatal error: Fatal error: Maximum function nesting level of '1000' reached, aborting! in /...
7
votes
1answer
2k 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 ...
6
votes
1answer
16k views

How to check if shopping cart price rule applied to quote

I have a shopping cart rule setup which applies a discount if the product has a specific attribute - there's no coupon code involved. Throughout the site I just need to check whether or not that ...
6
votes
2answers
2k views

Magento 2.2.1 - how to give discount on payment methods?

I go to Magento 2.2.1 Admin > Marketing > Promotions > Cart Price Rules and create a new Rule: Conditions. Option "Payment Method" is not showing up in Conditions Tab. I want to give some ...
6
votes
1answer
553 views

What is the process flow of calculation while we add product to cart in Magento

What is the process flow of price calculation of product while we add a new product to cart in Magento. I have to consider following prices in order to clarify/ Debug the issues. Catalog Price Rule. ...
6
votes
2answers
5k views

How to determine if an item has discount from catalog price rule

Any ideas how to make sure the item in the cart / quote was affected by CATALOG price rule (not shopping cart rule)? There is a similar question without an answer: Do not apply catalog price rules ...
6
votes
2answers
132 views

Is there any way where user can set the custom desired price greater than zero and proceed to cart for any product? [closed]

I am trying something for a social cause website where there are trying to provide a user choice price for a NGO's product which can be any price. this is for promotional activity where user can set ...
6
votes
1answer
9k views

Get Shopping cart rule coupon code

I have made two simple shopping cart rules from backend. The first has action which is based 'SKU is one of'. The second has action based on 'Brand contains'. I have made a custom function to ...
6
votes
0answers
663 views

Magento : Validate Product against shopping cart rule

I have a Shopping cart rule which applies to a particular category with some discount. I have a situation wherein I want to validate product against this rule whether this rule can be applied to that ...
5
votes
5answers
8k views

Grand Total not updated when discount code is applied

There are 2 types of Discounts (Shopping Cart Rules) Working on the Website right now: Coupon Codes - Working Absolutely Fine BUT - Subtotal does not get Updated. Ex: 10% Off on Rs. 500 and Above - ...
5
votes
4answers
597 views

How to get Coupon Code on Success Page in Magento 2

I am trying to get coupon code created in cart price rule from backend on success page. I am doing it as: In Block file public function getCouponCollection() { $om = \Magento\Framework\App\...
5
votes
1answer
6k views

Magento percentage discount amount/value being applied tax rule

I have strange behaviour which has always existed in my magento 1.7.0.2 as far as I am aware. I have a tax rule of 20% for all products so prices are input without tax. When creating a Percentage ...
5
votes
3answers
650 views

Discount disappears after changing payment method

we created coupon code, so that that coupon should not work if customer select "Cash on delivery" payment method. customer will apply coupon in cart page & go to checkout and select Prepaid ...
5
votes
1answer
582 views

Disallow payment methods for specific SKUs

When user add those SKUs [items] to cart then I want to allow only some particular payment methods.
5
votes
2answers
1k views

Modify Shopping Cart Rules Function to apply discounts by Percentage of Original Price Instead of Product Price Discount

I'm working on a project where the entire store products have a special price different (lowered) from the original price. I want to be able to apply shopping cart discounts By Percentage of the ...
5
votes
0answers
160 views

Shopping cart pricing rule condition is not visible on orders total in order page

Shopping Cart Pricing rule logic applied successfully but not visible on orders total in order page, FYI Front end showing the Shopping Cart Pricing rule, How to get Shopping Cart Pricing rule on ...
5
votes
0answers
66 views

Magento 2.2.5: Adding cart-attribute for cart-rules / conditions tab

I use a product attribute called "carton" which describes in how many carton a product is packed. I want to add a cart-rule which counts the amount of all cartons in the cart (accordingly the amount ...
5
votes
2answers
1k views

How to exclude catalog-price-rule reduced items from a shopping card discount rule? [duplicate]

we are desperately looking for a shopping cart sales rule and a extension that allows us to do the following: We want to offer a shopping card coupon code (-15%) which can only be applied to ...
4
votes
3answers
11k views

Buy one product, get one product half price

I'm trying to create a shopping cart price run whereby if you buy one of a product in one category, you get one of a product in another category at 50%. I'm trying to also maintain a 1 to 1 ratio on ...
4
votes
3answers
8k views

How I can determine if the page is checkout/cart?

I have something but this checks if in the cart are products: public function customerLogin(Varien_Event_Observer $observer) { if (Mage::helper('customerredirect')->isEnabled() ...
4
votes
2answers
2k views

Fatal error when adding configurable product in cart and using “products subselection” in shopping cart price rules

I have this products subselection condition in a shoppng cart price rule: If ALL of these conditions are TRUE : If total amount less than 16 for a subselection of items in cart matching ALL of these ...
4
votes
4answers
9k views

Multiple actions on shopping cart price rule

I've viewed some articles on creating shopping cart rules programmatically, but what I can't find is how to combine multiple actions into the one coupon code. What I need to do is apply 15% discount ...
4
votes
2answers
3k views

Shopping Cart Rule Causing Internal Sever Error 500

I am trying to configure a shopping cart price rule where if you add 2 or more bundled products from one category you get the discount off the subtotal of the cart. This is the only cart rule on the ...
4
votes
1answer
3k views

Shopping cart price rules do not apply to configurable products

I have a configurable product that has 12 associated products. One of those associated products needs to be part of a promotion. Let's say the SKU for the configurable is J001 and the SKU for the ...
4
votes
1answer
579 views

Disable tier pricing when applying coupon code

I want to have a web shop where products have tier pricing, such as: order 3 save 10% order 10 save 20% This is easy by setting tier pricing in products. However, I don't want tier pricing to ...
4
votes
3answers
304 views

How to Debug Shopping Cart Pricing Rule Error?

Shopping Cart Price Rule - By using ZIP Code and Subtotal - Free shipping Not Working Shipping Method : Webshop Matrix Rate I am applied Shopping Cart Price Rule using zipcode, May I know where I ...
4
votes
1answer
1k views

Add customer attribute to shopping cart rule condition

How complicated will it be to add a customer attribute in shopping cart rule condition in action section just like it shows product attribute list which are set as yes for using in promotional rule ...
4
votes
1answer
2k views

How to apply free shipping promo code to only one shipping method?

I think it is a default Magento functionality, when we create a promo code for free shipping it is applying on all the shipping methods and rates for all the shipping methods showing zero. Is that ...
4
votes
1answer
2k views

How to apply only valid coupon codes to shopping cart programmatically?

I have a number of coupon codes which i want to apply to the cart programmatically. I have done it like this: foreach ($coupons as $coupon) //$coupons array of coupon codes { Mage::getSingleton('...
4
votes
1answer
3k views

Magento 2: Using Cart Based Rules to apply Free Shipping only to specific products

Hello StackExchange Magento People! We are trying to apply Free Shipping only to specific products - products that have an attribute like "Free Shipping" = 'Yes'. Our configuration is set such that ...
4
votes
1answer
118 views

Cart Price Rules having issues

So I created a rule with these conditions: Everything is working fine except for the State/Province conditions. It seems the rule is not taking the conditions for the state/province section. My rule ...
4
votes
1answer
905 views

Magento 2 Core Bug Found For Multiple discount calculation in All 2.2.x version

This is the core issue in all Magento 2.2.x. When we add two cart price rule with action " Percent of product price discount". It makes little calculation issue in total discount. For example, I have ...
4
votes
1answer
176 views

Magento2 - Get product Ids matching to shopping cart rule

I need to get the product Ids, matching to the cart rule, in my cron job. I looked on some posts in stackoverflow, but in those answers, product is loaded for each rule. I don't want to load each ...
4
votes
1answer
164 views

Adapting Shopping Cart Price Rules Magento CE 1.7

I need to set up a promotion such that if a customer spends at least $X, he can get one item from category Y free (the prices in category Y vary). When I set it up as follows: Actions Apply percent of ...
4
votes
1answer
155 views

How to i add catalog/cart rule discount information to an email

when the user makes an order if they have items which trigger a discount from a catalog or cart rule under the item they get a small note indicating what rule the item has triggered and items that get ...
4
votes
0answers
135 views

Magento 2 Enterprise : Get Coupon code Expiration Date

I am using Magento 2.2.5 Enterprise Edition.I created cart price rule from admin.Now I want to display coupon expiration date in front end but in enterprise edition start/end date is saving by ...