Skip to main content
10 votes

How to get the correct Final Price for Product on Listing?

I wanted to get the final_price for the product in /product/view/hero.phtml. So that I could display the stickers based on the discount. Below is what worked for me after spending some time in Magento ...
Diwaker's user avatar
  • 453
9 votes
Accepted

Magento 2. Add attribute to Catalog Price Rule

It is pretty easy to do this in Magento 2.1. You need to add a row to the catalogrule table using the module (in your own module): app/code/Vendor/Rules/Setup/InstallSchema.php namespace Vendor\...
Mageworx's user avatar
  • 3,566
8 votes

How to get the correct Final Price for Product on Listing?

We had to get the final price from a CRON process so our solution was first to set current store /** @var \Magento\Store\Model\StoreManager */ $storeManager->setCurrentStore(1); /** @var \Magento\...
cjohansson's user avatar
6 votes

Show Grouped product price in catalog view as sum of associated products in grouped product

I just had the same requirement. For a quick solution copy theme file Magento_GroupedProduct\templates\product\price\final_price.phtml to your custom theme and sum prices in template with <?php ...
skymeissner's user avatar
6 votes

Shouldn't catalog price rule calculation always happen 3 days in advance?

I spend sometime to understand this :) And The script calculate prices for the current day, the previous day and the next day. In Which, Updates include interval 3 days [in Magento 2.2.X] ...
Aditya Shah's user avatar
  • 7,627
5 votes

Get product price after applied Catalog Price Rule

I got the discounted price by below code: $price = $product->getPriceInfo()->getPrice('final_price')->getAmount()->getValue();
vedu's user avatar
  • 867
5 votes
Accepted

Magento 2 Can't get the sales rules conditions in my ui form submit

You need to make your custom Conditions.php and just replace $formName argument of addTabToForm function with your form name. you are using Magento core file and it's adding the selected value of ...
poojan sharma's user avatar
4 votes
Accepted

How to override Catalog Price Rules?

All good, i figured it all out. vendor/magento/module-catalog-rule/Helper/Data.php vendor/magento/module-catalog-rule/Model/Rule.php vendor/magento/module-catalog-rule/Model/Rule/Action/...
Nick Gulino's user avatar
4 votes

Check if product has catalog price rule

Old question, but for others looking, this seems to be an efficient method: $product = $this->getProduct(); Mage::getModel('catalogrule/rule')->loadProductRules($product); var_dump($product->...
BlueC's user avatar
  • 766
4 votes

Catalog Price Rule not applied / working in Magento 2 EE (v2.1.2)

Check in your Catalog Price Rule form is_active field is there, but it's hidden.
Devendra Gupta's user avatar
4 votes

Magento : Catalog Price Rule Date Not Working Properly

I cant comment, you need to check some conditions : 1)cron jobs working or not by installing Aoe scheduler extension or some other way 2)check magento site timings and server timings both are same
raj's user avatar
  • 69
4 votes
Accepted

apply catalog promotion rule on tier prices and special prices in magento 2

Native magento doesn't support applying catalog promotion rule on tier prices and special prices but we can achieve this by extending some of the core files in magento. You can find the ...
Bibhu Asish's user avatar
3 votes

Catalog Price Rule not applied / working in Magento 2 EE (v2.1.2)

As per my observation in Magento2.X version's content staging functionality is overriding the visible feature of the status of the catalog rule. For the time being I was updated the below line (18th ...
Rojarani Repalle's user avatar
3 votes

Apply catalog rule to grouped product

If the product added to the cart is child of a grouped, we have to look for the category of the grouped and not of the simple. For this, I have done the next: Create one file Vendor/Module/etc/di....
raumatbel's user avatar
  • 1,265
3 votes

How to make magento price reindexing and catalog rule apply process faster?

By clicking “Save and apply” Mаgentо rewrites all existing rules applyRules() is called during the function of saveAction() of the controller Mage_Adminhtml_Promo_CatalogController. Instead of ...
Gopal Patel's user avatar
  • 3,139
3 votes
Accepted

Magento 2 Create Catalog Price Rule Programmatically

check below Code. Reference: \Magento\CatalogRule\Controller\Adminhtml\Promo\Catalog\Save Before saving rule validate data It's helping for saving Correct value $model = $objectManager->create(...
Bhavik's user avatar
  • 1,240
3 votes

Magento 2 API - Get list of products with Catalog Price Rule

When you create a catalog price rule, Magento creates some entries in catalogrule_product table. You can see which products are affected by the price rules created. Unfortunately ProductRepository ...
Bunyamin Inan's user avatar
3 votes
Accepted

Catalog price rules with date as conditions cannot possibly work due to strtotime() conversion

Confirmed in 1.9.3.7 Possible fix: Change Mage_CatalogRule_Model_Rule_Condition_Product::_prepareDatetimeValue() to protected function _prepareDatetimeValue($value, $object) { $attribute = $...
sv3n's user avatar
  • 11.7k
3 votes
Accepted

How to add custom field in catalog price rule and cart price rule?

In order to add new field in Cart Price Rule, You need to create ui_component cause it created using it. Follow Steps to add Custom Field in Cart Price Rule. Vendor/Module/view/adminhtml/...
anonymous's user avatar
  • 3,752
3 votes

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

This because you are using the custom theme, so the update cart template was changed. Please check vendor/magento/module-configurable-product/view/base/templates/product/price/tier_price.phtml to see ...
bachlee89's user avatar
  • 1,287
3 votes

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

You can create a catalog price rule and select the customer group who will be eligible for the discount. In conditions tab you can select the condition for which product this discount will be applied....
Anshu Mishra's user avatar
  • 8,990
3 votes

apply catalog promotion rule on tier prices and special prices in magento 2

For archive your requirement you have to do some customization please check below solution. NOTE:- BELOW SOLUTION WILL ONLY WORK FOR THE APPLY CATALOG PROMOTION DISCOUND ON TIER PRICE Magento saved ...
Mohammad Bharmal's user avatar
3 votes

how to customize product price display in product page magento 2

For the first Goal: 1) I want to add a label near the First price . Follow this Link You need to override /vendor/magento/module-catalog/view/base/web/js/price-box.js And add your label : ...
Ylgen Guxholli's user avatar
2 votes

Catalog Price Rules conditions not working

"IS ONE OF" was fixed in magento 1.9.2
snh_nl's user avatar
  • 5,452
2 votes

Exclude associate product of configurable product from catalog price rule

Magento does not support this by default. Instead, we overrode Mage_SalesRule_Model_Validator and created a salesrule rewrite. In that we check to see if the associated product matches the sales rule. ...
Sharfaraz Bheda's user avatar
2 votes

catalog price rules disappear after mid night

As stated above by @Baby-in-Magento the problem is with the indexer. I had this problem as well, the issue exists when there is an offset of the local timezone greater than +01:00. Basically just ...
Chuvisco's user avatar
  • 165
2 votes
Accepted

Catalog price rule for all products with qty > 0

This is not the best solution , but an alternative manual solution. you can create a textfield attribute [ assume : brand] and assign to attribute set. you can go to Catalog > Manage Products & ...
Baby in Magento's user avatar
2 votes
Accepted

How to add catalog price rule condition in magento2

Setep: 1. Add this file in Block folder Vender\Module\Block\Adminhtml\Index\Edit\Tab namespace Vender\Module\Block\Adminhtml\Index\Edit\Tab; use Magento\Framework\App\ObjectManager; use Magento\...
Saurabh Taletiya's user avatar
2 votes

Extra 25% of site wide even to discount prices

You can do this with a shopping cart rule. Have a read of http://docs.magento.com/m1/ce/user_guide/marketing/price-rules-shopping-cart.html
jscar's user avatar
  • 787
2 votes
Accepted

Catalog Price Rules "SKU is not one of"

the issue is in Mage_Rule_Model_Resource_Rule_Condition_SqlBuilder class in public function getOperatorCondition() need to change on line 109 $result = implode(in_array($operator, array('()', '!()')...
krybbio's user avatar
  • 1,258

Only top scored, non community-wiki answers of a minimum length are eligible