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.

0
votes
1answer
23 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
5 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 ...
0
votes
1answer
27 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 ...
2
votes
0answers
17 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
21 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 ...
1
vote
0answers
15 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
18 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
48 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!
1
vote
1answer
22 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
33 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
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
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
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
1answer
33 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(...
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
44 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() {...
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
16 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 ...
0
votes
1answer
29 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
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 ...
1
vote
0answers
29 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, ...
5
votes
0answers
152 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 ...
0
votes
0answers
18 views

Magento 2 programmatically update coupon condition

I have created coupon with condition programmatically, so i like to update in same way, for creating the coupon I've followed the below URL and achieved How to create sales rule programmatically in ...
0
votes
1answer
24 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 = '...
3
votes
1answer
60 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
31 views

How to see the guest-cart in the webpage

I successfully added a product with the api rest using and the access point '/rest/default/V1/guest-carts/:cart-id:/items'. Now, I need to show this guest-cart in the cart page of the client Any idea?...
3
votes
1answer
56 views

Apply cart rule to products without other discount

Scenario: Add a new condition to the cart rules in the section "Apply the rule only to cart items matching the following conditions". The condition should like this: "If Absolute discount amount is/...
1
vote
0answers
16 views

Applying shopping cart price rule to Customer purchasing from a gift registry

I would like to know if it's possible to apply discounts to customers purchasing from an existing gift registry Or is there a plugin/extension i can use that does this? Please help. Thanks
2
votes
0answers
19 views

Create advanced shopping cart rule in Magento 2

I want to create a shopping cart rule in Magento 2. I have 6 products (range product A -> product F) to keep it simple. Those products cannot be ordered without a valid discount code. if cart has one ...
2
votes
0answers
27 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 ...
0
votes
0answers
17 views

free shipping applied for all products instead of products in condition

I need to apply free shipping for only products with attribute condition set to new when the subtotal of those products is 3000. I've done the following: 1- enable cart promotions for attribute ...
3
votes
0answers
10 views

Magento 2 Cart Price Rule -“Category does not contain” not working

i have created cart price rule to give 10 percent off ,but have excluded few category as shown in screenshot , but does not works properly and 10 pc discount is applied for product category excluded ...
2
votes
0answers
62 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 ...
2
votes
1answer
52 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
0answers
15 views

Cannot update the cart page details with some custom discounts and reward point sums

In cart page I'm trying to update the cart total and subtotal values based on my custom discount and reward points. While select the discount and reward points the total has changed and show the ...
1
vote
0answers
11 views

coupon code restrict for only some associated products in magento 1.9.0

I want restrict coupon code some associate products I have one configurable product it have 25 simple products(associate products) i have create coupon code to apply only 5 simple product if i add ...
1
vote
0answers
8 views

How to Apply shopping cart rule for group products if there child products are not in same category in magento 1.9

I want to apply shopping cart price rule on category but that category have group products and there child products are not in same category. when i apply rule on group products then after i add ...
0
votes
0answers
24 views

Magento 2: Promotion percentage off, but only upto a fixed amount

I want to make a rule where I offer my customers a discount of: 50% on their whole cart, but the max discount amount is fixed to 20$. Can I make this in Magento 2, using one or a couple of rules?...
0
votes
0answers
35 views

How to add a new field in cart price rule form and link it with Coupon code and should save in DB

How to add a new field in cart price rule form and link it with Coupon code and able to save this field in DB in magento 2.2 and also want to get in Order Export file, when ever the Coupon Code is ...
0
votes
0answers
33 views

Magento 2.3 - Preserving Success message for show

Here, I have coupon code (Shopping Cart Promotion) apply form on Landing page. After coupon code submitted and validated, Success message is displaying on that page. But when we moved on another ...
0
votes
1answer
39 views

Single product discount cart price rule not working in magento 2.2.4?

I have created cart rule for single product, in my cart rule I have added one condition for single brands. check below screen-shot fore more information. When We set rule only single product then ...
1
vote
1answer
123 views

Get applied sales rule ids for quote in Magento 2

I want to retrieve all salesrule ids applied to the quote, by using my quote id for example: $quote = $this->quote->create()->loadActive($quoteId); $salesruleIds = $quote->...
0
votes
1answer
44 views

magento 1.9 get shopping cart price rule label

I'm trying to display the label of the applied shopping cart price rule. I can display the rule name, but there is no label. $rule = Mage::getModel('salesrule/rule')->load($ruleId); echo $rule->...
0
votes
1answer
15 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
53 views

Shopping Cart Price Rule - cart totals equal to or greater than w/ a equal to or less than subtotal

I'm attempting to create a shopping cart price rule with custom discounts based on cart subtotal. E.g. Less than $10k = 2% Between $10k and $25k = 3% Between $25k and $35k = 4% Greater than $35k = 5% ...
0
votes
0answers
58 views

product is showing free shipping eventhough the coupon is not enter

I have set up a cart price rule: if coupon "freeshipping" is enter, and any of the product A/B/C is in the cart, the shipping will be free, plus 5% discount. The issue i'm having now is that without ...
0
votes
0answers
11 views

How to find apply promo free shipping product on cart page?

I want to find a product under free shipping or not on cart page. Also I want to display free shipping message on cart page.
2
votes
0answers
24 views

Cart price roles - Discount 20% on a cheaper product - Magento 2

I am trying to set in Cart prices roles discount 20% on a cheaper product and I can't find a way.
0
votes
0answers
18 views

Create Attribute for Unit Price to use in Shopping Cart Price Rules

I'm trying to create Cart Item attribute to target the Unit Price of a product to use for Shopping Cart Price Rules. Can someone please guide me in the process of achieving this if at all possible?
1
vote
2answers
43 views

Get salesrule id from order id in Magento 2

How to get salesrule id from order id,for example: public function getSalesruleIdByOrderId($orderId){ //??? }