Support for integrate attachament extension in new tab in product page

Hi,

I need support for the integration of this extension in one separate tab in product page.

In documentation of extension is this text for create tab:

"Another frequent request with this module is option to integrate it into design of currently popular themes like … Since all those themes have tabs on product details page it is quite logical to add one more tab and set documents to appear there.To do that open theme layout file (it should be catalog.xml) find part where tabs are generated and add new tab. Product documents block data can be found in plugin layout file: \app\design\frontend\default\default\layout\produc t_documents.xml

New code should be something like this:
<action method=

5 answers

Profile photo of Saguaros 0.00 $tone August 7, 2014
Public

Hi You can find the catalog.xml file of our JM Bookshop theme in this directory: /app/design/frontend/default/jm_travelgear/layout/ and follow documentation of that 3rd party extension to make change.

Then clear magento cache.

#1
Profile photo of Viorel Ionescu 0.00 $tone August 13, 2014
Public

Hi You can find the catalog.xml file of our JM Bookshop theme in this directory: /app/design/frontend/default/jm_travelgear/layout/ and follow documentation of that 3rd party extension to make change.

Then clear magento cache.

Hi,

I try but give white page in product page in frontend, I need support for code xml that I need to add before and after code of extension in catalog.xml and line where to add.

what code I need to add before and after this code?

code of extension:
<action method=”addTab” translate=”title” module=”product_documents”><alias>documents</alias><title>Product documents</title><block>product_documents/documents</block><template>product_documents/documents.phtml</template></action>

Thanks

#2
Profile photo of Saguaros 0.00 $tone August 13, 2014
Public

Hi

When facing problem with the white page, please try to enable the error reporting so that you can see the error message and you will know where the error comes from. You can enable error reporting by:
-- Open ‘index.php’ file in root folder and uncomment this line of code:

PHP Code:

 #ini_set('display_errors', 1); 




-- Go to /root/errors/ folder and rename "local.xml.sample" file to local.xml

what code I need to add before and after this code?

The ‘before’ or ‘after’ attributes should be placed in <block> tab. For i.e:

PHP Code:

            <block type="core/template" name="right.permanent.callout"  template="callouts/right_col.phtml" after="catalog.compare.sidebar">
                <
action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
                <
action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (555555-0123.</alt></action>
                <
action method="setLinkUrl"><url>checkout/cart</url></action>
            </
block



#3
Profile photo of Viorel Ionescu 0.00 $tone August 13, 2014
Public

I’m not refer to atribute before and after, is need to put just code of extension or is need to add more code xml to create tab for attachament extension?

please give me the line number of code where to put the code of extension, and if posible please one example how wiil need to be the code in catalog.xml

#4
Profile photo of Saguaros 0.00 $tone August 14, 2014
Public

Hi You can go to file: \app\design\frontend\default\jm_book\layout\catalo g.xml

and look for these 2 blocks which display tabs in product details page:

Code:

<block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
<block type="catalog/product_view_description" name="product.description" as="description" template="catalog/product/view/description.phtml">
<action method="addToParentGroup"><group>detailed_info</group></action>
</block>

then try to add your own code there.

#5

Please login or Register to Submit Answer

Written By

Comments