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
244 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
0answers
31 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
0
votes
0answers
17 views

How to make one cart rule like 1 Shirt =Rs.1900 , 2 Shirt =Rs.3200 , 3 Shirt =Rs.4400 in magento-2.2?

Original Price of shirt is different like Rs.3199 ,Rs.3799,Rs.2999. I want to make a cart price rule with following conditions: If cart having 1 shirt it will give in Rs.1900 1 Shirt =Rs.1900 , 2 ...
1
vote
1answer
569 views

Magento 2 get catalog rule product details in final_price.phtml

I will try keep simple and short. e.g I have set a rule in catalogrule table and I am interested in 2 fields value: simple_action: by_percent discount_amount: 40.0000 and in catalogrule_product ...
1
vote
1answer
778 views

How do I configure a Cart Rule for Free Shipping in Magento 2?

I'm using Magento 2.1.7. Trying to figure out a simple Cart Rule for Free Shipping using a Specific coupon code: Specific Code No conditions Actions: Apply - Fixed amount discount for whole cart ...
3
votes
1answer
88 views

Cannot select conditions for Cart and Catalog Price Rules

I currently have a problem with Magento 2 (2.2.7) where I cannot select conditions in the Catalog or Cart price rules. This problem also occurred on Magento 1 and seems to have migrated across along ...
1
vote
0answers
16 views

Magento 2.2.4 - Free Shipping Cart Price Rule ONLY for given products

We are trying to include a free shipping method for Specific SKU/Products that have a subtotal over 500 when in the cart by themselves. This is accomplished by using the conditions: If ALL of these ...
1
vote
2answers
1k views

Magento cart price rules conditions not working properly

I have a discount of free shipping which I want to apply when the shipping address is in the U.S. and the subtotal is $100 or over. I am trying to exclude Hawaii and Alaska from receiving the free ...
3
votes
2answers
89 views

Magento: Buy 3 pay for 2 does not work for me

I like to set a "Buy 3 pay for 2" item rule. I have created a "Cart Price Rules" but it does not seem to apply. If I add 3 of the same items or 3 different items it still results in the original ...
1
vote
0answers
23 views

Magento 2: Advanced cart price rule

How can we setup cart price rule if customer purchase more than one time then first item should have actual price(X) but from second to last item, its price should be less (X-5) ? For example customer ...
2
votes
0answers
28 views

Breakdown discount at checkout cart and order summary

I have 2 applied discount, but at checkout cart and order summary it only shows one discount name with the total of the discount How can I breakdown the discount, so it will show each discount name ...
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 ...
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 ...
0
votes
1answer
17 views

Prevent applying shopping cart rule for specific customer

Is it possible to prevent applying shopping cart price rule, for the specific customer, of the using event observer?
0
votes
1answer
205 views

Can't get Buy X get Y Free for a category

I am trying to set up a Buy X Get Y Free promo. The idea is that if you buy 10 items in a specific category and get 1 (the 11th) item free. No matter what I do I am not able to get this done. In ...
0
votes
1answer
30 views

Shipping cart rule not working

I have set $40 as flat shipping and I want that if anyone purchase above or equal $50 then the flat shipping become 0. So I am setting this rule for the purpose: If ALL of these conditions are TRUE :...
0
votes
0answers
6 views

Can't get BOGO to reflect in cart, but applies. HELP

I am trying to create a BOGO coupon in Magento. 2 things. Is there a configuration to turn on the website field in the Cart Price Rules (it's not available to me)? When i create the BOGO, i can ...
1
vote
1answer
348 views

Exclude one SKU from all price rules

I have one SKU I would like to exclude from all my price rules, so none of the price rules can be used on this specific SKU. But I have no idea how to do it. Can you please help?
0
votes
1answer
34 views

Default Condition In Promotions->Shopping Cart Price Rules

Our store is planning to support shipping in multiple countries. Previously the promotional rules did not have any shipping country attribute as part of the conditions as it was not required. Now we ...
0
votes
2answers
260 views

Shopping cart price rule 2 for 1

If I use this kind of price rule in Magento (1.9.2.2) Buy X (1) get Y (1) for free (the step is 1) within a certain category - the rule only applies if customer puts 2 products with the same SKU (...
2
votes
0answers
21 views

Get quote discount total for each applied discount/promo

I want to display each promo name and total applied for current quote in checkout/cart , right now i'm able to display the name of each promo like this: $quote = Mage::getSingleton('checkout/session'...
2
votes
1answer
27 views

Create coupon that sets the shipping rate to a specific amount

I need to create a coupon that sets the shipping rate of an item to a specific amount. For instance, if the customer purchases any item and uses this specific coupon code (cart rule), their shipping ...
3
votes
3answers
2k views

Create coupon code programmatically (in Magento 2.x)

I'm trying to port over tens of thousands of coupons from a custom e-commerce website into Magento 2.0.8 and I'm having a hard time getting it to work. These are simple coupons either fixed $ or % off ...
1
vote
0answers
32 views

Discard Subsequent Rules Not Working As Intended

Scenario is I'm running 2 sales this weekend. Sale 1 is 15% Off Sitewide w/ coupon code Sale 2 is BOGO 50% Off Certain Items (These items are living in a category which is how it is defining them) No ...
0
votes
0answers
22 views

Apply discount only if subtotal of products is greater than a certain amount

I need to create a cart price rule which will be applied only if: Subtotal is greater than 2000. The products forming the subtotal must be non-discounted. The products forming the subtotal must ...
2
votes
3answers
57 views

Magento 2 New user give the discount

In Magento 2.2.6, How to give 5% discount for a newly registered customer ? Thanks in advanced!
0
votes
1answer
233 views

Magento 2: 10% off on first purchase but only for one product

We're using Magento CE v2.2.3 and we're selling a single product (with multiple options) which at the moment only has two prices. I need to set a promotion where a customer can get a discount of 10% ...
0
votes
1answer
373 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\...
1
vote
1answer
38 views

Free shipping code is not working for UPS in magento 2

If you create a cart price rule for free shipping, it works on all shipping methods (Flat rate, table rates, ...) except in the UPS method. I have tried several configurations but nothing. I have ...
1
vote
1answer
35 views

Magento 2 : How to add a shipping charges via Cart price Rules?

In Magento 2 It is possible to add shipping charge if specific category product is available in cart. If not then please suggest me another way. Thanks in advance..!
1
vote
1answer
550 views

Buy X get Y free

Trying to implement the buy 1 get 1 free but making it incremental. If a customer adds 2 products, customer gets 2 of the same product free. If a customer adds 3 products, customer gets 3 of the same ...
1
vote
1answer
33 views

How to show Additional Shipping Fee of per product on checkout page by an attribute

I have added an attribute for use on the product page: Now I would like it show on cart page like this: If the quantity of a product in the cart is increased, I would like the additional shipping ...
1
vote
0answers
21 views

magento 2 apply default discount code

I am working on magento 2.3.0 and checkout is working fine with discount. I have created discount code named 95TEST which discount 95% on order total. Now, Every time when customer redirect to ...
0
votes
1answer
584 views

How to apply shipping charge for particular product

I have used flat_rate shipping method which charges 20 Rs for cart total in magento shop. I have created a shopping cart price rule, according to it if cart total is greater than and equal to 200 Rs ...
0
votes
0answers
10 views

Cart Price Rule, Code is not valid while listed with Action conditions

I've setup a shopping cart rule which is currently the only one. The aim is give 10% off any product from the category with the ID 2 Setting up the price rule just to apply 10% to everything works ...
1
vote
1answer
35 views

Magento Shopping cart price rule with free shipping and discount

I'm trying to set up a shopping cart price rule to create a customer coupon code that accomplishes two goals: IF customer apply coupon code then 1) 20% off all customer and 2) free shipping(...
1
vote
2answers
115 views

How to get cart price rule collection in magento 2?

I want to show cart price rule on product page. How to get collection of cart price rules?
0
votes
1answer
401 views

Magento 2 : How to Display Cart Price Rule on Product Page?

I started in Magento 2 a week ago and don't know much about it, I created a Cart Price Rule named "10% billet discount" that is applied in a few items, with specific attributes. I want to display ...
2
votes
1answer
70 views

Error Enter Valid date at cart price rule and save it db, after adding time in date picker in Magento 2.2.6

<?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> ...
1
vote
1answer
571 views

Add custom fields to Shipping Cart Price Rule and Catalog Price Rule

I want to add one boolean field in each of Promotion Rule. Please can anyone suggest me how to proceed and which Model/Block need to be overridden.
1
vote
1answer
562 views

Magento Coupon codes although deleted already, doesn't allow to create coupon with same code again

I am not sure if it's some kind of core-logic(unknown to me) or a bug maybe, but even though I have already deleted a coupon-code rule from "Shopping Cart Price Rules", when I search in the "...
0
votes
1answer
34 views

Magento 2: Cart price rule performance issue

I have imported 6.3 million coupon in Magento 2.3. I have performance issues on checkout page. When I apply coupon it takes lot of minutes. How to increase performance ? I am running database on ...
0
votes
0answers
9 views

How to get total salesrule that has been used for today by customer using salesrule id

How to get total promo has been used for current date (today) by customer using salesrule id and customer id?
0
votes
1answer
57 views

Buys X get cheapest as Y from same category magento 2

As per the answer from here I have created an event for salesrule_validator_process and the code is below. class CustomCartPriceRules implements ObserverInterface { public function __construct() {...
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
120 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 ...
3
votes
1answer
33 views

How to set promo can be used x times for each day in Magento 2?

Can i set cart price rule for customer that goes with condition like this: Each customer can only use this promo x times for each day
1
vote
0answers
19 views

Multiple cart rules not being applied

I just recently updated to 2.1.16 and noticed that multiple cart rules were not being applied any longer to the quote. It is only applying one now. The cart rules are still associating correctly if i ...
1
vote
0answers
30 views

Add customer attributes to Magento shopping cart rules

I have customer attributes added using a module and I need to add add them to Promotions, especially for Shopping Cart Price Rules. I found this tutorial, but looks like I'm doing something wrong, ...
0
votes
0answers
25 views

Buy X Get Y ,working But applying to whole cart

Below is my condition for cart rule If ALL of these conditions are TRUE : If an item is FOUND in the cart with ALL of these conditions true: Price greater than 10 Price less than 150 ...