Pages

Thursday, July 18, 2013

What is Magento

Magento is an open source eCommerce solution. It comes with a variety of tools, necessarily for building a successful online shop. Magento offers a lot of built-in capabilities, such as promo pricing and coupon codes, detailed statistics, and SEO options.
This Magento tutorial will provide you with comprehensive installation instructions for Magento shopping cart and will also show you how to create and manage a web site using Magento.

How to Install Magento

There are two main ways to install Magento. The fastest and easiest one is to use the Softaculous autoinstaller available in cPanel. To learn how to install Magento via this tool, check our Magento Softaculous Installation Tutorial.
You can also perform a manual installation using the Magento Installation Wizard. Read along to see how to do that.

Manual Installation of Magento

The steps which you must follow in order to complete the Magento manual installation are:
STEP 1Download the latest stable Magento package from:
STEP 2Upload the package on your hosting account through your cPanel -> File Manager or using an FTP client.
You can learn more about cPanel from our cPanel Tutorial.
There are 2 options where you can place the Magento download file:
  • Either under the public_html folder, which is the main one for your web site content. Then your web site will be accessible directly through your domain.
  • Or under a subfolder, for example if your domain name is called yourdomainname.com and you decide to install the script in the public_html/magento folder, you will open the web site at: http://yourdomainname.com/magento.
Once you upload the package, you can extract it through your cPanel -> File Manager. Using the same tool, please change the file permissions for the Magento files to 755.
STEP 3Create a MySQL database and assign a user to it through cPanel -> MySQL Databases. Remember the database details, since you will need them during the script installation.
STEP 4In our example we will install Magento in the public_html/magento folder. Once the package is uploaded and extracted and you have a MySQL database, navigate to http://yourdomainname.com/magento:


         

Click on the check box next to "I agree to the above terms and conditions" and click on the Continue button.
STEP 5Choose the preferred Time Zone, Locale and Currency:


         


Click on the Continue button.
STEP 6Enter the database details: Database Name, User Name and User Password. You can leave the other options intact.Click on the check box next to "Skip Base URL validation before next step".


       


Click on the Continue button.
STEP 7At this point you should enter the personal information and the admin login details which you want to use. You can leave the Encryption Key field empty and the script will generate one for you.


       


Click on the Continue button.
STEP 8Write down your encryption key; it will be used by Magento to encrypt passwords, credit cards and other confidential information.


       


Well Done!Your Magento installation was successfully completed. Now you can navigate to its Frontend or Backend.

Automatic Magento Installation via cPanel Site Software

Magento installation is easy and fast through the Site Software tool in cPanel.
First go to cPanel find the Site Software icon.


       


Find Magento in the Ecommerce section and open it.


       


Enter the admin user name and the corresponding password.
You can also define the folder for your Magento installation. Leaving it blank will install the script directly in the web root directory for your account.
Click on the Install button to complete the script installation.
At the end you will get a confirmation screen with the URLs of your installation's front and back ends, the Magento admin login details and the link to the SiteGround Magento tutorial. The Magento encryption key will also be visualised.


       


Magento Encryption Key

The Magento Encryption Key is generated during the Magento Installation. It is used for the encryption and the security storage of the sensitive data in the script's database.


The Magento Encryption Key is kept in the app/etc/local.xml file. You can open it through cPanel->File Manager. You can find more details on how to view the file content in our cPanel tutorial.
The code which you should look for is:
<crypt><key><!--[CDATA[ENCRYPTION_KEY]]--></key></crypt>
The ENCRYPTION_KEY string is replaced by the actual encryption key.
You need it if want to move your store data to a new Magento site. The Encryption key is used to recover the encrypted data.
When you migrate your database content to a new Magento installation, make sure that the encryption key from the existing installation is written in the new web site's local.xml file. Otherwise the encrypted data, stored in the new database will not work.

Magento Features

The large array of the Magento features is one of the main benefits of Magento. Through them you can easily develop and manage a successful online store. Magento features like different payment engines and shipping options along with the international support and high security using a private SSL certificate will make your shop an attractive place for e-commerce.

Magento main features include:

  • Analytics and Reporting - the script is integrated with Google Analytics and offers many different reports.
  • Product Browsing - multiple images for products, options for extensive reviews, wishlists and much more.
  • Catalog Browsing - easy navigation, advanced product filtering system, product comparison.
  • Catalog Management - inventory management, batch import and export of products, different tax rates per location, additional product attributes.
  • Customer Accounts - order status and history, e-mail and RSS feeds for products in the wishlist, newsletter subscription, default billing and shipping address.
  • Customer Service - enhanced features for customers' accounts, Contact Us form, comprehensive order tracking and history, customizable order e-mails.
  • Order Management - create orders through admin area, create multiple invoices shipments and credit memos, call center order creation option.
  • Payment - different payment methods: credit cards, PayPal, Authorize.net, Google Checkout, checks, money orders, support of external payment modules like Cybersource, ePay, eWAY and many more.
  • Shipping - shipping to multiple addresses, flat rating shipping, supports UPS, UPS XML (account rates), FedEx (account rates), USPS and DHL.
  • Checkout - one page checkout, SSL support, checkout without having an account.
  • Search Engine Optimization - 100% Search Engine Friendly, Google SiteMap support.
  • International Support - multiple languages and currencies, list of allowed countries for registration, purchasing and shipping, localization.
  • Marketing Promotions and Tools - coupons, discounts and different promotion options.
  • Site Management - control of multiple web sites, multiple languages, tax rate with support for US and International markets, customizable outlook through templates.

Create a Magento Web Store

Once you have completed the Magento installation, you can proceed with the configuration of your web site. In this article we have briefed the basic options in Magento, which will help you set up your web store. Below you can find the following topics:
  • Log into Magento;
  • Magento System Configuration;
  • Manage categories in Magento;
  • Manage products in Magento;
  • Magento catalog;
  • Promotions in Magento;
  • Magento reports;
  • Magento Base URL;
By default the main page looks as follows:


Log into Magento Admin Area

In order to start populating your web site with content, you need to navigate to the Magento's admin area:


System Configuration

Log in with the details entered during the script installation and navigate to System -> Configuration. Here you can configure the script options per your personal needs. Most options are self-explanatory:


Magento Catalog

From the Catalog category you can also manage the attributes, rewrite URLs for the products, perform searches, edit tags, generate a GoogleMap and manage reviews and ratings:


Promotions in Magento

From the Promotions section you can set promotions, define the rules for them and the customers' groups for which the promotions are valid:


Magento Reports

Multiple comprehensive statistics and reports can be obtained at the Magento admin area -> Reports.


Magento Base URL

If you want to configure Magento to work with another domain, you can do this by changing the Magento Base URL option in the admin area. To do this, go to your Magento admin area > System > Configuration and click Web on the left menu. Click the Unsecure option and then edit the Base URL field to configure the URL that will be used for normal (HTTP) connections.
To configure the URL for secure (HTTPS) connections, click the Secure option and then edit the Base URL field. Note that in order to use HTTPS connections for  your domain without receiving a warning about the SSL, you need to buy a private SSL certificate.


Magento Products

In this tutorial we'll cover one of the most important aspects of managing an online shop - products. The tutorial includes the following topics:
  • How to add products in Magento
  • How to add images to your products
  • How to manage product attributes
  • How to manage product tags
  • How to configure the quantity of your products
  • How to manage your products' prices, discounts, etc

How to Add Products in Magento

You can add products from the Magento admin area > Catalog > Manage Products > Add Product (located at the top right of the page).
You need to select the product's settings (Attribute Set and Product Type) and click Continue.
On the next page you will have to fill in the product options (Name, SKU (Stock Keeping Unit), Weight, Status (Enabled/Disabled), Tax Class, etc). You can also add custom attributes to the product using the Create New Attribute button.
When ready, click Save and Continue Edit to go to the next step. Here you will have to fill in the price for your product. You can also add additional price options such as Tier Price and Special Price.
Click Save and Continue Edit to go to the next screen where you will be asked to enter some description for your product.
Click Save and Continue Edit and the product will be saved. You can further customize the product from the Product Information menu on the left. In order for the product to show up on your front page, make sure you set it as In Stock from the Inventory option in the left menu.

How to Add Images to Your Products

Adding an image to a product in Magento is simple. All you need to do is select the product which you want to add an image to from the product list available in the Magento admin area > Catalog > Manage Products.
Once the product is selected, click the Images option available in the Product Information menu on the left.
Click Browse Files and locate the file on your computer which you want to use as a product image. Then click Upload Files to upload the image to your shop. Finally, label your image and choose where it should appear using the radio buttons on the right. Click Save to save your product's image.

How to Manage Product Attributes

Clicking on the [Create New Attribute] button will allow you to add attributes to your products:
Once you are ready with the attribute, click on the [Save Attribute] button. Then you can click on the [Save] button in order to store your product information.
Finally, you need to assign the new product to a chosen category:

How to Manage Product Tags

By default Magento includes the option to allow customers to tag your products. When a customer tags a certain product, the tag appears as pending and must be approved before it can show up on the product page.
Let's add a tag to our product, approve it and see how it then shows up on the product page. To add a tag to a product, simply write the tag word in the Add Your Tags: field available on the product page and click Add Tags. We'll add "Great" as a tag. A confirmation message will show up saying that the tag has been accepted for moderation:
Now go to your Magento admin area > Catalog > Tags > Pending Tags to view all your pending tags. In our case, there will be only one pending tag for the word "Great":
Click it and you will be taken to a page where you can change the status of the tag. It will appear as "Pending", so le't change it to "Approved" and click Save Tag.
Now that the tag has been approved, all other customers will see it on the product page.
You can also manage tags on a per-product basis. Go to your Magento admin area > Catalog > Manage Products and click the product the tags of which you want to check. Then from the left menu click Product Tags and you will see all the tags for that product.

How to Import Products in Magento

It is rather inconvenient to manually add a large number of products at once to a Magento installation. Inserting products one by one will take a long time especially when you have hundreds or thousands of products.In such cases you need an automatic way to add all those products to your Magento online store. We will address all steps you need to take in order to achieve a successful import.First, access your Magento administrator backend and go to Catalog -> Manage Categories.
Create all product categories you will need. You can do so by filling the form displayed below:
When you fill the form with all the information you like click the Save Category button.
Bear in mind that at this point you should make note of the newly created category ids. It would be best to save them in a simple text file as you will need them for the import. The category ID will be displayed upon saving the category. It is recommended to make notes as shown below
If you plan to have additional attributes for the products you are importing you will need to create those via Catalog ->Attributes ->Manage Attributes -> Add new Attribute. You can use this functionality to add all custom attributes that are not present by default in a standard Magento installation. Note also that you can add additional attributes later at the moment you are creating a sample product. It is up to you whether to create the attributes before that or at the point you are creating the first product.The next step is to manually add a product to your Magento installation. You will later export this product and use it as a template for importing the large batch. Make sure you include all attributes you will use for the products you are going to import in the sample product. You might want to delete all default products that might be present as you will not need them and then create the new product you will use as a template for the import.
Once you create the new product and save it it will appear in the products list for your Magento store.
You are now ready to make the sample export that you will use as a template. In the Magento administrator area go to System -> Import/Export -> Dataflow - Profiles -> Export All Products. Under Profile Information -> Store choose the desired store where you will be importing the products. This should also match the store where you have previously created a sample product. Under Data Transfer drop down menu choose Local/Remote Server. Under Data Format make sure CSV / Tab Separated is selected for type and click Save Profile. Then click export all products again and Run Profile in Popup.
This will save a file named “export_all_products.csv” under the var/export/ directory for your Magento installation. The export success screen will look like this and will specify the file name where the products were exported.
Using an FTP client download this file to your local computer. The file will include columns for each of the attributes you have defined for your products. Open it in a spreadsheet program (MS Excel, Open Office Spreadsheet) and add the products you would like to import. Make sure you are copy/pasting the corresponding attributes in the correct columns. Also here is when you will have to add the category IDs. Use the IDs from the text file you saved earlier and put the corresponding category ID for the products you are adding.
Once you have accomplished the above go back to the Magento administrator area and choose System -> Import/Export -> Dataflow - Profiles -> Import All Products. Then choose Upload file and browse for the .csv file that you have updated with the products that need to be imported. Once you have uploaded it click Import All Products again, then Run Profile, select the .csv file you have just uploaded from the drop down menu and click Run Profile in Popup. A status screen will open and the products will start importing
When the import completes you will get an export success message.
You can now go to the products section of the Magento administrator backend and check the imported products. They will be present there and assigned to the corresponding categories with the attributes you have added for them.

Magento Quantity

How to Manage the Quantity of Your Products in Magento.

All you need to do to change the quantity of a given product is go to your Magento admin area > Catalog > Manage Products and click on the product the quantity of which you want to modify. Then from the Product Information menu on the left click Inventory and fill in the product quantity in the Qty* field.
Click Save to save the new quantity for that product.

Magento Categories

How to Create and Manage Categories in Magento

In this tutorial we will show you how to create and manage Magento categories. The tutorial includes these topics:
  • How to create a category in Magento
  • How to add a category image in Magento
  • How to list all available categories in Magento

How to create a category in Magento

In order to create a new category for your products, go to your Magento admin area > Catalog > Manage Categories. On the left you will see the available categories (if any) and above them you will see two options - Add Root Category and Add Subcategory. Since we have the Magento data installed, we have several categories. Let's create a new subcategory of the root category by clicking Root Catalog and then Add Subcategory.
You should fill in its Name and Description, add an image, fill in some Meta data for search engines, set it as Active so that it appears on your front page and include it in the Navigation Menu.
The last option is URL key, which, if set,  will be used in the links to this category. This is useful for SEO purposes - when sites are indexed, it is considered a plus to have as many relative keywords as possible in the URL. If the category is called "PC", you may want to set this field to "personal-computers" to include two additional keywords in the link.
These are the General Information settings for the category. From the 3 other tabs available you can also manage:
  • Display Settings - here you can set category Display Mode, its CMS block, whether it is Anchor (i.e. whether or not it should inherit the products in its subcategories) and the product listing sorting options;
  • Custom Design - from this tab you can select the design for this category, as well as its layout;
  • Category Products - this tab allows you to add existing products to the category
When you are done with  your new category, click Save to create it.

How to add a category image in Magento

Adding a Magento category image is simple. From the Magento admin area > Catalog > Manage Categories select the category which you want to add an image to. Then click the General Information tab and click Browse next to the Image field.
Locate the image you want to set for this category on your computer and then click Save Category to save it. The image will appear as a small thumbnail next to the Image field. You can also upload a thumbnail image for the category.


How to list all available categories in Magento

If you want to get a list of all available Magento categories, go to your Magento admin area > Catalog > Manage Categories. From the Categories menu on the left click Expand All and your whole category tree will be displayed.

Magento Price

How to manage the prices of your products in Magento

To change the price of a product, go to your Magento admin area > Catalog > Manage Products. Click on the product the price of which you want to modify and then click the Prices option available in the left menu.
And here is an explanation for the most important options above:
  • Price - the price at which you want to sell the product; this is the only required field here and, of course, the most important
  • Cost - this represents your cost for purchasing the product
  • Tier Price - through this option you can set discounts based on the quantity of products purchased
  • Special Price - through this option you can set promotional campaigns - discounts which are valid only within the period defined in Special Price From Date and Special Price To Date; this option is not affected by the quantity of purchased products

Magento Orders

How to Manage Your Order Process

In this tutorial we will explain how the Magento orders process works and how to manage  your Magento orders.
  • How to configure Magento order options
  • How to manage order emails
  • How to make an order in Magento
  • How to manage orders in Magento

How to configure Magento order options

To modify your Magento order options (checkout settings, shipping settings, payment methods, etc) you need to go to your Magento admin area > System > Configuration. The options we need are located in the Sales section in the left menu. Let's take a brief look at each of them:
  • Sales - through this option you can configure your Checkout Totals Sort Order, allow Reorder, set logo for PDF print-outs  and HTML Print View (Invoice and Packing Slip Design), set Minimum Order Amount and configure Gift Messages.
  • Sales Emails - here you can configure different emails for Order, Invoice, Shipment and Credit Memo. More info about this can be found in the Magento order email section below.
  • PDF Print-outs - this option allows you to set whether or not to display the Order ID in Header for Invoice, Shipment and Credit Memo.
  • Tax -here you can configure different Tax options - Tax Classes, Calculation Settings, tax display settings and Fixed Product Taxes.
  • Checkout - this is an important option which allows you to configure your Checkout Settings, Shopping Cart and its sidebar, as well as Payment Failed Emails.
  • Shipping Settings - here you can configure your shipping Origin and Options.
  • Shipping Methods - as the name suggests, here you can configure your shipping methods; the available methods are Flat Rate, Table Rates, Free Shipping, UPS, USPS, FedEx and DHL.
  • Google API - here you can configure your Magento for Google services - Google Analytics and Google Checkout.
  • PayPal - this option allows you to configure your shop for PayPal.
  • Payment Methods - the most important option, here you should configure the payment methods you will accept.
  • Payment Services - there is only one option to configure here - 3D Secure Credit Card Validation - this is an XML-based protocol used as an extra layer of security for online credit transactions
  • Moneybookers - a separate section for configuring your shop for Moneybookers

How to manage order emails

As we mentioned in the Magento order options section, Magento has a very nice built-in email functionality called Sales Emails which allows you to manage the emails you send to your customers when an order is processed. Before you configure your emails, you might want to add new email templates. You can do this from the admin area > System > Transactional Emails.
Now let's take a closer look at each of the options in Sales Emails:
  • Order and Order Comments - from here you can enable/disable email notifications your customers receive about orders and any comments you might have added to them. Here you can set the New Order Confirmation Email Sender, the New Order Confirmation Template (this will be used for registered users) and New Order Confirmation Template for Guest which will be sent to guest users. You can also set an email to receive a copy of the order email and select how the copy email should be sent - as Bcc or as a Separate Email.
  • Invoice and Invoice Comments - from here you can enable/disable email notifications your customers receive about invoices and any comments you might have added to these invoices. The rest of the options are the same as those for Order.
  • Shipment and Shipment Comments - this option allows you to enable/disable email notifications about shipments and shipment comments. Again, the rest of the options are the same as those for Order.
  • Credit Memo and Credit Memo Comments - from here you can enable/disable email notifications your customers receive about Credit Memos and any comments you might have added to them. Once again, the rest of the options are the same as those for Order.

How to Make an Order in Magento

The order process consists of several simple steps. You start by adding an item to the cart, then proceed to checkout, select a checkout method, fill in some billing and shipping information, select a payment method and then place the order. The whole order process can be represented as:
Add to Cart -> Process Checkout (Billing/Shipping/Payment) -> Place Order
Once the order is placed, it will show up as pending in the Magento admin area > Sales > Orders. In the next section we'll explain how to manage these orders.

How to Manage Orders in Magento

When a customer successfully completes the order process, you will receive a mail notification about the new order. You can review all your orders from the Magento admin area > Sales > Orders. In the previous section we placed an order, so let's click on it to see how it looks like.
You will notice several orange buttons at the top right of the screen. These are the actions you can take on the order:
  • Edit - this will cancel the current order and create a new one with the same details which you can then edit and submit again.
  • Cancel - cancels the order.
  • Send Email - resends the order email to the customer.
  • Hold - puts the order on hold so that you can process it another time. To do that, you need to Unhold it first.
  • Invoice - creates an invoice of the order. You need to click Submit Invoice to create it. This will change the status of the order from Pending to Processing.
  • Credit Memo - this option appears only when an invoice has been created. It allows you to create an offline refund for the order.
  • Ship - the final step of the order management process, this is the actual delivery of the product. You need to click Submit Shipment to finalize the order. Its status will be changed from Processing to Complete.
  • Reorder - allows you to submit the order again.