Magento re-index via command line

Posted by Damodar Bashyal on December 29, 2014

 

Magento re-indexing through command line

If you are hosting your Magento store on shared hosting, this is almost required that you have to run re-index through command line. Even if you are on powerful server, you may find from time to time reindex times out if you have big data.

To over come this issue, you can use your command line to run reindex on required indexes.

I use PuTTY to connect to server and then go to your magento install and then to shell folder. e.g.

~/public_html/shell

Here you can check status of current indexes with this command:

More»

How to install SSL on windows localhost (wamp)?

Posted by Damodar Bashyal on October 14, 2014

 

These are the steps I noted down when installing ssl on my localhost wamp installation. I am using windows 7 Professional 64-bit Operating system.

First of all download and install OpenSSL binary from http://slproweb.com/products/Win32OpenSSL.html, I installed http://slproweb.com/download/Win64OpenSSL_Light-0_9_8zb.exe.

Using command line generate private key which is 2048bits encryption.

More»

Magento find number of times a coupon has been used

Posted by Damodar Bashyal on October 13, 2014

 

Magento was not recording correct number of times a shopping cart coupon was used. When I ran below query in database, it was giving wrong information as far as I know.

mysql> select u.coupon_id, c.code, count(*) as total from salesrule_coupon_usage u, salesrule_coupon c where u.coupon_id=c.coupon_id and u.coupon_id IN (119, 132, 91) group by u.coupon_id;

May be I was wrong to use that query to find usage :), so tried another query, which gave me better report.

More»