Currently browsing

Magento Model Code Generation

This is a quick one for advanced users, is a recent problem, I answered StackOverflow inspired.

Magento as well as about an abstract system as one of the advantages is the opportunity it presents metaprogramming. Drops action in a controller (which is the following code, you can define an internal function in PHP)

Magento – Fatal error: Uncaught exception 'Exception' with message 'Serialization …….'

serialization of mage_core_model_layout_element is not allowed The message might be various but something like this Fatal error: Uncaught exception ‘Exception’ with message ‘Serialization of ‘Mage_Core_Model_Layout_Element’ is not allowed’ in /app/code/core/Mage/Core/Model/Mysql4/Session.php:82 If you re ad PHP manual or google for this issue, it doesn’t tell you something about the reason excepting …

Magento Email Template: How to send file as attachment with Magento email-template

yhs-fullyhosted_003magento send email with attachmentmagento troubleshootingYou can send a any file as attachment with any Magento e-mail template. For this.please buy generic cialis add the following code with your mail program. $fileContents = file_get_contents(Mage::getBaseDir(‘export’).’/’.$filename); /*(Here put the filename with full path of file, which have to be send)*/ $attachment = …

Enable Magento Exception Error reporting

magento enable error reportingmagento enable error printingmagento turn on error reportingmagento error reportingenable error reporting magentoenable magento error reportingSometime, your Magento store have an exception and you get error saying “Exception printing is disabled by default for security reasons” with error log record number. So this is quite impossible to …