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/

Monday, March 16, 2015

What Is a Cron Job?

Cron is a Linux utility which schedules a command or script on your server to run automatically at a specified time and date. A cron job is the scheduled task itself. Cron jobs can be very useful to automate repetitive tasks.
For example, you can set a cron job to delete temporary files every week to conserve your disk space. Some programs, such as Drupal, may even require you to set up a cron job to perform certain functions.
Scripts executed as a cron job are typically used to modify files or databases. However, they can perform other tasks that do not modify data on the server, like sending out email notifications.
A working knowledge of Linux commands is required to use cron jobs effectively.

Time Intervals

Cron jobs can be set to run by the minute, hour, day of the week, day of the month, month or any combination of these.
Note: HostGator limits cron jobs on Shared servers to run in 15 minute intervals, since excessive cron jobs can cause high loads on the server.

Cron Job Elements

Most cron jobs include three components:
  • The script that is to be called or executed.
  • The command that executes the script on a recurring basis (typically set in the cPanel).
  • The action or output of the script (which depends on what the script being called does).
Most scripts that require the use of a cron job will give you specific setup instructions. If you are unsure, check with the author of your script before adding a cron job.

Cron Job Limits

Shared and Reseller

  • You may NOT run a cron job more often than every 15 minutes.

VPS and Dedicated Server

  • You may run a cron job as often as desired.

Monday, January 12, 2015

How to install Magento?

1) Download Magento: www.magentocommerce.com/download
2) Need PHP5.2 Version or newer version for magento
3) Curl must be enabled
other system requirement are www.magentocommerce.com/system-requirements
4) If you are installing your local server then
a)un-check the checkbox having "Validation Before the Next Step" while filing "Configuration"
b)Base URL "localhost/magento" will not work and give error for security reason where as joomla or Drupal doesn't give error while installing on local server
So solution is fill Base URL as "127.0.0.1/"
5) www.magentocommerce.com/knowledge-base/e...o-installation-guide

What is Magento?

Magento is the eCommerce software platform for growth that promises to revolutionize the industry. Its modular architecture and unprecedented flexibility means your business is no longer constrained by your eCommerce platform. 

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