Magento Layout Files Reference

  • Uploaded by: Mehedi Hasan
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Magento Layout Files Reference as PDF for free.

More details

  • Words: 1,436
  • Pages: 20
Magento Layout Files Reference This reference documents Magento’s layout files, i.e. the XML files in a app/design/frontend///layout folder. There’s a complete list of layout handles, e.g. default, for every layout file, e.g. page.xml. More importantly, this reference covers all of the XML elements, including their attributes and common values. If possible, examples are given for each element or attribute to further clarify their usage. Please Note: This is a work in progress and is currently missing descriptions for the XML elements and attributes.

1

Layout handles for each layout file bundle.xml default catalog_category_default catalog_category_view catalog_category_layered catalog_product_compare_index catalogsearch_result_index catalogsearch_advanced_result tag_product_list wishlist_index_index wishlist_shared_index catalog_product_view PRODUCT_TYPE_simple customer_account checkout_cart_index checkout_onepage_review checkout_multishipping_addresses checkout_multishipping_shipping checkout_multishipping_overview PRODUCT_TYPE_bundle sales_order_view sales_order_invoice sales_order_shipment sales_order_creditmemo sales_order_print sales_order_printinvoice sales_order_printshipment sales_order_printcreditmemo sales_email_order_items sales_email_order_invoice_items sales_email_order_shipment_items sales_email_order_creditmemo_items catalog.xml default catalog_category_default catalog_category_layered catalog_category_layered_nochildren catalog_product_compare_index customer_account_index catalog_product_view PRODUCT_TYPE_simple PRODUCT_TYPE_configurable PRODUCT_TYPE_grouped PRODUCT_TYPE_virtual catalog_product_send catalog_product_gallery catalog_seo_sitemap catalog_seo_sitemap_category catalog_seo_sitemap_product catalog_seo_searchterm_popular catalogsearch.xml 2

default catalogsearch_result_index catalogsearch_advanced_index catalogsearch_advanced_result catalogsearch_term_popular checkout.xml default checkout_cart_index checkout_multishipping checkout_multishipping_login checkout_multishipping_address_select checkout_multishipping_address_selectbilling checkout_multishipping_address_newshipping checkout_multishipping_address_newbilling checkout_multishipping_address_editshipping checkout_multishipping_address_editaddress checkout_multishipping_address_editbilling checkout_multishipping_customer_address checkout_multishipping_addresses checkout_multishipping_shipping checkout_multishipping_billing checkout_multishipping_overview checkout_multishipping_success checkout_onepage_index checkout_onepage_progress checkout_onepage_paymentmethod checkout_onepage_shippingmethod checkout_onepage_additional checkout_onepage_review checkout_onepage_success checkout_onepage_failure cms.xml default cms_page cms_index_defaultindex cms_index_defaultnoroute contacts.xml default contacts_index_index core.xml default customer.xml default customer_logged_in customer_logged_out customer_account_login customer_account_logoutsuccess customer_account_create customer_account_forgotpassword customer_account_confirmation customer_account_edit customer_account 3

customer_account_index customer_address_index customer_address_form directory.xml catalog_category_default catalog_category_layered catalogsearch_advanced_index catalogsearch_result_index catalogsearch_advanced_result downloadable.xml customer_account downloadable_customer_products checkout_cart_index checkout_onepage_review checkout_onepage_success checkout_multishipping_addresses checkout_multishipping_shipping checkout_multishipping_overview checkout_multishipping_success sales_order_view sales_order_invoice sales_order_creditmemo sales_order_print sales_order_printinvoice sales_order_printcreditmemo sales_email_order_items sales_email_order_invoice_items sales_email_order_creditmemo_items PRODUCT_TYPE_downloadable giftmessage.xml giftmessage_index_edit giftmessage_index_save giftmessage_index_remove googleanalytics.xml default googlecheckout.xml checkout_cart_index googlecheckout_redirect_redirect googleoptimizer.xml catalog_product_view catalog_category_default catalog_category_layered cms_page checkout_cart_index checkout_onepage_index checkout_onepage_success checkout_multishipping_success checkout_multishipping customer_account_create newsletter.xml default customer_account 4

customer_account_index newsletter_manage_index page.xml default print paypal.xml checkout_cart_index paypal_express_review paypal_express_review_details paypaluk.xml checkout_cart_index paypaluk_express_review paypaluk_express_review_details poll.xml default customer_account_index productalert.xml catalog_product_view reports.xml default review.xml customer_account customer_account_index reviews review_product_list review_product_view review_customer_index review_customer_view rss.xml default rss_index_index rss_index_nofeed rss_index_wishlist rss_catalog_new rss_catalog_special rss_catalog_salesrule rss_catalog_tag rss_catalog_notifystock rss_catalog_review rss_catalog_category rss_order_new rss_order_status sales.xml customer_logged_in checkout_onepage_index checkout_onepage_reorder customer_account customer_account_index sales_order_history sales_order_view sales_order_invoice sales_order_shipment 5

sales_order_creditmemo sales_order_reorder sales_order_print sales_order_printinvoice sales_order_printshipment sales_order_printcreditmemo sales_email_order_items sales_email_order_invoice_items sales_email_order_shipment_items sales_email_order_creditmemo_items sendfriend.xml sendfriend_product_send shipping.xml shipping_tracking_ajax shipping_tracking_popup tag.xml default customer_account customer_account_index catalog_product_view tag_list_index tag_product_list tag_customer_index tag_customer_view tag_customer_edit weee.xml checkout_cart_index checkout_onepage_index checkout_multishipping customer_logged_in wishlist.xml default customer_account customer_account_index wishlist_index_index wishlist_index_share wishlist_shared_index

General XML elements and attributes reference Attributes name

Example 6

bundle bundle/checkout_cart_item_renderer


action Attributes method •

addPriceBlockType: bundlebundle/catalog_produc t_price



addItemRender: bundlebundle/checkout_cart_item _renderer< /action>



addItem: skin_jsjs/bundle.js



insert: product.info.bundle.options



setItemLimit: bundle4



setImgSrc: <src>images/media/col_left_callout.jpg



setImgAlt: Our customer service is available 24/7. Call us at (800) DEMO-NUMBER.



setLinkUrl: checkout/cart



addLink: Site Map



setDefaultListPerPage: 4



setDefaultGridPerPage: 9



addPagerLimit: <mode>list6



setToolbarBlockName: product_list_toolbar



addReviewSummaryTemplate: default