dhavalp

Fatal Error on plugin installation

I got the error “Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 49152 bytes) in /home/wellington/public_html/dev/wp-admin/includes/file.php on line 357” when installing plugin in wordpress. By default, WordPress automatically tries to increase PHP memory limit if it is less than 64MB. However, 64MB is often not high...Read more …
keithg

add new attribute value to product query in magento

We have taken sale attribute to product general tab. $_productCollection = Mage::getResourceModel(‘catalog/product_collection’) ->addAttributeToSelect(‘*’) ->addAttributeToFilter(‘sale’, array(‘eq’ => ‘1’)) ->addMinimalPrice() ->addUrlRewrite() ->addTaxPercents() ->addStoreFilter() ->addFieldToFilter(‘visibility’, Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH) ->addFieldToFilter(‘status’, Mage_Catalog_Model_Product_Status::STATUS_ENABLED);     Today s special price query $todayDate = Mage::app()->getLocale()->date()->toString(Varien_Date::DATETIME_INTERNAL_FORMAT); $_productCollection = Mage::getResourceModel(‘catalog/product_collection’) ->addAttributeToSelect(‘*’) ->addAttributeToFilter(‘special_price’, array(‘neq’=>”)) ->addAttributeToFilter(‘special_from_date’, array(‘date’ => true, ‘to’ => $todayDate)) ->addAttributeToFilter(‘special_to_date’, array(‘or’=>...Read more …