Jump to content

How to move "AddThis" Plugin to a different place in product page ?


Recommended Posts

Hi,

I am using the AddThis plugin provided by Cubecart. I use it only at product page level. At the moment, the default position of AddThis on the storefront is just between the product description and reviews.

I would prefer to have it higher on the page, like below the price for instance. I have been looking at the files of the plugin and my skin templates and it is not obvious. There is obviously a file calling on that plugin somehow but I cannot identify it.

Would anyone know ?

Thanks

S.

Link to comment
Share on other sites

In your skin template content.product.php:

Find:

{if $SHARE}
{foreach from=$SHARE item=html}
{$html}
{/foreach}
{/if}

In the same template, a bit further down:

Find:

{foreach from=$COMMENTS item=html}
{$html}
{/foreach}

The SHARE is the array of HTML snippets that show the social media buttons, and the COMMENTS is the array of HTML snippets that show extractions of content from social media sources.

Place these where you want them to show.

Since you have edited a skin template, you may need to clear the cache (admin, Maintenance, Rebuild tab, Clear Cache).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...