June 17, 2015

Magento folder structure 1.9.X

Magento folder structure is different from General MVC framework.
Let take a look at the directory tree, and each folder and its usefulness:

 app: app folder is the core/heart of Magento Application and is further divided into three main folders:
code: code folder contains all our application code divided into three code pools such as core, community, and local

design: Design folder contains all the templates and layouts files for magento application

locale: This contains all the translation and e-mail template files that are used in magento application

• js: This contains all the JavaScript libraries that are used in Magento along with the prototype, varien js and any other js files.

• media: This contains all the images and media files for our categories, products and
CMS pages.

• lib: Library folder contains all the third-party libraries used in Magento such as Zend and PEAR, and other custom libraries developed by Magento, which
reside under the Varien and Mage directories

• skin: Skin directory contains all CSS files, images, and JavaScript files used by the corresponding theme.
Both the admin theme and front end theme css data reside under it.

• var: Var directory contains temporary data such as cache files, index lock files,
sessions, import/export files.
If you are using the Enterprise edition, then it holds the full page cache folders.

February 11, 2015

Importing Products with the Import Export with Magento 1.5 CE

This tutorial is regarding how to use the "Import Export" feature that has been introduced with Magento 1.5 and above in community edition.

I will demonstrate how to import simple product data via CSV files and CSV product related variants.

CSV format is as follows:

Have to put column names in the first table row

Make sure to keep - Field separator: comma

Make sure to keep - Text separator: double quotation marks (optional)

Make sure to keep character coding set to - Character set: UTF-8

Sample importing product format of CSV file.
We have used comma for separating column only for demonstration. Use CSV file as attached.

Column Names :
store, websites, _attribute_set, _type, sku, price, weight, name, image, thumbnail, small_image, short_description, description, status, visibility, tax_class_id, qty, is_in_stock

Values :
admin, base, Default, simple, sandy_product, 100, 0.5, sandy_product, /image1.jpg, /image1_thumb.jpg, /image1_small.jpg, sandy_product, sandy_product, 1, 4, 2, 100, 1