Jump to content

[module]Add Pinterest Pin it button for prestashop 1.4.7


mofeewong

Recommended Posts

  • 2 weeks later...
  • 2 weeks later...

Add this to your template

 

<a href="http://pinterest.com/pin/create/button/?url={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&media={$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" class="pin-it-button" count-layout="horizontal">Pin It</a>

<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>

 

 

Thanks!!!!!!

Link to comment
Share on other sites

  • 2 weeks later...

Was looking for this. Hey, here's one for facebook and twitter:

	<iframe src="http://www.facebook.com/plugins/like.php?href={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&layout=button_count&show_faces=false vba&width=50&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:21px;" allowTransparency="true"></iframe>

	<iframe
       allowtransparency="true"
       frameborder="0"
       scrolling="no"
       src="http://platform.twitter.com/widgets/tweet_button.html?url=/Raleigh-27859.html&via=__Handbags"
       style="margin-right:20px;float:left;overflow:hidden;width:60px; height:30px;"
       ></iframe>

Link to comment
Share on other sites

  • 3 weeks later...

Add this to your template

 

<a href="http://pinterest.com/pin/create/button/?url={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&media={$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" class="pin-it-button" count-layout="horizontal">Pin It</a>

<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>

 

Can you please explain exactly in which file and where should I post this code.. Will this add Pin it button on every product page?

Link to comment
Share on other sites

  • 2 weeks later...

Pinterest code with description product:

 

 

<a href="http://pinterest.com/pin/create/button/?url={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&description={if $product->description}{$product->description}{/if}&media={$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /></a>

<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

Add this to your template

 

<a href="http://pinterest.com/pin/create/button/?url={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&media={$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" class="pin-it-button" count-layout="horizontal">Pin It</a>

<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>

 

 

Thank you! But is there a way I could edit this to use a picture other than the cover picture?

Link to comment
Share on other sites

anyone who want to add this feature to own shop can use free module for adding html code in most important places in shop. Here is the free html box module.

 

htmlbox-free-cover.png

 

How it works?

 

Install module, check place where you want to add button, and paste the correct button code like:

 

<a href="http://pinterest.com/pin/create/button/?url={$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&media={$link->getImageLink($product->link_rewrite, $cover.id_image, 'large')}" class="pin-it-button" count-layout="horizontal">Pin It</a>

<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>

 

last step is saving changes. thats all :)

Edited by vekia (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...

Hello.

I downloaded the file but when I try to install it does nothing... just some error.

I use presta 1.5.

 

The error is:

 

 

 

Erro no servidor

 

O site encontrou um erro ao recuperar http://www.tissu.com...anchorPinterest. Ele pode estar em manutenção ou configurado incorretamente.

Veja algumas sugestões:

 

 

 

Anyone can help me?

Tks.

Link to comment
Share on other sites

  • 3 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...