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

Page 2 of 2
Add ‘is divisible by’ to price rules conditions
 
seDev
Member
 
Total Posts:  51
Joined:  2008-01-22
 

Hi Moshe,

I’m baaaack!  big surprise

That last product.php file fixed the error when selecting a “Cart Item Attribute”.
But now I get this error when I select a “Product Attribute”:

NoticeUndefined variableattr in /home/auth5t0/public_html/UK/app/code/core/Mage/CatalogRule/Model/Rule/Condition/Product.php on line 97
[0] in Mage_CatalogRule_Model_Rule_Condition_Product
->getValueSelectOptions() in /home/auth5t0/public_html/UK/app/code/core/Mage/Rule/Model/Condition/Abstract.php on line 357
[1] in Mage_Rule_Model_Condition_Abstract
->getValueElement() in /home/auth5t0/public_html/UK/app/code/core/Mage/CatalogRule/Model/Rule/Condition/Product.php on line 179
[2] in Mage_CatalogRule_Model_Rule_Condition_Product
->getValueElement() in /home/auth5t0/public_html/UK/app/code/core/Mage/Rule/Model/Condition/Abstract.php on line 367
[3] in Mage_Rule_Model_Condition_Abstract
->getValueElementHtml() in /home/auth5t0/public_html/UK/app/code/core/Mage/Rule/Model/Condition/Abstract.php on line 258
[4] in Mage_Rule_Model_Condition_Abstract
->asHtml() in /home/auth5t0/public_html/UK/app/code/core/Mage/Rule/Model/Condition/Abstract.php on line 266
[5] in Mage_Rule_Model_Condition_Abstract
->asHtmlRecursive() in /home/auth5t0/public_html/UK/app/code/core/Mage/Adminhtml/controllers/Promo/QuoteController.php on line 199
[6] in Mage_Adminhtml_Promo_QuoteController
->newActionHtmlAction() in /home/auth5t0/public_html/UK/app/code/core/Mage/Core/Controller/Varien/Action.php on line 341
[7] in Mage_Core_Controller_Varien_Action
->dispatch("newActionHtml"in /home/auth5t0/public_html/UK/app/code/core/Mage/Core/Controller/Varien/Router/Admin.php on line 141
[8] in Mage_Core_Controller_Varien_Router_Admin
->match(Mage_Core_Controller_Request_Httpin /home/auth5t0/public_html/UK/app/code/core/Mage/Core/Controller/Varien/Front.php on line 147
[9] in Mage_Core_Controller_Varien_Front
->dispatch() in /home/auth5t0/public_html/UK/app/Mage.php on line 421
[10] in Mage
::run("row_site""website"in /home/auth5t0/public_html/UK/row/index.php on line 28


Fatal error
Call to a member function usesSource() on a non-object in /home/auth5t0/public_html/UK/app/code/core/Mage/CatalogRule/Model/Rule/Condition/Product.php on line 97

Thanks,

Séamus

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

Hmm.... that’s weird, try the re-uploaded now file.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
seDev
Member
 
Total Posts:  51
Joined:  2008-01-22
 

That did it.

Thanks so much for your time, Moshe.

Cheers,

Séamus

 
Magento Community Magento Community
Magento Community
Magento Community
 
GPutignano
Sr. Member
 
Avatar
Total Posts:  214
Joined:  2007-11-03
Lauria - Italy
 
Moshe - 21 March 2008 05:28 AM

@Garrone: please replace with attached file: app/code/core/Mage/CatalogRule/Model/Rule/Condition/Product.php
Which attributes did you use in your price rule?

Now it’s ok. I used Cart item Attribute: Price in cart, Quantity in cart and Row total in cart.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 2 of 2