If ALL of these conditions are TRUE :
* SKU is COMP-MINI-2007
Perform following actions:
* Update product’s Rule price To Fixed Value : 0.00
— and —
If ALL of these conditions are TRUE :
* SKU is COMP-MINI-FRAMED-2007
Perform following actions:
* Update product’s Rule price To Fixed Value : 45.00
Both rules are enabled, the english store (the only one I have) selected and set with a “to date” of 12/15/07, Priority “0”
After creating and applying these rules, the “Special Prices” display correctly immediately and for some time after. The problem is that somewhere between 12 and 36 hours later, both rules stop working, and the prices go back to normal. Applying them again fixes the problem, but they have yet to stick for good.
I did not have caching enabled the first few times this happened, and I’ve now tried it with all caches enabled. Didn’t help… :(
There’s a routine that should run every day and update information for next few days for whole catalog.
The cronjob part is not finalized yet, so this does not happen.
In app/code/core/Mage/CatalogRule/Model/Mysql4/Rule.php on line 56 there’s:
$toTime = strtotime($rule->getToDate())+86400;
86400 (24*60*60) is amount of seconds from today until the prices should be calculated.
Change this to be (30*24*60*60) = 2592000 to create prices for next month, but when you click “Apply Rules”, you will have to wait some time.