Wednesday, October 28, 2015

Click on add all product on wishlist direct to a 404 page. This would may only happen for some Magento version.

Solution:

 In \app\design\frontend\my_theme\default\template\wishlist\view.phtml

Add

 url += '&form_key=' + jQuery('#wishlist-view-form input[name="form_key"]').val();
before setLocation(url);

Magento admin login not working in chrome but works fine for firefox?

I think there is the problem with session cookie with the chrome browser. So just go through this directory /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file and comment out the line from 85 to 92 in magento (1.7.2 for my case). Like this

    // session cookie params
   /* $cookieParams = array(
        'lifetime' => $cookie->getLifetime(),
        'path'     => $cookie->getPath(),
        'domain'   => $cookie->getConfigDomain(),
        'secure'   => $cookie->isSecure(),
        'httponly' => $cookie->getHttponly()
    );
  */
after that try to make login from your backend. Hopefully you can make login with chrome.

Customer Login not working in magento.

<?php echo $this->getBlockHtml('formkey'); ?>
if it is missing, add it as in

/app/design/frontend/base/default/template/persistent/customer/form/login.phtml

Here's what the above link has to say:

Go to template/customer/form/login.phtml and template/persistent/customer/form/login.phtml and under

<ul class="form-list">
Add the following code in the login form

<input type="hidden" name="form_key" value="<?php echo Mage::getSingleton('core/session')->getFormKey(); ?>" />

How to Uninstall Magento Extension...

The method you use to uninstall Magento depends on how you originally installed it.

Uninstall via Magento Connect
If you installed the extension via Magento Connect, follow these steps to uninstall it:

Log into the Magento Admin Panel
Navigate to System > Magento Connect Manager
Find the Braintree_Payments package and select Uninstall from the drop-down menu
Click Commit Changes
Uninstall manually
If you manually installed the Braintree extension, you’ll need to remove the following files and folders to uninstall it:

/app/code/local/Braintree/Payments
/app/design/adminhtml/default/default/layout/braintree.xml
/app/design/adminhtml/default/default/template/braintree/
/app/design/frontend/base/default/layout/braintree.xml
/app/design/frontend/base/default/template/braintree/
/app/etc/modules/Braintree_Payments.xml
/app/locale/en_US/Braintree_Payments.csv
/js/braintree/
/lib/Braintree.php
/lib/ssl/
/lib/Braintree/
/skin/frontend/base/default/braintree/

Magento 2 Useful Commands List

Setup Upgrade Using Command Line php bin/magento setup:upgrade Cache Clean Using Command Line php bin/magento cache:clean ...