Questions tagged [shopping-cart-price-rules]

Denotes questions about shopping cart price rules.

Filter by
Sorted by
Tagged with
0 votes
2 answers
289 views

Discount the cart price which product price - Magento 2.4.2 CE

I need to discount the line item's total price in the total when the particular product is added to the cart. How to implement can get any suggestion. Eg: Product A added to the cart at the qty of 5 ...
  • 318
0 votes
0 answers
30 views

Magento Cart Rule: discount increases with number of items in the cart from the same category

I want to make a cart rule where if you put: 1 item in cart you get 20% off 2 items in cart you get 30% off the whole cart 3 or more items in the cart you get 40% off the whole cart All items are ...
  • 1
1 vote
1 answer
782 views

Get final total price at checkout

At checkout, I would like to have the checkout total price (display in the right corner in the order summary box) in order to display a message under the 'Order Total' according to his value (and ...
  • 11
0 votes
0 answers
34 views

Rule for Free Shipping in a range of postcode/zip don't working

In cart price rule, the rule bellow doesn't works, I followed the official doc: https://docs.magento.com/user-guide/shipping/shipping-free.html which I was able to get free shipping using another rule ...
1 vote
1 answer
659 views

magento 2.3 get cart item related to applied cart rule

Situation: There are 4 products in the cart One of these products causes a cart rule to apply By getting the cart items via code, I need to be able to identify the one item that is causing the rule ...
  • 187
0 votes
1 answer
110 views

How to trigger discount amount calculation in checkout page?

To offer different discounts based on the selected payment method, I have created two Cart Price Rules (one for each payment method) to apply the "Percent of product price discount" action. ...
0 votes
1 answer
22 views

Can't find the option to exclude SKU

I can't find this screen: I'm trying to exclude an SKU from a cart rule, How do I get to it? I got here: And I can't see where there's an option to choose SKU.
  • 1
0 votes
1 answer
39 views

I need to exclude certain products from a general discount

I have a discount that subtracts 50 from the every total amount in the cart that's above 250. I did it in the cart rule using this method: How do I exclude certain products from this cart rule? ...
  • 1
0 votes
2 answers
63 views

Free shipping for the amount over X USD

If I need to offer free shipping for a total cart amount over USD X, I tried this condition under Marketing --> Cart Price Rules in Magento 2. This rule does not work because it seems that an item ...
  • 609
0 votes
1 answer
206 views

Collect quote totals at init checkout page and cart page?

i'm using magento v2.4.1. I tried to add the product to the cart programmatically using salesrule_validator_process observer, this is to add a product if a cart rule being applied to the cart: $quote =...
  • 98
0 votes
1 answer
485 views

Magento 2 : Apply Cart Rule to Base Price not Special Price

Good Day, Mates! I am using Magento 2.4.x and try to change its cart price rule mode, I simply want to calculate all discounts (percentage or fixed amount) on Base Price. For example, If a product has ...
0 votes
1 answer
110 views

Magento 2 : Issue with cart rule

I have created a custom cart rule "Percent of product original price discount" I am checking If coupon discount is better deal than special price for the customer then to use the coupon ...
  • 447
0 votes
1 answer
88 views

How to exclude certain SKU to be calculated in Minimum Order Amount

I'm currently using the native M2 Minimum Order Amount module. I want to add to my store some products, but I don't want them to be consider during minimum order amount calculation. ...
  • 1
0 votes
1 answer
593 views

Magento 2 REST API - Creating cart price rule is not working

I'm trying to create a cart price rule via REST API but always get error 400 Bad request with message: Specified request cannot be processed. I even try to use minimum request body (only required ...
0 votes
1 answer
302 views

How to apply cart rules directly on Order?

I have added a BIN promotion which is needed to be applied just before payment directly on order. I have found 2 methods that apply discount but require a quote object. \Magento\SalesRule\Model\...
  • 1,522
0 votes
1 answer
184 views

Magento 2 : Cart rule discount applies twice

Here is the cart rule I am not sure why it is applying double discount on products see
  • 447
1 vote
0 answers
95 views

Magento 2 : Bulk update cart rule

Currently in magento 2.4.2, cart rule applies to giftcard products also. I need to prevent discount applied to giftcard product in cart. I have two approach, Bulk update cart rules, i have 1200 cart ...
  • 447
0 votes
0 answers
51 views

Magento2 Programmatically apply cart price rule

I have created a cart price rule in admin, now I want to apply this rule programmatically in my code. How can I achieve this?
  • 3,476
0 votes
2 answers
1k views

Magento 2.4.2. Mini cart count not updating after free product remove on update cart button click

When total price is above $200 cart price rule is applied and free products are added to the cart. when total price is below $200, cart price rule is applied and free products are removed from the ...
  • 320
0 votes
1 answer
94 views

MAGENTO2: Discount Bug - Magento2 (2.3.3)

I have a fixed discount rule configured as follows: Now the way I expected this to work is if you have >= $100 in your basket you can use the voucher COACH100. The actual outcome is the code will ...
0 votes
0 answers
39 views

Set multiple amount for cart rule in single coupon code

I want to set multiple discount amount for cart rule in single coupon code Example : If TEST10% coupon has 10 amount and if i apply this coupon code then after deduction on subtotal i want to deduct ...
0 votes
1 answer
596 views

Bundle Cart Price Rule problem

I'm essentially trying to create a multi-pack listing where the customer can choose their colour options of up to 4 items and assign a discount using a cart price rule. I've set up the cart price rule ...
  • 1
0 votes
1 answer
382 views

Magento 2 - Cart Price Rule to Discount Subtotal While Keeping Tax

I am trying to create a Cart Price Rule which allows for a 100% discount of the order's subtotal, while still including the subtotal's taxes to the customer. Ex: Customer is ordering $100 of goods (...
1 vote
2 answers
1k views

Percentage discounts using cart price rules being calculated incorrectly

I'm running a Magento instance of 2.3.6-p1 using PHP 7.3 and having issues with Magento not calculating the discounts correctly. How I tested Set discounts to be applied before tax in the admin Set ...
  • 2,519
0 votes
1 answer
363 views

Multiple Actions using two shopping cart rules with the same coupon code? still possible in 2.3.2?

I read in these two threads that seem dated on the status of this functionality on Magento. Multiple actions on shopping cart price rule Applying multiple action in Cart Price Rules Is it still ...
0 votes
1 answer
239 views

Magento 2 How to get reward point data in Cart Price Rule

I'm trying to get Cart price rule data. However, I cannot get the reward point which I created in Add reward point input field in Cart price rule form from the database, I have found it in salesrule ...
2 votes
1 answer
2k views

Magento 2.3.2 free shipping cart rule not working

I'm trying to set up a cart rule in which I only offer free shipping I added a new cart rule with these conditions: Then I try to place an order, I choose 'Flat rate' as shipping method, I apply '...
0 votes
1 answer
21 views

Removing attributes from New Cart Price Rule - Actions tab

At New Cart Price Rule -> Action Tab. There is a green plus mark, where I can choose Conditions. The problem is, that I see there all added attributes to Magento but I need only few. Is there a way ...
0 votes
1 answer
291 views

Magento 2 Cart Price rule conditons: If items with attribute subtotal is greater then X

i'm looking for a specific way to solve a cart price rule condition. The resultion action itself is not relevant and already solved in my case. I have different product types, specified by an ...
0 votes
1 answer
456 views

Magento2 how to create cart rule & customer segment rule programatically?

Can any one guide me (or) provide me the steps to create customer segment & cart rule programmatically? If it is Via command line (or) via setup script (or) custom script executing from root ...
1 vote
1 answer
222 views

Magento 2.x I want to check cart price rule is eligible or not without quote, quote item or product

I have a collection of cart price rules. Now I want to validate the rule without a quote, quote item, or any product. If it's valid then I want to do some customize based on it, or not then I want to ...
  • 2,086
0 votes
1 answer
855 views

Discard subsequent rules not working in Cart Price Rules

I am using Magento 2.3.4. is creating rules: Rule 1 : Buy max IDR 900,000 get a 10% discount on your cart Rule 2 : Buy min IDR 900,000 - max IDR 3,000,000 get 20% discount on your cart the condition ...
0 votes
2 answers
46 views

100 off for any three product within category

I want to create the discount within the category. 100 off for any three product within category But my rule apply only when user buy three item from the same product. Not within Category any three ...
  • 1
0 votes
1 answer
28 views

how to apply only 1 coupon code when there are multiples coupon codes

I am running magento 1.9 and i have multiple coupon codes on site. how to make that only 1 coupon code apply on cart? any body know how to apply on 1 coupon on cart?
0 votes
1 answer
35 views

Add rule to shoppingcart

Just like price rules, I want to apply a 'rule' but more as comment/notification that applies to certain products if they are added to the shoppingcart.
0 votes
0 answers
340 views

Apply cart price rule to cart programmatically without a coupon code

This is my code to add some products to cart(quote): foreach ($params as $param) { $product = $this->productRepository->getById($param['product']); $this->cart->addProduct($product, $...
  • 3,726
0 votes
0 answers
74 views

Difference between Magento 2 and Google Analytics Revenue with Cart Price Rules

I want to know if you have any idea why when I set some Cart Price Rules, for example a 30% discount, is not reflected on my Google Analytics revenue. Here is an example: X product, full price: $100 ...
0 votes
1 answer
50 views

Will category discounts double if items are in multiple categories?

If I set up a catalogue discount for 40% off the women's category and 40% off the sale category, will items that live in both the women's and the sale category end up at 80% off? What is the best way ...
  • 1
0 votes
1 answer
30 views

Magento 2 cart price rule Buy X get Y

In cart Price rule I need for example Buy X get y rule Means I need to select for Buy X(specifice cetegory and SKU ) for get Y(specific cetegory and sku) I need to select specific category and SKU for ...
  • 160
0 votes
1 answer
99 views

Applying multiple action in Cart Price Rules

Is it possible to create multiple action for price rules? Like I am setting a 5% Discounts for customers but the discount is capped at $250.00 When the purchased is greater than $5000.00? Is this ...
0 votes
0 answers
170 views

Magento 2 multi line discounts

I want to save the discount amount of each applied cart rule in a column. I have created a column in the quote table and I have saved the applied rule names in the field using the ...
1 vote
0 answers
57 views

How to remove some option from admin condition field in magento 2

How to remove some option from the admin condition field in Magento 2
  • 1,421
0 votes
0 answers
191 views

Magento 2 Cart Price Rules for Grouped Product

I need to create a cart price rule that will apply to a customers basket when they add a grouped product. We sell 'boxes' of items as a grouped product and want to add a free item to the order for ...
  • 183
0 votes
1 answer
216 views

Implement Owebia rules

this is the first time I'm working with owebia rules so as I don't really know where to start. I need to implement somes rules under some circumstances Exemple : If I have in my cart a specific set ...
  • 994
0 votes
1 answer
35 views

How can I store product custom price with tax in an order?

I modified the products price in my custom module. How can I store correctly the product price with tax in the order? I need to store the net amount and tax amount separately for each product in the ...
1 vote
1 answer
1k views

Magento 2: Create a cart price rule with conditions programmatically (for coupons)

I want to generate a coupon, when a new user registrates on the website. For that, I use this module, which works very well: https://github.com/php-cuong/magento2-newsletter-coupon-code In this module ...
2 votes
3 answers
5k views

Message is added to queue, wait to get your coupons soon

I'm trying to create auto generate coupons in magento 2 but its showing as below: Message is added to queue, wait to get your coupons soon Any help will be appreciated?
  • 512
0 votes
1 answer
24 views

How to set a this cart price rule?

If customer purchase more than and equal to 50. They can get specify SKU with qty 10 for free? is it possible? I can define the condition. But for the Action, where I can insert the SKU and qty as ...
  • 592
1 vote
0 answers
147 views

How to create a scheduler for existing cart price rule in Magento 2?

I would like to create a programmatically scheduler for cart price rule/s and content changes in Magento 2 Enterprise. Can anyone guide me?
1 vote
1 answer
51 views

Magento 1.9 - How to apply handling fees if selected products available along with other products in the cart?

If the cart contains any one of the selected products along with other products that should be applied handling fees and cart contains only the selected products no need to apply handling fees. Here ...
  • 145

1
2
3 4 5
19