pinterest buttons

Questions and answers about ShopSite Custom Templates

pinterest buttons

Postby Dan » Thu Apr 05, 2012 7:26 am

Is there a way to use product tags to create Pinterest button links? I tried using [PRODUCT.Field1], [PRODUCT.MoreInfoURL] and [PRODUCT.Name] in the Pinterest button generator (http://pinterest.com/about/goodies/) and it spit out the following:

<a href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fwww.redbarnmercantile.com%2Fmedia%2Fproducts%2Fss_size1%2F%5B--%20PRODUCT.Field1%20--%5D%22&media=http%3A%2F%2Fwww.redbarnmercantile.com%2F%5B--%20PRODUCT.MoreInfoURL%20--%5D&description=%5B--%20PRODUCT.Name%20--%5D" 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>

The issue with Pinterest is that you have to supply an image file, a link and an optional description for each product.

I placed the code above in my custom template and published a more info page to try it out. The Pinterest popup worked, but the image was broken and the description window showed the [PRODUCT.Name] tag instead of the actual product name.

Any suggestions?
Dan
 
Posts: 19
Joined: Fri May 29, 2009 6:53 pm

Re: pinterest buttons

Postby insignia » Thu Apr 05, 2012 8:09 am

I haven't tried this yet, but I use lexiconn and they have a solution here for pinterest. Maybe it'll help you out.

http://www.lexiconn.com/blog/2012/03/marketing-your-shopsite-store-with-pinterest/
insignia
 
Posts: 19
Joined: Wed Aug 24, 2011 10:58 am

Re: pinterest buttons

Postby Jim » Thu Apr 05, 2012 12:05 pm

Since the code you included in your post contains sections like this %5B--%20PRODUCT.Name%20--%5D" it looks like the template is not processing the ShopSite template tag.

If the code is in an include file instead of the main product template, you need to specify the process option when you use the include statement. So use this [-- INCLUDE filename process --] instead of [-- INCLUDE filename --]
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: pinterest buttons

Postby Dan » Thu Apr 05, 2012 12:39 pm

Thank you all. And thank you Lexiconn!
Dan
 
Posts: 19
Joined: Fri May 29, 2009 6:53 pm

Re: pinterest buttons

Postby loren_d_c » Tue May 15, 2012 9:34 am

FYI, see http://support.shopsite.com/forums/viewtopic.php?f=2&t=9210&p=24500&hilit=pinterest#p24500 about the built-in pinterest button option in the latest version of ShopSite.

-Loren
loren_d_c
 
Posts: 2569
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 24 guests