Certificated magento

Q6.16)How does Magento actually perform sorting/paging/filtering operations?

Q6.16)How does Magento actually perform sorting/paging/filtering  operations?

  a filter is set by a http parameter - the Mage_Adminhtml_Block_Widget_Grid::_prepareCollection method checks for the filters - it loops than through all columns and tries to add the column filter to the collection

Read more

Q6.17)What protected methods are specific to adminhtml grids, and how are they used?

Q6.17)What protected methods are specific to adminhtml grids, and how are  they used?

- _prepareLayout(), _setFilterValues(), _addColumnFilterToCollection(), _setCollectionOrder(), _prepareCollection(), _decodeFilter(), _preparePage(), _prepareMassactionBlock(), _prepareMassaction(), _prepareMassactionColumn(), _prepareGrid(), _beforeToHtml(), _afterLoadCollection(), _exportCsvItem()

Read more

Q6.18) What is the standard column class in a grid, and what is its role?

Q6.18) What is the standard column class in a grid, and what is its role?

 - Mage_Adminhtml_Block_Widget_Grid_Column role: apply decorators, css, renderer, get row field, filters

Read more

Q6.19) What are column renderers used for in Magento?

Q6.19) What are column renderers used for in Magento?

         $this->addColumn('page_actions', array(             'header'    => Mage::helper('cms')->__('Action'),             'width'     => 10,             'sortable'  =>...

Read more

Q.6.22) What is the programmatic structure of mass actions?

Q.6.22) What is the programmatic structure of mass actions?

class Packed_Module_Block_Adminhtml_Cat_Grid extends Mage_Adminhtml_Block_Widget_Grid protected function _prepareMassaction()     {         $this->setMassactionIdField('cat_id');         $this->getMassactionBlock()->setFormFieldName('designengine');    ...

Read more

Q6.23)How can elements in system configuration be rendered with a custom template?

Q6.23)How can elements in system configuration be rendered with a custom  template?

I- Basic terms and elements of system configuration XML Magento provides the system configuration for you to configure your system and your modules as well. You are able to add your custom module configuration via system.xml file in the folder etc of your module folder, such as the file  app/code/local/Magestore/Ajaxcart/etc/system.xml <?xml...

Read more

Q6.24) How does the structure of system.xml relate to the rendered elements in the System Configuration view?

Q6.24) How does the structure of system.xml relate to the rendered  elements in the System Configuration view?

http://goweb.vn/kien-thuc-web-vi/thiet-ke-web/q623how-can-elements-in-system-configuration-be-rendered-wit...-918.html

Read more

Q6.26) What is the syntax for specifying the options in dropdowns and multiselects?

Q6.26) What is the syntax for specifying the options in dropdowns and  multiselects?

 yes you can create like this way add below code to system.xml   <dropdown translate="label comment">                             <label>Dropdown</label>                ...

Read more

Q6.27)Which classes are used to parse and render system configuration XML?

Q6.27)Which classes are used to parse and render system configuration XML?

system.xml is loaded by class Mage_Core_Model_Config_System and is render: by class Mage_Adminhtml_Block_System_Config_Form

Read more

Q.6.29)How does Magento store data for system configuration?

Q.6.29)How does Magento store data for system configuration?

In the database table core_config_data table with scope information. 

Read more

Q.6.30) What is the difference between Mage::getStoreConfig(...) and Mage::getConfig()->getNode(...)?

Q.6.30) What is the difference between Mage::getStoreConfig(...)  and Mage::getConfig()->getNode(...)?

Mage::getStoreConfig(...) - gets the value as a string; retrieves data from database (core_config_data) Mage::getConfig()->getNode(...) - gets the value as an object; retrieves data from configuration xml file

Read more

6.3) Define/identify basic terms and elements of ACL

6.3) Define/identify basic terms and elements of ACL

As you may know, Magento uses an Access Control Lists (ACL) to authorize and control user access within the system with the purpose of effectively managing the site. This part will demonstrate the ACL in details and guide you how to setup and authorize a backend menu. I-Define the ACL According to www.techterms.com: ACL...

Read more

Q6.33) For what purpose is the _isAllowed() method used and which class types implement it?

Q6.33) For what purpose is the _isAllowed() method used and which class  types implement it?

As you may know, Magento uses an Access Control Lists (ACL) to authorize and control user access within the system with the purpose of effectively managing the site. This part will demonstrate the ACL in details and guide you how to setup and authorize a backend menu. I-Define the ACL According to www.techterms.com: ACL...

Read more

Q6.34)What is the XML syntax for adding new menu element?

Q6.34)What is the XML syntax for adding new menu element?

http://goweb.vn/kien-thuc-web-vi/thiet-ke-web/63-define-identify-basic-terms-and-elements-of-acl--928.html

Read more

Q6.35)What is adminhtml.xml used for? Which class parses it, and which class applies it?

Q6.35)What is adminhtml.xml used for? Which class parses it, and which  class applies it?

adminhtml.xml is used for: creating admin Menus and ACLs. Parsing Class: Class Mage_Admin_Model_Config Method :loadAclResources() and __construct()   Applying Class Class Mage_Adminhtml_Controller_Action::isAllowed() Class Mage_Adminhtml_Block_Page_Menu

Read more

Q6.38) How is ACL information stored in the database?

Q6.38) How is ACL information stored in the database?

Magento stores the role in the tables: admin_role parent_id: the parent role of the current role role_type: the user role or the group role CLASS: Mage_Admin_Model_Mysql4_Roles

Read more

6.4)Describe how to enable and configure extensions

6.4)Describe how to enable and configure extensions

We will continue to explore the Adminhtml by discussing Magento extensions – the issue that always grabs a lot of attraction and interest of many people. Three main following parts will be covered in this tutorial: •Magento extensions •Decouple extensions from Magento •Install extensions from Magento...

Read more

7.0) Identify and describe standard product types (simple, configurable, bundled, etc.)

7.0) Identify and describe standard product types (simple, configurable, bundled, etc.)

Magento provides users with different product type profiles to select when creating a new product. Choosing the right product type is very important for accessing the appropriate set of features required to sell your items. This part is designed to help you understand the differences among product types and what they’re...

Read more

7.1) Create custom product types from scratch or modify existing product types

7.1) Create custom product types from scratch or modify existing product types

In the previous lession, we discovered 6 standard product types in Magento and the configuration of each one. In this part, I will guide you how to modify an existing product type and introduce how a product type interacts with the database. I-How to modify an existing product type After creating a new product type,...

Read more

7.3) Identify how custom product types interact with indexing, SQL, and underlying data structures.

7.3) Identify how custom product types interact with indexing, SQL, and underlying data  structures.

http://goweb.vn/kien-thuc-web-vi/thiet-ke-web/71-create-custom-product-types-from-scratch-or-modify-existi...-943.html

Read more

Q7.0) Which product types exist in Magento?

Q7.0) Which product types exist in Magento?

 - Magento has 6 standard product types, including: Simple product, grouped product, configurable product, virtual product, bundle product and downloadable product.

Read more

Q7.1) Which product types are implemented as part of the Mage_Catalog module, and which are not?

Q7.1) Which product types are implemented as part of the Mage_Catalog  module, and which are not?

- Mage_Catalog – simple, grouped, configurable, virtual - Mage_Bundle – bundle - Mage_Downloadable – downloadable

Read more

Q.7.2) What steps need to be taken in order to implement a custom product type?

Q.7.2) What steps need to be taken in order to implement a custom product  type?

 - product types config…..   <catalog> <product> <type> <configurable translate=”label” module=”catalog”> <label>Configurable Product</label> <model>catalog/product_type_configurable</model> <price_model>catalog/product_type_configurable_price</price_model> <composite>1</composite> <allow_product_types> <simple/> <virtual/> </allow_product_types> <index_priority>30</index_priority> <price_indexer>catalog/product_indexer_price_configurable</price_indexer> </configurable> </type> </product> </catalog>   class...

Read more

Q7.3) How do the different product types handle calculation?

Q7.3) How do the different product types handle calculation?

config.xml - <price_model>catalog/product_type_configurable_price</price_model>  

Read more

Q7.5)Which product types implement a parent-child relationship between product entities?

Q7.5)Which product types implement a parent-child relationship between  product entities?

- configurable product type – configurable(parent) – simple(child) may be grouped and bundle as well.   ———– prepareForCartAdvanced() – initialize product for add to cart process.. calls to prepareProduct() – process product and prepare options calls to prepareOptions()...

Read more

Q7.6) Which database tables are shared between product types, and which ones are specific to one product type?

Q7.6) Which database tables are shared between product types, and which  ones are specific to one product type?

- For configurable, grouped and bundle – catalog_product_relation. - Specific to one product type configurable – catalog_product_super_link.  

Read more

7.4) Identify basic concepts of price generation in Magento

7.4) Identify basic concepts of price generation in Magento

As we know, price is an important attribute of a product. However, have you known how Magento stores and calculates the price or how to adjust the price of products? In this part, we will solve these issues.    Price is the basic attribute of a product and it’s stored in the database. The price of an instance...

Read more

7.5) Modify and adjust price generation for products

7.5) Modify and adjust price generation for products

When you develop a module or custom your Magento site, if you need to adjust the price for products, you can choose one of the following methods:   • Method 1: If you want to adjust the price for a product type, you can change the configuration of that product type. For example:   <config> ... <global> ... <catalog> <product> <type> <simple...

Read more

Q7.6) Under what circumstances are product prices read from the index tables?

Q7.6) Under what circumstances are product prices read from the index tables?

The product price is only read from the index tables when you are using product collections, i.e. when you are handling several products at a time. When you get a single product, for example on the product view page, the price is generated on the fly.   And now the explanation with some code references:   When...

Read more

Q7.8) Which ways exist to specify custom prices during runtime?

Q7.8) Which ways exist to specify custom prices during runtime?

- by observer: event: catalog_product_get_final_price - setCalculatePrice = false, setPrice = x http://goweb.vn/kien-thuc-web-vi/thiet-ke-web/75-modify-and-adjust-price-generation-for-products-953.html

Read more

Q7.9) How do custom product options influence price calculation?

Q7.9) How do custom product options influence price calculation?

- if option has price value, the value is added to the final product price

Read more

Q7.10)How are product tier prices implemented and displayed?

Q7.10)How are product tier prices implemented and displayed?

- tiers are stored in the table catalog_product_entity_tier_price - if a product have tier prices magento checks the actual product qty against the tier qty - the tier block gets loaded into the product info view - if tier prices exist, the tiers are displayed as a list

Read more

7.6) Describe the Category Hierarchy Tree Structure implementation (the internal structure inside the database)

7.6) Describe the Category Hierarchy Tree Structure implementation (the internal  structure inside the database)

Category is understood as a group of products which have the same characteristics. I’ll introduce to you the category tree, the way Magento stores database of categories and how to use the category model in turn. I-Category tree   Magento designs a category by tree structure. The category tree has a root category (the...

Read more

Q7.12)How is the category hierarchy reflected in the database? Does it differ when multiple root categories are present?

Q7.12)How is the category hierarchy reflected in the database? Does it differ  when multiple root categories are present?

 The main table is catalog_category_entity. This table has some basic fields: - parent_id: used to store the parent category. This value is zero (0) if the category is the root category - path: the path to the category from the root category - children_count: the number of children category of this category

Read more