Magento E-commerce Platform Q/ A

Ways to Enable or Add Custom Breadcrumbs in Magento

There are some pages in Magento with no breadcrumbs enabled by default. In order to enable it, for example, on the checkout page, open checkout.xml file stored in 'layout' folder of the current theme, and find there 'checkout_onepage_index' block.  Then add to the block this code:

Email Notification of Magento 'Contact Us' Form Submitter

The feature notifies the user who submits 'Contact Us' form on site (the notification will be delivered to the indicated by the user email address).

See the image:

248

The notification message example:

249

To enable the feature:

1. We will extend Contacts settings with the ability to Enable/ Disable notification and the ability to choose the template of the notification to send to the user.

Add file system.xml into the module folder:

Magento Tables Customization

We perform the actions with products table in the admin area, so make sure to override Mage_Adminhtml_Block_Catalog_Product_Grid block class. Class to override could be found here:

/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php

 

Secured method:  _prepareCollection delivers the products information and displays it in the table.

How to Add Custom Attributes to Custom Options in Magento

Let us add 'details' custom attribute to Custom Options for select types.

Select options are stored in the tables:

  • catalog_product_option_type_value,
  • catalog_product_option_type_title,
  • catalog_product_option_type_price.

We've added 'details' field into catalog_product_option_type_value table

The installation file comes with:

How to Create E-mail Templates in Magento

To create a custom e-mai template in Magento, you need to specify it in the config.xml file of the module.  Example: Place this code between the tags

Magento Product Ratings and Reviews

There is prebuilt product ratings and reviews functionality in Magento. By default all reviews and ratings should be approved by the store owner via Magento admin panel.

Store users can rate (review) products by clicking the link on the product page.

214

 

At the product page users see the form to leave a comment to the product and rate it by assigning it 1-5 star rating.

215

 

 

Magento Source Model

Source model serves to insert the data into the certain fields: checkboxes, multi selects, radios, selects in admin area: System- > Configuration.

 

To indicate Source Model for the field, add tag: <source_model> and define source model in it

<source_model>adminhtml/system_config_source_allregion</source_model>

The field must contain tag: <frontend_type> with one of the values: сheckbox, multi select, radio or select.

 

Magento Multi-Language

Introduction

Magento is a flexible platform to create personalized e-commerce solutions (web shops). One of Magento important features is multiple languages support. Thanks to this feature the platform usage grows all over the world. In this article you will learn how to add language/s to your Magento shop.

 

Adding another language to the website

In order to add one more (or a couple) of language/s the first thing to do is to create Store View.

173