Skip to content

Instantly share code, notes, and snippets.

@dfelton
Created June 24, 2016 16:17
Show Gist options
  • Select an option

  • Save dfelton/23da99a4de20fe33c1822bf4d6fd5227 to your computer and use it in GitHub Desktop.

Select an option

Save dfelton/23da99a4de20fe33c1822bf4d6fd5227 to your computer and use it in GitHub Desktop.
Quick Reference guide for common (or not so common) layout XML instructions.
Each file below refers to the layout handle it may typically apply to.
<catalog_product_view>
<!-- START: Moving "Reviews" to end of the tabbed items on the product page -->
<reference name="product.info">
<action method="unsetChild"><child>reviews</child></action>
<action method="append"><child>product.reviews</child></action>
</reference>
<reference name="product.reviews">
<action method="addToParentGroup"><group>detailed_info</group></action>
</reference>
<!-- END: Moving "Reviews" to end of the tabbed items on the product page -->
</catalog_product_view>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment