Magento 1.8.0 and 1.8.1 issue with special price

二次信任 提交于 2019-12-24 01:24:57

问题


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) and Active From (custom_design_from). After these values are set I'm unable to remove them both grammatically and using admin panel.

Has anyone found reason for this issue and how to fix it.

P.S. This was ok on CE 1.7.2


回答1:


It's a real bug, which a had in every update 1.8 and 1.8.1. This is the (temporarely) solution. I found it here:

http://www.sdms.it/magento-1-8-new-date-bug/

Apply the module found here: http://www.multibyte.at/wp-content/uploads/2013/10/Multibyte_DateFix.zip

After uploading, flushing cache and logout / login the problem is fixed.




回答2:


Try

$product->setData('news_from_date', FALSE);

It works for me.



来源:https://stackoverflow.com/questions/20570528/magento-1-8-0-and-1-8-1-issue-with-special-price

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!