Questions tagged [price-rules]

Questions about price rules in general. For shopping cart price rules, and catalog price rules, use the appropriate tags.

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

How to add a Price Rule programmatically in Magento2 backend?

I want to create a price rule, but instead of creating it from within the admin, I want to do it in either Setup/Patch/Data or do another way in backend. How can I accomplish this?
0 votes
0 answers
26 views

Cart Price Rule applies to all products instead of selected

I am trying to set-up an Cart Price Rule for one of my top level categories, wich has subcategories. Conditions applied are: if ALL of these conditions are TRUE: if total quantity equals or grater ...
0 votes
0 answers
42 views

get price in observer after rules?

During checkout we use a 3rd party service to adjust price for certain products. It looks like this: $base_price = $item->getPrice(); //fetching the custom price rules //we calculate $price based ...
0 votes
0 answers
10 views

How do you setup a code to only work if a customer has not placed an order in 'x' amount of days?

We are looking to setup a rule in 'cart price rules' so a code only works if a customer has not place an order in 'x' amount of days. I found a hidden condition under Purchase History > Orders ...
0 votes
0 answers
22 views

Prices sometimes displayed in wrong format when price rule applied

A client complained that discounted product prices were appearing in the front end of a Magento 2.3.6 store in this format: The expected look is like this: Whilst no cache or indexing issues are ...
  • 325
0 votes
0 answers
163 views

Magento 2.3.1 Is there a way to apply discount to only 2nd product added to cart?

We want to achieve or to have below discount rule. Please let us know if it is possible or it can be achieved through any plugin. There are 3 SKU's A, B, C. User added SKU A to the cart. The user will ...
  • 25
0 votes
0 answers
64 views

Magento 2 Catalog Price Rules custom Action > Apply to increase the price of specific products

I am looking for a solution to get a custom Action > Apply in Catalog Price Rules custom to increase the price of specific products instead of just giving a discount As a test, we tried adjusting ...
  • 31
0 votes
2 answers
193 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 ...
  • 308
0 votes
1 answer
33 views

Set pricing on the assigned to the company

While running the Magenta Commerce edition using the B2B module, an administrator has been asked to set pricing on the assigned to the company. Which two actions are taken to accomplish this? Choose 2 ...
0 votes
0 answers
69 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 ...
1 vote
0 answers
65 views

Catalogue Price Rules not working properly for different customer groups

I am trying to apply catalogue price rule for a different customer group, It's working fine for "general" customer group but when I changed it to different customer group then the discount ...
1 vote
0 answers
115 views

How to markup price in Magento2

I want to markup prices but Magento2 provides only a discounted option (I don't know how it is possible!). I'm trying to modify the expression in Magento\CatalogRule\Model\Indexer\ ...
0 votes
1 answer
320 views

Magento 2 Catalog Rule Exclude Category Condition

I need to create a catalog rule that applies a 10% discount on all products of certain brands and seasons that are not in a specific category. I have 3 products: price=100; brand=X; season=Y; ...
0 votes
1 answer
102 views

Magento 2 new fieldset/field in cart price rule show unwanted Currently Active Tab

This is in my custom module xml sales_rule_form.xml: <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
2 votes
2 answers
625 views

How to get rule id with respect to customer group id

class CouponCode extends \Magento\Framework\View\Element\Template { protected $_customerSession; protected $_customerGroupCollection; public function __construct( \Magento\Customer\Model\...
1 vote
0 answers
87 views

Special Price Tax

recently i upgraded my Magento2.2.8 to Magento2.3.3 after upgrade i add product in my cart and go to cart page and see summary on cart Page the tax added 10% which is ok but the issue is if i add ...
  • 379
0 votes
0 answers
90 views

Magento 2.2.4 configurable catalog price rule

I have a configurable product with 4 associated products. Each associated product has a different price (3.20€, 8.80€, 20€, 40€). I have also set a catalog price rule of 20% discount on all products ...
1 vote
0 answers
29 views

Custom shipping rate logic

I have created a custom shipping method. I need to implement the following logic: Shipping rate = Item weight * Item quantity * Zone rate How to get zone rates in collectRates method?
  • 550
0 votes
1 answer
205 views

magento 2 custom cart price rule

I'm using Magento 2.2.5 and tried to implement a new cart price rule. I followed two very helpfull tutorials for that: https://magently.com/blog/magento-2-custom-sales-rule-condition/ https://www....
  • 1
1 vote
0 answers
30 views

Configurable product on sale have an error on variation price

When I change product variation on the dropdown, the full price of that product is not loaded, it continues to show the price of the default configurable product. I do not know why this error happens ...
0 votes
0 answers
207 views

Advanced pricing rule not working for specific user group in magento2.3

Advanced price rule not working with specific user group. I have created new user group "Salon" and created advanced price rule discount for specific product with respect to specific user group "Salon"...
1 vote
1 answer
371 views

Magento 1 :How can I set Any Kind of Discount is not apply for Specified Product?

I have Five Prime Products in Magento 1 site And I want to set Condition for that No any Kind of Discount apply on this particular Product. Problem is Discount Coupon is Apply on this product and ...
1 vote
0 answers
55 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 ...
  • 165
2 votes
1 answer
364 views

Apply catalog price rule on all products of one category

i have different cataloge price rules for different products of different categories. Now i want to add a new minus discount to a category with 60 products (-5%), which i implemented successfully. ...
0 votes
0 answers
146 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
2 answers
300 views

Create Coupon/Price rule for first 10 Customers .(Magento 2)

I want to create a price rule in magento 2, and want that to be active only for the first 10 Customers . Is it possible to achieve that ? Thank You !
3 votes
1 answer
41 views

Magento 2: Can't select "categories" on cart pricerule

I have try to make a price rule in Magento 2. But I can't see the option "categories". Someone know where I can activate it? Or did i do something wrong?
  • 143
3 votes
2 answers
2k views

Magento 2 | Display Catalog prices for specific groups without Tax

I'm currently experiencing a weird problem on my Magento 2.2.6 Store. While giving some customer-groups a 0% Tax Rule the prices on the catalog get still displayed with tax, even tho the "tax info ...
1 vote
2 answers
934 views

How to apply dependent price combination in product custom options dependency with Main price in Magento 2

- Product is eligible for purchase and lease - purchase price is 240 - lease price is 24 per month (240 for 240 months) 1. How to make price dependent with this custom option with main price ex. ...
  • 7,459
1 vote
1 answer
48 views

Skip price rules for API-created orders

Our price rules are used for discounts. Some of our orders come in via the API. Our API orders must not have any discount applied. How can I achieve this? At the moment, price rules are applied to ...
  • 1,117
4 votes
1 answer
271 views

Apply Cart Price Rule (Coupon) on empty cart

Is it possible to apply a Cart Price Rule using a Coupon to a customers cart when the cart is empty? The reason is the following: We’d like to apply a discount code (cart price rule) for customers ...
1 vote
1 answer
27 views

Service pricing on magento [closed]

We are considering using magento to create our ecommerce solution for selling mobile repair services. Here, in a typical scenario, a repair job is created by the customer and damaged mobile is sent to ...
  • 113
3 votes
1 answer
1k views

Magento 2: How to validate the cart rules?

I need to develop a function in the cart rules. Basically it is to check the amount that is added in the cart and apply a fixed price to the product. I have in mind how to apply the logic. But I ...
  • 943
2 votes
1 answer
1k views

Magento 2: Is possible to apply a fixed price in cart price rule?

I need to indicate a fixed price when the product number in the car is X. Example: When the total is equals o greather than 36 and sku is D0B33200 with price 45€ Now I need apply a fixed price in ...
  • 943
3 votes
1 answer
1k views

How can you set the customer group pricing for specific logged in ids as 50 percent discount for all products in magento2?

How can we enable the customer group pricing for a specific set of the customers and even reflect that price while adding items to cart as well from Magento storefront screen?
  • 329
2 votes
2 answers
4k 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?
  • 1,965
13 votes
2 answers
3k views

In Magento 2.2.4 Tier price of a simple product does not appear on a configurable product page

In Magento 2.2.4, Tier price of a simple product does not appear on a configurable product page after editing the cart. Steps to reproduce: 1)Select all option of configurable product which has a ...
  • 1,366
2 votes
1 answer
986 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 ...
2 votes
3 answers
3k views

Magento 2: delete all cart price rules (promotions) programmatically

I want to delete all the price rules programmatically. How can I achieve this one?
  • 1,039
1 vote
0 answers
38 views

Price Rules Magento 2 show discount only if price difference is 5%

I have a magento 2 store but all the prices are populated from a content management system. In this system, I have two prices retail ( manufacturer) that cannot be changed and my price. I want the ...
0 votes
1 answer
1k 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 ...
2 votes
0 answers
30 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 ...
  • 21
0 votes
1 answer
46 views

Productlist with all possible configurations

We are looking for a way to get a list with all possible product configurations per product and its associated price, including delivery. If the same product has a different price or options it has to ...
0 votes
0 answers
417 views

Get catalog rule by customer group id Magento 2

I would like to get the catalog rule using a customer group id. I cant seem to find a method for it. How would I go on about doing this in Magento 2?
  • 190
0 votes
2 answers
5k 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 ...
1 vote
0 answers
494 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
1 answer
42 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.
5 votes
0 answers
1k views

Magento 2: Sales rules in custom ui form is empty on editing

I am working on extension in which i have add sales rules conditions in my ui form. I am storing as serialised condition. it saves perfectly. However, i am getting empty field during edit form. This ...
3 votes
1 answer
127 views

Check if block is called in phtml file

Is it possible to check in default.phtml file (app\design\frontend\MyNAMESpace\MY_THEME\Magento_Catalog\templates\product\price\amount\default.phtml) that catalog.product.related (block ) is loaded or ...
  • 4,657
0 votes
1 answer
225 views

Shopping Cart Price Rule for items from two categories

I was recently requested to create a Price rule which applies a discount of 15% to shopping cart containing items from two different categories. I've configured the Conditions as below: However I'm ...
  • 1