magento customizing

tuvinez Jul 15, 2012 07:58PM EDT

Dear Sirs.

Can i change a place where addthis buttons apear on product page?
As i see the default place is after customer review's
How can move it in another place?

Thanks.

Up 0 Rated Down
Jithin (AddThis Happiness Specialist) Aug 03, 2012 07:46AM EDT
Hi,

Please find the file "app/design/frontend/layout/default/default/sharingtool.xml". Comment out the code as shown below

<catalog_product_view>
<!-- <reference name="alert.urls">
<block type="sharingtool/share" name="addthis_sharetool" after="-" >
<action method="setTemplate"><template>addthis/sharingtool/share.phtml</template></action>
</block>
</reference>
<reference name="product.info">
<block type="sharingtool/share" name="addthis_sharetool">
<action method="setTemplate"><template>addthis/sharingtool/share.phtml</template></action>
</block>
</reference> -->
</catalog_product_view>


This will stop AddThis from appearing wherever it is showing now.

Now find the location on the template where you want the AddThis code to appear. Paste the following code there :

<?php echo $this->getLayout()->createBlock('sharingtool/share')->setBlockId('addthis_sharetool')->toHtml(); ?>

This should make AddThis appear on your chosen location.

Thanks,
Jithin Roy

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers