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 ...
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\...
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\...
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
...
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]
...
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();
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 ...
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/...
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->...
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.
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
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 ...
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 ...
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....
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 ...
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(...
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 ...
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 = $...
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/...
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 ...
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....
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 ...
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 :
...
2
votes
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.
...
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 ...
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 & ...
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\...
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
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('()', '!()')...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
catalog-price-rules × 382magento2 × 96
magento-1.9 × 89
shopping-cart-price-rules × 55
price × 53
price-rules × 51
discount × 43
catalog-rules × 31
promotions × 27
catalog × 26
special-price × 19
magento-1.7 × 18
magento-1.8 × 14
tierprice × 12
cron × 11
product × 9
cart × 9
magento-enterprise × 9
magento-2.1 × 8
magento2.3 × 7
configurable-product × 7
category × 6
magento2.2 × 6
magento-1 × 6
rules × 6