I have a client that needs to increase product prices using catalog price rules.

Unfortunately Magento shortsightedly min() the catalog price rules wherever they are found. I managed to change this functionality everywhere EXCEPT the order confirmation emails/pdfs. Does anyone know where those product prices are pulled from and the catalog price rules applied at?

I've changed:

file: app/code/core/Mage/Weee/Model/Mysql4/Tax.php


‘value’ => 100-max(0, min(100, $row[’action_amount’])),


 ‘value’ => 100-$row[’action_amount’],

file: app/code/core/Mage/Catalog/Model/Product/Type/Price.php


$finalPrice = min($finalPrice, $rulePrice);


$finalPrice = $rulePrice;

file: app/code/core/Mage/CatalogRule/Model/Observer.php

change (2x):

$finalPrice = min($product->getData(’final_price’), $this->_rulePrices[$key]);


$finalPrice = $this->_rulePrices[$key];

Like I said this is working on the frontend and the admin, everywhere as far as I can tell EXCEPT the order email/pdfs, so I'm thinking that these are calculated in yet another location that I have yet to identify.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.