Skip to main content

Posts

Showing posts with the label Magento

Magento : Admin backend 404 not found

Have you imported database to new server and you are not able to access Magento admin panel? and it's showing you 404 not found error? If yes, try to run following commands from phpmyadmin. SET FOREIGN_KEY_CHECKS=0; UPDATE core_store SET store_id = 0 WHERE code='admin'; UPDATE core_store_group SET group_id = 0 WHERE name='Default'; UPDATE core_website SET website_id = 0 WHERE code='admin'; UPDATE customer_group SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN'; SET FOREIGN_KEY_CHECKS=1; It worked for me. Hopefully, this will work for you guys as well. The reason for this error is that store_id and website_id for admin should be set to 0 (zero) . But, when you import database to new server, somehow these values are not set to 0. Thanks!!!!!!!! Enjoy Programming :) Reference Links : http://stackoverflow.com/questions/5178066/error-404-not-found-in-magento-admin-login-page 

Magento : Disable 'Merchant Email Receipt'

After order has been placed, if customers are getting an email with subject : ‘Merchant Email Receipt’ having   following   content **Please DO NOT REPLY to this message. E-mail support@authorize.net if you have any questions. ========= SECURITY STATEMENT ========== It is not recommended that you ship product(s) or otherwise grant services relying solely upon this e-mail receipt. ========= GENERAL INFORMATION ========= Merchant : XXXXXXXXXXXX (1356037) Date/Time : 21-Apr-2014 13:43:26 PDT ========= ORDER INFORMATION ========= Invoice : none Description : Test transaction for ValidateCustomerPaymentProfile. Amount : 0.01 (USD) Payment Method : MasterCard Type : Authorization Only etc.... and you don’t want to send these type of emails to your customers? If yes, then here is the solution. Go to Magento Admin panel -> System -> Configuration -> Sales -> Payment Methods -> Authorize.net -> Email Customer Set to no an...

Magento : Admin login not working in Chrome

Workaround #1 : Before Installation Use 127.0.0.1 when you set up magento in localhost. I prefer this one because no need to make any changes in code. Workaround #2 : After Installation 1. Go to app\code\core\Mage\Core\Model\Session\Abstract\Varien.php file 2. Go to line number 85 and replace // session cookie params $cookieParams = array(             'lifetime' => $cookie->getLifetime(),             'path'     => $cookie->getPath(),             'domain'   => $cookie->getConfigDomain(),             'secure'   => $cookie->isSecure(),             'httponly' => $cookie->getHttponly() ); code snippet with // session cookie params $co...

Magento AW Followupemail extension : Show multiple products in email template.

As I discussed in my previous post , due to well-written documentation it was very easy to integrate AW Followupemail extension. I implemented the basic functionality using newsletter templates and it is working very fine. But, there was a confusion in Product Review follow-up email, in case there will be having more than one products in cart. I mean to say I have to loop through the cart items. Let’s do it. 1) Go to Admin Section -> Newsletter->Newsletter Templates 2) Create a Newsletter template with name ‘AW Product Feedback’ and copy following code in Template Content section. <h1>Dear {{var customer_name}}!</h1> <p> You have bought these products on {{var order.updated_at|formatDateTime:F j, Y}}</p> <p>The order contains the following items:</p> <table border="1" cellspacing="1" cellpadding="5" width="100%">     <tbody>         <tr> ...

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...

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['...