Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shopping-cart-price-rules]

Denotes questions about shopping cart price rules.

10
votes
0answers
254 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 ...
1
vote
2answers
54 views

Help with Shopping Cart Rule: Buy $200 worth of product use coupon code and get a product free

I need help making a shopping cart rule. If a customer buys $200+ worth of product and enters a Coupon Code they will get a free Mug. I only have a certain amount of Mugs to give away. I was hoping ...
1
vote
0answers
93 views

Magento Shopping cart sales rule not removed when applicable product removed from cart

I have added two products one is for eligible coupons another one not eligible. Then I applied coupon code, code is applied fine. After some time I removed coupon eligible item, coupon code is not ...
0
votes
1answer
174 views

Add X number of product get Y number of product free

I tried many variants but could not find the correct combination in shopping cart rules. Here is the condition: In category pins I have some products where all have the same price. What I want is ...
2
votes
1answer
371 views

Magento 2 : AdvancedSalesRule override validate method

I need to validate custom quote item details, So I am overriding module AdvancedSalesRule "\Magento\AdvancedSalesRule\Model\Rule\Condition\Product" file. But Not getting quote item Id in model object. ...
0
votes
2answers
478 views

How do I create a cart percentage discount with a coupon code?

I'm trying to create a 25% discount code for the whole cart, not just for one product. Is this possible? I'm pretty new to Magento and the only rules I find is either a percentage for one product or ...
1
vote
2answers
1k views

Magento 2 - Where cart price rules applied in codebase?

I am working on magento 2.2.0. I have created some cart price rules with discount. I have added 5% product price discount in rule action. And 3 to 4 AND conditions for rule. I want to know in magento ...
0
votes
1answer
395 views

How to Remove cart products if a specific product is added in cart

This is my onpage.phtml page to get product id. I need to remove all other products in cart except the mention product id below if this product is on cart. $objectManager = \Magento\Framework\App\...
0
votes
1answer
232 views

Magento Shopping Cart Price Rule For Total Items Quantity 1

i need some Customize into the shopping cart rule for ex: i want to set the 100% discount for 1 Quantity into cart i have created it and working fine. but when i am try to 2nd qty into cart then ...
1
vote
0answers
193 views

Magento 1.9 Coupon code applied but subtotal, grand total and withdiscount totals not updating in quotes/carts

I m facing strange issue as follows: I have created one shopping cart rule - with 10% on every product and to all customer groups. Conditions and Actions applied for all the products. When i add ...
1
vote
1answer
973 views

Programatically apply coupon code in magento 2.2

How can i apply coupon code programatically in magento 2 using cartid.
1
vote
1answer
56 views

How to properly set up cart price rule for multiple SKUs?

I have set up these rules for my cart. And the cart is filled with 11 of the same product, or 5 of one variation and 6 of another. Either way, no discount is applied: Do I have errors in my ...
1
vote
1answer
191 views

how to achieve Buy 2 products in some category and get any 1 product in same category for free

say for eg in same category Buy A and B then C product should be free or 2A then B should be free
1
vote
1answer
114 views

Cart Price Rules: Minimum Purchase of 2 of the same items to get 15% discount

I am trying to set up the following rule in Price Cart Rules: Promotion: 15% off selected products with minimum purchase of 2 items and above. Criteria: No combined purchased allowed, meaning, ...
1
vote
1answer
188 views

Invalid argument supplied for foreach()

I'm trying to use this code I found here Get Shopping cart rule coupon code (with alittle modifications) to get shopping cart rules: <?php $current_sku = $_product->getSku(); $rules = ...
4
votes
1answer
827 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 ...
2
votes
1answer
193 views

Magento 2: Disable all methods when free shipping method is applicable

We're using following table rates for our store and these are working fine. When weight is 0-1(kg) , rate will be 4.5 When weight is 1.1- ~ (kg), rate will be 4.9 We also enabled Free shipping when ...
1
vote
1answer
132 views

Magento 2 Shopping Cart Buy 2 products, get 25% off on cheapest one

Can we make this rule Buy 2 products, get 25% off on cheapest one without third party extension?
0
votes
1answer
421 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
1answer
61 views

How can i apply the Shopping Cart Pricing Rule?

Row total in cart, Below $25 get 25% discount below $50 get 30% discount Below $75 get 35% discount Above $75 get 40% discount
0
votes
2answers
2k 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 ...
2
votes
0answers
24 views

Condition rules in Promotion

I wanted to add BOGO (Buy one Get One Free) promotion on my website. I have Successfully added it but it is applied on same product only. Actually my requirement is like if user purchases 2 products ...
1
vote
1answer
1k 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 ...
1
vote
0answers
29 views

Magento promotions cart rules

I'm looking for a solution to only give the products whom are in stock and have a qty more then 0 to have a discount regardless the total quantity the customer orders. Example: product 1 (qty: 1) ...
6
votes
2answers
1k 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 ...
1
vote
1answer
45 views

How to configure if one of the Shopping Cart Price Rule applied Product A no other shopping cart apply for same Product A?

Once the shopping cart price rule applied, remaining shopping cart price rule not going to apply for same products.
1
vote
1answer
109 views

Cart Price Rule with two Rule in magento 1.9.3.x

I'm finding errors in calculating the rules in the cart when there are products in the shopping cart that apply two or more different rules. For the two rules, conditions have been set for ...
2
votes
0answers
256 views

Magento 2: Percent coupon with discount amount limit

I want to give customers a 10% discount coupon but I want to enforce a discount amount limit, that is that the maximum discount amount is $250. Is there a way to limit this using a coupon?
1
vote
0answers
124 views

How to Implement Multibuy discount in Magento 1.9?

One of the categories I'm selling are Greeting Cards. I want to offer a Buy 4 for £10 promotion, applicable multiple times within a single shop (i.e. if someone buys multiples of 4)... But all I see ...
1
vote
1answer
31 views

how to reward a customer that generates a sale

Let's say the shop sells once in a lifetime items. You won't buy again likely. So I can't setup a discount for a customer A that bought an item already and then recommends that item/shop to another ...
0
votes
1answer
51 views

How to setup multiple layered discount?

I am trying to set up a discount for my store as follows: First item: No discount Second item: 20% Off for the whole cart Third item: 50% Off for the whole cart May I know how to set this up? ...
1
vote
0answers
126 views

How do I add a buy X get Y free product to cart programmatically with shopping cart rule?

I have a shopping cart rule, Buy product with SKU XXXXX and get Product with SKU YYYYY discounted. I want to automatically add Y product to cart when X product is added. What I've tried Creating an ...
1
vote
1answer
360 views

Freeshipping with cart rule (subtotal after discount)

I want to offer free shipping on subtotal but after discount is applied. I have added a new price rule called grand total and using this as the condition in price rules but this does not work for me. ...
0
votes
2answers
442 views

Override cart price rule functionality

I'm trying to override salesRule module adding a new field customer_id for creating rules based on an unique customer. I've already added the new field, but now, how this module applies the rules if ...
3
votes
1answer
47 views

Can i get Idea? How to write PHP code if anyone of the selected Categories of products presents in the cart the shipping method is Admin selected one

If anyone of the selected Categories of products presents in the cart the shipping method is admin selected one. now my shipping methods like user selections, like 1)DHL 2)FEDEX 3)INDIA POST If ...
0
votes
1answer
93 views

Shopping Cart Rules Page Not Loading Correctly in Admin Area

I have recently inherited a Magento 1.9.2.4 site from a previous developer. When we try to add new Shopping cart price rules, we get a blank screen on the add new rule page. The page looks like it is ...
0
votes
1answer
80 views

How can i give discount for customers when cart subtotal reaches a specific amount in magento 2?

In magento 2 how can i give discount for customers when the cart amount reaches a specififc amount?can anyone please help me?
1
vote
0answers
66 views

Stop child product discounts applying on Bundle product

We have about 20 simple products which have a Cart Price Rule for buy 4 and get 10% off. We also have bundle products which use these products but are already discounted. However when the rule ...
0
votes
1answer
33 views

Where priority is checked in rules

I am trying to identify where magento checks for priority while applying rules. Can you point me to the correct place and whether the rules are loaded based on priority? or it happens while rule ...
1
vote
0answers
675 views

Magento 2: Shipping methods are not displayed while checkout process when cart quantity is 1

I have integrated custom theme, when i add product in the cart and go to checkout page the shipping methods are not displayed and sometimes its shows shipping method error sorry, no quotes are ...
0
votes
2answers
2k views

How to add Discount for a Product base on Quantity

I was tried to add Product rules but didn't worked. This is what I tried to do. Ex: I have 4 products named A,B,C,D. I want to give 50% discount for B product if someone buy more than 2 qty of B ...
0
votes
1answer
493 views

Flat rate in Shopping cart price rules by product ID or SKU

I have a category (id 37) for which I have already created a Shopping Cart Price Rule as followed: ( Free Shipping: if category id 37 AND products in cart are 5 or more) Now what I need is, I have ...
10
votes
1answer
462 views

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
0answers
23 views

Customizing shopping cart magento 2

I work in project with marketplace extension, and I like to Customize the shopping cart to add some information like, the name of the vendor and it's logo, but I can't do that. Someone please can ...
1
vote
0answers
216 views

Magento 1.9 Shopping Cart Price Rule apply issue

I'm struggling with an issue regarding the Shopping Cart Price Rules. I've created a rule with a single coupon and the only condition is Subtotal is equal or greater than 65,50. When I'm using this ...
0
votes
1answer
38 views

1.9 - Shopping Cart Price Rule - Buy any x + y + z Reduce total price to $399

Could anyone please help me to setup up below price rule? Apply if any category1 + category2 + category3 + category4 in cart. Reduce total price to $399. Quick reply will be much appreciated.
1
vote
1answer
279 views

How to clone a shopping cart price rule in Magento 2?

I'm having Multiple shopping cart price rules and having a lot of promotions. I want to clone/copy the shopping cart price rule. Is any option available in Magento 2 for that?
0
votes
1answer
45 views

Buy 1 get 10% discounts for selected products

How can give buy 1 get 10% for selected products in selected categories.
0
votes
1answer
38 views

Discount and transaction fee as separate rows on checkout

We have a Magento Community Edition 1.9.2.1 which has a discount rule set up via Shopping Cart Price rules. Next to that, depending on the payment method, transaction and processing fees are also ...
0
votes
1answer
502 views

Magento 2.1.9 : Cart Rules (Please enter a valid date)

I have the this started after upgrading from CE2.1.7 to CE2.1.8, Currently my version in CE 2.1.9 but still getting the same issue. Default Country Spain and locale United Kingdom for now. => ...