Questions tagged [shopping-cart-price-rules]

Denotes questions about shopping cart price rules.

Filter by
Sorted by
Tagged with
0
votes
1answer
685 views

Magento 2 programmatically create cart rule with condition issue on setOperator

As per my requirement am creating the cart rule programmatically, for that i am reviewed the following code and implemented in my local public function createRule() { $price = 100; $sku = '...
0
votes
1answer
684 views

How to show $x to free shipping in the mini cart?

I want a script that will subtract the real-time subtotal from a set dollar amount declared for free shipping that I can display in the drop-down mini cart on our site. Example Display: "You are $27....
3
votes
1answer
859 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 ...
1
vote
1answer
1k views
2
votes
1answer
1k 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 ...
0
votes
0answers
13 views

How can I select Minimum Sale Quantity as Quantity in cart in cart price rules conditions?

I need to retrieve Minimum Sale Quantity as a selectable value in conditions for cart rules actions. Instead of inserting a numeric value I would like to insert this value dinamically. For example ...
1
vote
0answers
25 views

Separate tax config for promotions

I have an issue with a Magento store where my client would like to create more advanced configurations for checkout promotions. Default magento stacks all promotions in priority and calculates on at ...
0
votes
0answers
10 views

Over rule special price with discount code

Currently, on our website we have both tier pricing and special price conditions applied for a mix of percentages. However, I have a trade customer who receives 10% off across everything. Is there a ...
0
votes
0answers
24 views

M2: coupon code for cart price rule applies percentage discount to whole cart instead of specific products

If I apply my Magento 2 cart price rule coupon code which is set up to give a 10% discount on products of a specific attribute set the coupon code will show as having been applied to my whole cart; ...
0
votes
0answers
28 views

Set discount only for one category for product who has multiple categories - Magento 2

I have some products which have 2 categories: Fabric and Wallpaper. I set cart condition that apply if category is Fabric and quantity is > 2. This works perfect. But I have a problem because some ...
0
votes
0answers
27 views

Buy x get y Free Cart Rules for all Items from Category

Tell me, please. How to set up "Buy X Get Y Free", I can’t get it. let's say I have a Category in which there are 4 Articles (4 different products of wine). I want to configure CART so that if there ...
0
votes
0answers
22 views

Magento 2 Same Coupon code with different Actions

I am having 3 types of Category C1,C2 and C3. In every category there are products. 1) C1 has P1,P2 and P3 (Each P cost $38) 2) C2 has P4, P5 and P6 (Each P cost $58) 3) C3 has P7 and P8 (Each P ...
0
votes
0answers
17 views

magento 2 add one more text field in cart price rule and save the data in salesrule table

How to add one more text field in cart price rule and save the text filed value in sales rule table.
0
votes
1answer
802 views

Pincode based shipment restriction for each product

Help me to set the pin code based shipping for each product. Example: Product A - shipment available in xxx pin code but Product B - shipment not available in xxx pin code. Suppose user add both ...
1
vote
1answer
919 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
1answer
822 views

How to make Cart Rule test against Subtotal *with* Discount?

Consider the following snippet from my populated Magento CE 1.9.0.1 cart: I have two test cart rules in play here: "50 Bucks Texas", Priority 1, discounts the cart by 50.00 if the customer has ...
0
votes
1answer
34 views

Magento 2 cart rule conditions and action to exclude specific product using sku

I have added cart rule and its working properly, I need to exclude specific product from cart rule and others to go with cart rule. EX: sku1 need to exclude from cart rule. 1.Only "sku1" in the ...
3
votes
1answer
816 views

Why was “cart price rule based on payment method” removed from Magento 2.1.8?

When Magento 2.0 came out, the well-known feature from Magento 1 - to add the payment method as a condition for a cart price rule - was not implemented. Magento 2.1 added this feature. Lately we ...
1
vote
2answers
1k 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 ...
1
vote
2answers
2k 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 ...
5
votes
0answers
184 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 ...
0
votes
0answers
35 views

Magento 2 cart rule not working

I have created a cart rule in my magento 2 site. It's working on my local environment. but it's not working in live( production) site. All the target items not able to add to cart after rule ...
0
votes
1answer
1k 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
0answers
32 views

How to apply coupon code only to normal price not special price

I created one shopping cart rule for 10% discount using coupon code tenoff for all products but I want to apply this discount only on products which don't have active special price. Is this possible? ...
0
votes
1answer
877 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
0answers
23 views

Magento 2 Uses per Coupon not working on cart price rules

I have Create new Cart rule to apply 10% discount with Coupon Code OFF10, when we set Uses per Coupon Value to 50 Then Coupon is not apply, it show error message 'The coupon code "OFF10" is not valid'...
1
vote
1answer
85 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
14 views

I am facing issue of “Specified rule does not allow auto generated coupons” while saving cart rules

I am customising module where i want to save cart rule without Use Auto Generation. When i save cart rules its showing this error Unable to save program with ID 37. Error: Error occurred when saving ...
1
vote
1answer
678 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 ...
0
votes
1answer
32 views

Magento 2 : How to override price functionality on cart

Want to override cart price display functionality. Want to apply some additional formula before displaying Price on the cart and mini cart. Can anyone tell me how can I achieve this? Any help would ...
0
votes
0answers
25 views

Magento2 - how to apply cart rule on grouped product?

I have no idea about how to apply the discount for grouped product on the shopping cart page. If anyone have an idea please let me know how to do?
0
votes
1answer
14 views

how to check an array with cart price rule ID magento 2

I am trying to get Cart_Price_Rule. public function test() { $ruleArray = $this->adventCollectionFactory->create()->getData(); $ruleArray = array_column($ruleArray,'promo_rule_id')...
0
votes
0answers
31 views

Magento 2: Shopping Cart Rule discount based on item quantity

I'm a Magento 2 newbie. My customer wants to add a cart rule like, apply 2% discount if item quantity >=12 apply 4% discount if item quantity >=24 apply 6% discount if item quantity >=36 apply 8% ...
0
votes
1answer
33 views

Buy 3 items and get the cheapest one free: Magento 2

I'm searching for at solution for being able to sell a customer 3 different product items and then getting the cheapest one for free. Can I accomplish this through the magento admin or does it ...
0
votes
0answers
77 views

Magento 1.9: shopping cart rule free shipping action not working but other actions do

When I set up a price rule on our website putting "Free Shipping" as the action doesn't do anything but I know the rule is matching with the products because if I give a discount instead the discount ...
1
vote
0answers
19 views

Magento 2: Get discount price after rule applied

Magento 2 get the discount price after rule applied. i.e I have different rules applied on cart. how can I find which rule give how much discount on subtotal. Currently, I can find the discount amount ...
0
votes
1answer
26 views

Magento 1.9 - Free shipping not working with cart price rule

I have set up a cart price rule which provides free shipping if a product is found from the mentioned category but it is not working properly, coupon code is getting applied on the front-end but it is ...
0
votes
1answer
12 views

magento 1 'Stop Further Rules Processing' setting acting strange

I added a cart rule with 10% of product price discount to all products. I selected 'Yes' for Stop Further Rules Processing drop-down, but its not giving 10% discount, instead it gives almost a 1% ...
0
votes
0answers
20 views

Not to understand what is happening in following cart price rule condition: Magento 2

I am having a cart price rule condition, I need not able to understand the condition, can anyone explain to me what will happen as per condition when a product of 'Product_Motorised Golf Buggies' ...
0
votes
1answer
34 views

payment methods cannot be saved in cart price rule after upgrade to Magento 2.3.2

I have a custom plugin that follows this guide: Magento 2 - discount depend on Payment Method does not work So customer will get 4% discount if they choose online payment solution instead of bank ...
2
votes
1answer
48 views

Magento 2: How to add a custom discount and title under discount in cart page

In magento2, how to add a custom discount and title under discount in cart page I have created a custom promotion in magento2. I needed to do some customization in cart which I am trying to do ...
1
vote
2answers
187 views

Magento Shopping Cart Price Rule Disable COD Charges

if a customer purchase with a specific coupon code, i wanted to disable the COD Charges COUPON CODE -> Applied -> Payment method -> COD : NO COD Charges , COUPON CODE -> Not Applied -> Payment ...
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 ...
0
votes
0answers
13 views

Apply condition in cart price rule for 'Price in cart' Incl tax : Magneto 2

I want to apply cart price rule with product price incl tax. I have used price in cart attribute for condition >= 25, but it gets applied on cart price excl tax, I need to apply it on cart price incl ...
2
votes
0answers
135 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'...
0
votes
0answers
66 views

Magento 2: Custom Conditions Rule in Custom Module Validation

I have created a custom module contain two sections: The first section contains title(text Field),icon(Uploader) and custom dropdown ,the second section contains conditions rule. In this module was ...
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
0answers
20 views

Apply coupon to only non discounted or non sale products

I need to apply coupon to only those product in a cart on which catalog price rule is not applicable, when there are more than 1 products in cart. As currently when I apply a coupon code it applies ...
1
vote
1answer
596 views

How to Apply the Coupon Code only to the products that are “Not on Sale” - [Without Special Price]?

My conditions are working fine when i check out with single product which is not having the special price, The same condition is working fine with the products has special price. So the problem is ...
2
votes
1answer
199 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