9 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 ...
user avatar
  • 443
8 votes
Accepted

Display price including tax

Try this in you phtml file. $_priceIncludingTax = Mage::helper('tax') ->getPrice($_product, $_product->getFinalPrice());
user avatar
8 votes

Catalog price rule from today does not apply

Problem in this instance is on these lines $fromTime = (int) strtotime($rule->getFromDate()); $toTime = (int) strtotime($rule->getToDate()); They are not using Magento time methods to take in ...
user avatar
  • 347
8 votes
Accepted

How to set 30% discount on all products in magento shop

Go to Backend , you can see Promotions > Catalog Price Rules > Add New Rule Than enter the information. Under Rule information , status - Active, Website : Main website select customer Groups ...
user avatar
7 votes
Accepted

Catalog Price Rule containing several SKU-s doesn't work

I had the same issue, but on 1.8.1.0, so i tried to update to 1.9.0.1, still the same issue. But I found why this happens: This method: Mage_Rule_Model_Condition_Product_Abstract::...
user avatar
7 votes

Catalog Price Rules disappear overnight

Ensure that your Magento cron is setup correctly: Installing and Verifying Magento: Setting Up Cron Jobs Check if the cron-job is running look into cron_schedule-db-table use /cron.php to refresh ...
user avatar
7 votes

How to set 30% discount on all products in magento shop

Connect to the backend Go to Promotions > Catalog Price Rules Click Add New Rule Rule Name: 30% off Status: Active Websites : Choose the websites you want to apply the discount for Customer Groups: ...
user avatar
7 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\...
user avatar
  • 3,718
7 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\...
user avatar
6 votes
Accepted

In magento which price or price rule has the highest priority?

Magento takes the minimal value (lowest price) from the following calculated price variations Product Price Tier Price Group Price (CE1.7+) Special Price Catalog Rule Price Reference as Marius says ...
user avatar
  • 122
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] ...
user avatar
  • 7,389
6 votes

What is the process flow of calculation while we add product to cart in Magento

First of all, I would like to point out that Shopping cart price rule different from all others. In Magento, the lowest amount of below prices will be used as the cart price whenever a product is ...
user avatar
  • 75.5k
6 votes
Accepted

Check if product has catalog price rule

If you don't have many rules or many products you can try this: $website = Mage::app()->getWebsite(); $product = $this->getProduct(); $rules = Mage::getModel('catalogrule/rule')->...
user avatar
  • 195k
6 votes

1.9.2 Catalogue Price Rules rounding (when more then one rule applied with 'Stop further rules..')

Had exactly same issue. If final price was ending with .50 or lower, it would drop the decimal part, and if .51 and higher, it would keep it. This started happening as we updated from magento CE 1.9....
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 ...
user avatar
5 votes

Display original price and final price in catalog products list

Poonya,you can load the product by product id $pro=Mage::getModel('catalog/product')->load($_product->getId()); $OrgPrice=$pro->getPrice(); $finalPrice=$pro->getFinalPrice(); Hope ,it ...
user avatar
  • 75.5k
5 votes

Catalog Price Rule containing several SKU-s doesn't work

Please note that this issue has been solved in Magento EE 1.14.2.0. The fix is darn simple : In Mage_Rule_Model_Condition_Product_Abstract::prepareConditionSql() : replace $value = $this->...
user avatar
5 votes

Display price including tax

you can do this by tax helper $_priceInclTax = Mage::helper('tax')->getPrice($_product, $_finalPrice, true, null, null, null, null, null, false); Here $_finalPrice=$_product->...
user avatar
  • 75.5k
5 votes
Accepted

display percentage of discount on product list and product view page in magento

Here is how you can get the discount percentage. Let's say $_product is the current product instance: <?php $originalPrice = $_product->getPrice(); $finalPrice = $_product->getFinalPrice(); ...
user avatar
  • 195k
5 votes

catalog price rules disappear after mid night

source : https://stackoverflow.com/questions/25280095/magento-catalog-price-rule-disappears-at-night credits for genius "Alexei Yerofeyev". mostly i will never forget this man. Yes, this is a bug ...
user avatar
4 votes

Catalog Price Rules conditions not working

I hate to give a 'have you updated?' - "solution" but I cannot comment without posting it as an 'answer'. There are several problems with Catalog Price Rules in 1.8 and 1.9.0.1 - Updating to 1.9.1 ...
user avatar
4 votes

Catalog price rule stops at midnight

I had a lot of issues with the catalog price rules reindexing before. My latest solution (that seams to work) was to change the hour when the cron for reindexing of catalog rules run. Here is why. I'm ...
user avatar
  • 195k
4 votes

CatalogRule not appearing in cron_schedule table

you don't need to edit any of the cron files, it's not even recommended. catalog rules do have some problems, but they can be solved directly or by adding an extra cronjob. the reason you're not ...
user avatar
  • 807
4 votes

How to determine if an item has discount from catalog price rule

Product to catalog price rules data is stored in the table catalogrule_product In that table you will find the product_id field that relates back to your product. You should be able to build a query ...
user avatar
  • 9,796
4 votes

Events of adding/editing catalog rule

I think you can use catalogrule_rule_save_before and catalogrule_rule_save_after. You can get the rule object in your observer like this: public function doSomething($observer) { $rule = $...
user avatar
  • 195k
4 votes
Accepted

Events of adding/editing catalog rule

Hook onto the event: salesrule_rule_save_after and catalogrule_rule_save_after for shopping cart and catalog rules respectively. Also, to just be on the safe side you could check in the observer you ...
user avatar
  • 2,490
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->...
user avatar
  • 757
4 votes

Reindexing option not available in magento 2.0

In production mode Magento should be reindexed by a cronjob, see the documentation for further explanation: http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html. ...
user avatar
  • 1,267
4 votes

How to set 30% discount on all products in magento shop

Try this one https://drive.google.com/open?id=0BweKwHQ_asV2VE5HTzlLX2RvZUU here you will get some more examples also which will help you to set some other promotion rule also.
user avatar
4 votes

Offering a free gift with purchase of a particular product type like (Buy X products Get Y Free)

The best way to achieve what you want is to create a custom module for this. You can follow below approach for this. 1) Create a product attribute for example: free_gift_sku with type as dropdown and ...
user avatar
  • 3,554

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