All Questions
Tagged with cart-rule or shopping-cart-price-rules
935 questions
19
votes
4
answers
2k
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 ...
16
votes
4
answers
10k
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
2
answers
18k
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')->...
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.
11
votes
3
answers
15k
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.
10
votes
2
answers
1k
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
3
answers
7k
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
1
answer
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
...
9
votes
1
answer
3k
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 ...
9
votes
3
answers
2k
views
Magento 2: How to get discount price for each cart rule in quote
I need to get all discounted price from each cart rule which is applied on current quote. I am getting applied rule ids from $quote->getAppliedRuleIds() and I am getting total discounted amount but ...
8
votes
5
answers
5k
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
1
answer
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
5
answers
15k
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
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 ...
7
votes
3
answers
10k
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() ...
7
votes
1
answer
2k
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
0
answers
256
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 ...
7
votes
0
answers
4k
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
2
answers
20k
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
2
answers
3k
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
1
answer
790
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
2
answers
6k
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
1
answer
10k
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
2
answers
162
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
0
answers
1k
views
Error in add or update a cart in magento 2?
Error in adding or updating a cart in Magento 2?
In magento2, when creating a new cart_price_rule in admin after an update or adding a product to the cart its shows an error
In admin, i was create a ...
6
votes
0
answers
838
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
5
answers
11k
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
2
answers
4k
views
In magento 2 how to add custom options in action apply field in cart price rule form in admin
In magento 2 how to add custom options in action apply field in cart price rule form in admin
In admin panel -> marketing ->cart price rule -> add new rule
Image:
Reference Image
5
votes
2
answers
10k
views
Magento Coupons limit per use o per customer not working
In the screenshot you can see my options.
I have created a coupon to have the free first shippings.
What i need is to have one unique code (Example: FREEFIRSTSHIPPING) that can be used only one time,...
5
votes
4
answers
3k
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
1
answer
7k
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
3
answers
1k
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
1
answer
11k
views
Apply discount to only 1 item in the cart via Shopping Cart Price Rules
The situation is simple – I want to offer 25% discount on one product in the cart. So if you order 5 of Product A and 3 of Product B, you should receive 25% off either one of Product A or one of ...
5
votes
1
answer
717
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
2
answers
1k
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 ...
5
votes
2
answers
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
4
answers
3k
views
Is the salesrule_coupon "expiration_date" field used for anything?
When you create a coupon code in Magento 1 or Magento 2 (a "Shopping Cart Price Rule"), you can set date range where the coupon is valid from/to. This information is stored in the salesrule table, ...
5
votes
0
answers
236
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
1
answer
1k
views
Magento 2 Enterprise : Get Coupon code Expiration Date
I am using Magento 2.2.5 Enterprise Edition. I'm 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 ...
5
votes
2
answers
2k
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
3
answers
13k
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
2
answers
5k
views
Can't see SKU as an option on shopping cart price rules
We're new to Magento community and I'm trying to set up a shopping cart price rule offer on a single product however I want to set it against a single SKU. When I click in the dropdown for conditions ...
4
votes
2
answers
3k
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
3
answers
10k
views
Magento 2 - Check if Cart Price rule is active for product
I am exploring the possibilities to show active Cart Price rules on a product page. For example, if I have a blue shirt in the category 'shirts' and I create a Cart Price rule for 20% discount on the ...
4
votes
4
answers
12k
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
1
answer
3k
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
2
answers
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
1
answer
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
1
answer
3k
views
Change product price before add to cart
I have custom price field for specific product where user can input their desire product price, and i try to add the product to the cart programmatically, the problem is i need to change the product ...