Skip to main content

Posts

Magento : AW Followupemail extension

In e-commerce world, due to lot of competition, it has become compulsory to interact with your customers on regular basis. Follow Up Email is a powerful auto-responder and customer relationship tool that helps to keep your site in the customer's mind always.  For example you want to send an automated email to customer : 1) For 10% discount on his/her birthday. 2) Product reviews after order is complete. 3) Send an offer in case of abandoned cart. 4) Delay in shipping due to bad weather etc… You can read more about this extension from here. Readme : http://confluence.aheadworks.com/display/EUDOC/Follow+Up+Email User Guide : https://ecommerce.aheadworks.com/extradownloads/file/get/id/222/ FAQ : https://ecommerce.aheadworks.com/extradownloads/file/get/id/179/ Recently, I have integrated this extension in one of my project. Due to well written documentation it has become very easy to implement it and would like to recommend it as well. Thank...

window.onbeforeunload ajax request problem

From last few hours I was facing a problem with window.onbeforeunload . My need was to save form data(partial saving) by ajax, in case user opts to close the browser, reload the window or close the window. I was using following code : //Old Code window.onbeforeunload = function () {               saveFormData();    return msg; }; It was saving my content but the return statement was showing me a confirmation message with options ‘ Leave Page ’ and ‘ Stay on Page ’. It was so embarrassing. Without return statement it was not saving my data at all. After spending lot of time on internet and brainstorming a little found the following solution: //New Code $(window).bind('beforeunload', function () {                  //this will work only for Chrome               ...

Magento : Add “Subscribe to Newsletter” checkbox on Contact Form

To add "Subscribe to Newsletter" checkbox on Contact form, follow following steps:  1) Go to contacts/form.phtml file of your selected theme. 2) Place following code in the file as per your requirement :     <input type="checkbox" name="subscribe_newsletter"><?php echo          Mage::helper('contacts')->__(' Subscribe to Newsletter ') ?> 3) Now go to \app\code\local\Mage\Contacts\controllers\IndexController.php file      and put following code in postAction() function :     Note: If you are not able to find Mage/Contacts.... folder in local directory please create new one and refer to the link ( http://www.magentocommerce.com/wiki/5_-_modules_and_development/0_-_module_development_in_magento/how_to_create_a_local_copy_of_app_code_core_mage )  /*Start of code*/             if(isset($_POST['...

Magento 1.7 not showing Google Analytics code in application.

Recently, faced an issue with Google Analytics code implementation in Magento version 1.7. Done with all the settings to implement Google Analytics, still it was not showing Google Analytics code in my Magento application. Searched a little and came up with following solution. Go to \app\design\frontend\default\mytheme\layout\googleanalytics.xml file : Replace <reference name="after_body_start">         <block type="googleanalytics/ga" name="google_analytics" as="google_analytics" /> </reference> Code Block  With <reference name="after_body_start">         <block type="googleanalytics/ga" name="google_analytics" as="google_analytics" template = "googleanalytics/ga.phtml" />   </reference> Above code worked for me. Hopefully it will work for others as well. Thanks!!!!!!!!! Enjoy Programming :)  

TinyMCE Common Problems

1)      TinyMCE deletes empty block elements? If you are facing above problem and using version < 3.5.x then following link will be useful. https://github.com/tinymce/tinymce/commit/0eb73591f0d573bd2aee6a07a16ea1d0f51d6742 2)     TinyMCE turning/converting <i> into <em> or something like that? Following answer may be helpful for you. http://stackoverflow.com/questions/3105656/tinymce-turning-i-into-em-on-getcontent you have to change valid_elements option in tiny_mce.js file. 3)     Removing some custom attributes you have entered for an element? For example :  <a data-toggle="collapse" href=”http://dirtyhandsphp.blogspot.in/”>DirtyHandsPHP</a> TinyMCE will remove this custom attributes : data-toggle . Again to keep this as it, you have to add the element attribute in valid_elements as explained in 2nd point as below : a[rel|rev|charset|hreflang|tabindex|accesskey|ty...

Installing Magento Extensions Using the Connect Manager

Installing 3rd party Magento extensions is a big headache due to the problems it create. There is one tutorial which explains what all we need to take care of while installing third party extensions in Magento along with a youtube video . Check here. http://extensions.activo.com/installation.html It also explains the problem developers usually face regarding 'Service Temporary Available' while working with extensions. Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems . Please try again later . Thanks!!!!! Enjoy Programming :)

Zend Framework 2.2.5 installation on WAMP

I am newbie to Zend Framework, was trying to install Zend Framework 2.2.5 on WAMP 2.4 but struggled a lot. After couple of hours I got a link which helped me to install ZF2 just in minutes, so sharing the same. Hopefully it will help someone like me in future.  http://www.youtube.com/watch?v=0dfWOgb5cr4   Thanks!!!!!!! Enjoy Programming J