Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Catalogue Price Rules - Resetting daily (sometimes)
 
dp7777
Jr. Member
 
Total Posts:  30
Joined:  2008-08-18
 

Magento ver. 1.1.7
Windows (IIS)

I have set up a number of rules which apply discounts correctly once the “apply rules” button has been clicked but these rules do not persist.  Some days i will check them and the rules are not being applied, some days they are.

I’m running a scheduled job on the server which calls a batch file containing:

php -f C:/inetpub/wwwroot/xxx.com/xxx/cron.php

cron.php contains

require 'app/Mage.php';

Mage::app('admin');

if (!
Mage::app()->isInstalled()) {
    
echo "Application is not installed yet, please complete install wizard first.";
}

// Only for urls
// Don't remove this
$_SERVER['SCRIPT_FILENAME''index.php';

try 
{
    Mage
::getConfig()->init()->loadEventObservers('crontab');
    
Mage::app()->addEventArea('crontab');
    
Mage::dispatchEvent('default');
catch (Exception $e{
    Mage
::printException($e);
}

This runs without error but with no output so i assume is ok.

I have seen that a lot of people have had issues with this and wondered if there is a fix?

Does the latest version of Magento sort out these problems? I don’t really want to upgrade unless necassary as the rest of the store is working fine.

Any help on this would be greatly appreciated.

Many thanks

DP

 
Magento Community Magento Community
Magento Community
Magento Community
 
dp7777
Jr. Member
 
Total Posts:  30
Joined:  2008-08-18
 

***bump***

I’m still having issues with this. can anyone give me any help.  It’s a real pain having to manually reset the rules on a daily basis.

Many thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
dp7777
Jr. Member
 
Total Posts:  30
Joined:  2008-08-18
 

Update:

1) I have tested the scheduled job and it is definitely firing.

2) i have added this to the bottom of my C:\inetpub\wwwroot\xxx.net\xxx\app\code\core\Mage\CatalogRule\etc\config.xml

<crontab>
<jobs>
<catalogrule_apply_all>
<schedule><cron_expr>0 1 * * *</cron_expr></schedule>
<run><model>catalogrule/observer::dailyCatalogUpdate</model></run>
</catalogrule_apply_all>
</jobs>
<events>
<catalog_product_get_final_price>
<observers>
<catalogrule>
<type>singleton</type>
<class>catalogrule/observer</class>
<method>processAdminFinalPrice</method>
</catalogrule>
</observers>
</catalog_product_get_final_price>
</events>
</crontab>

Does this look correct?

Thanks

DP

 
Magento Community Magento Community
Magento Community
Magento Community
 
dp7777
Jr. Member
 
Total Posts:  30
Joined:  2008-08-18
 

Has anyone point me in the right direction with this?

thanks

DP

 
Magento Community Magento Community
Magento Community
Magento Community
 
dp7777
Jr. Member
 
Total Posts:  30
Joined:  2008-08-18
 

***Bumped***

In the vain hope that someone might help.

thanks

DP

 
Magento Community Magento Community
Magento Community
Magento Community
 
Thiago Trivelato
Member
 
Avatar
Total Posts:  52
Joined:  2008-05-13
Brasil
 

Dont work in version 1.1.8

any help ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
easyc
Jr. Member
 
Total Posts:  9
Joined:  2008-01-16
 

bump.

we are on 1.1.6, having to re-apply rules every morning, any help would be appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top