I have fond a bug on Magento CE 1.8.0 and 1.8.1 that is related to special price.
If I set some special price on product and save that change, magento sets current date for Set Product as New from Date (news_from_date), Special Price From Date (special_from_date).
I have solved this issue.
for this issue take standard.php file in your local set up file is in \app\code\local\Mage\Catalog\Model\Product\Attribute\Backend\standard.php
find the function _getValueForSave($object) and add this line,
$object->setData('news_from_date', FALSE);
after if ($startDate == '' && $object->getSpecialPrice()) {
it means
if ($startDate == '' && $object->getSpecialPrice()) {
$object->setData('news_from_date', FALSE);
$startDate = Mage::app()->getLocale()->date();
}
. That's it . Now check.
If I set some special price on product and save that change, magento sets current date for Set Product as New from Date (news_from_date), Special Price From Date (special_from_date).
I have solved this issue.
for this issue take standard.php file in your local set up file is in \app\code\local\Mage\Catalog\Model\Product\Attribute\Backend\standard.php
find the function _getValueForSave($object) and add this line,
$object->setData('news_from_date', FALSE);
after if ($startDate == '' && $object->getSpecialPrice()) {
it means
if ($startDate == '' && $object->getSpecialPrice()) {
$object->setData('news_from_date', FALSE);
$startDate = Mage::app()->getLocale()->date();
}
. That's it . Now check.
No comments:
Post a Comment