Setup Mobile theme for your Magento store

Just reblogging so that I will have a reference of it someday.

Only E-commerce

You can easily add an exception in System->Configuration->Design to send iPhone and Android user agents to your mobile site – but what if you want to have subdomain (e.g. m.yourstorename.com) for mobile then you will have to setup multiple websites in Magento.

Create Multiple Websites in Magento for the website and Mobile Site:

  • Create a subdomain ‘m’ for your site, e.g. m.yourstorename.com
    • Make sure that the website root directory for the subdomain is the same location where you have magento root directory e.g.  public_html/magento
  • Setup multiple websites in Magento
  1. In the admin goto System->Manage Stores
  2. Click Create Website and enter a name and code, such as ‘Mobile’ and ‘mobile’
  3. Click Create Store and enter a name for the sotre, such ss ‘Mobile Store’ and select your root category. Note you could set up your categories differently for your Mobile store or use the same as your desktop site.
  4. Click create…

View original post 275 more words

wget – recursively download all files from certain directory listed by apache

A very nifty solution to transfer all files from one server to another via SSH using wget.

Bartosz Wieczorek's blog

Case: recursively download all the files that are in the ‘ddd’  folder for the url ‘http://hostname/aaa/bbb/ccc/ddd/’

Solution:
wget -r -np -nH –cut-dirs=3 -R index.html http://hostname/aaa/bbb/ccc/ddd/

Explanation:
It will download all files and subfolders in ddd directory:
recursively (-r),
not going to upper directories, like ccc/… (-np),
not saving files to hostname folder (-nH),
but to ddd by omitting first 3 folders aaa, bbb, ccc (–cut-dirs=3),
excluding index.html files (-R index.html)

View original post

Hello world!

Welcome to WordPress.com. After you read this, you should delete and write your own post, with a new title above. Or hit Add New on the left (of the admin dashboard) to start a fresh post.

Here are some suggestions for your first post.

  1. You can find new ideas for what to blog about by reading the Daily Post.
  2. Add PressThis to your browser. It creates a new blog post for you about any interesting  page you read on the web.
  3. Make some changes to this page, and then hit preview on the right. You can always preview any post or edit it before you share it to the world.