Skip to content

Tabs with dynamic contents

mx edited this page Apr 17, 2014 · 1 revision

Shipping tab

Moved out of mVentory_TM, presumably. Has to be a separate extension with the widgets.

Add following code into Custom Layout Update field on Custom Design tab of category's settings and set Apply To Products to Yes there.

<reference name="product.info.tabs">
  <action method="addCmsBlockAsTabByAttr">
	<alias>shipping_tab</alias>
	<code>mv_shipping_</code>
  </action>
</reference>

Set Use Parent Category Settings to Yes on child categories.

Shipping tab uses mv_shipping_ attribute to select static block.

Add values to the attributes for every static block which will be used as content of the tab. Create static block with for every attribute value, use the value as identifier of the block. Select desired value of the attribute in product's settings

Clone this wiki locally