[Skip to main content](#vessel-content)

#   Adding a "Pin it" Pinterest link to Product Pages

##

- **[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")**
- [![jacorr27's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/626-jacorr27 "View jacorr27's Profile") Topic Author
- [ Offline](/forum/user/626-jacorr27)

Less More

- Posts: 136
- Thank you received: 1
-
-

14 years 5 months ago [\#52140](#52140) by [jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")  *[Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#52140 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")* was created by *[jacorr27](/forum/user/626-jacorr27 "View jacorr27's Profile")*

Hi all,

Does anyone know of a way to include a "Pin It" button to my product pages?

I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.

Any help would be greatly appreciated!

Cheers

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

14 years 5 months ago [\#52218](#52218) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#52218 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Hi,

You can add it in the file "show_default" of the view "product" via the menu Display-&gt;Views and it will be added automatically to all the product pages.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[maison05](/forum/user/6619-maison05 "View maison05's Profile")**
- [![maison05's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6619-maison05 "View maison05's Profile")
- [ Offline](/forum/user/6619-maison05)

Less More

- Posts: 32
- Thank you received: 1
-
-

14 years 5 months ago [\#52271](#52271) by [maison05](/forum/user/6619-maison05 "View maison05's Profile")  Replied by *[maison05](/forum/user/6619-maison05 "View maison05's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#52271 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

> nicolas wrote: Hi,
>
> You can add it in the file "show\_default" of the view "product" via the menu Display-&gt;Views and it will be added automatically to all the product pages.

Hi Nicolas,

I've added the standard Pinterest link to the product -&gt; show_default, together Google, Twitter and Facebook. But the problem is that the standard link requires an image and url link.

Is there any way to hack the standard Pinterest link so that it grabs images and url from the product page?

To show current page url:
Code:

&lt;?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } ?&gt;

AND
Code:

&lt;?php echo curPageURL(); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14296
-
-

14 years 5 months ago [\#52273](#52273) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#52273 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

You can just call the function hikashop_currentURL(); and you will get the current URL.
The main image URL can be retrieved like that:
$image = reset($this-&gt;element-&gt;images);
echo $this-&gt;image-&gt;uploadFolder_url . $image-&gt;file_path;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bluetonguedesigns](/forum/user/4156-bluetonguedesigns "View bluetonguedesigns's Profile")**
- [![bluetonguedesigns's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4156.png)](/forum/user/4156-bluetonguedesigns "View bluetonguedesigns's Profile")
- [ Offline](/forum/user/4156-bluetonguedesigns)

Less More

- Posts: 121
- Thank you received: 0
-
-
-

14 years 5 months ago [\#52723](#52723) by [bluetonguedesigns](/forum/user/4156-bluetonguedesigns "View bluetonguedesigns's Profile")  Replied by *[bluetonguedesigns](/forum/user/4156-bluetonguedesigns "View bluetonguedesigns's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#52723 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Would someone like to share exactly the code you used, and where you put it and how you think it works etc so others may be able to also easily do this?

Be a nice feature to have built in I think.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")**
- [![nowherenowhere's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4234.png)](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")
- [ Offline](/forum/user/4234-nowherenowhere)

Less More

- Posts: 152
- Thank you received: 1
-
- [](http://www.originate.co.za)
-

14 years 4 months ago [\#53636](#53636) by [nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")  Replied by *[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#53636 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Yes this would be great to know how to do, or to add as a default in an upcoming release. Please keep me posted.

---

Believe in Better

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[maison05](/forum/user/6619-maison05 "View maison05's Profile")**
- [![maison05's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6619-maison05 "View maison05's Profile")
- [ Offline](/forum/user/6619-maison05)

Less More

- Posts: 32
- Thank you received: 1
-
-

14 years 4 months ago -  14 years 4 months ago [\#56456](#56456) by [maison05](/forum/user/6619-maison05 "View maison05's Profile")  Replied by *[maison05](/forum/user/6619-maison05 "View maison05's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#56456 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

For those interested, I finally figured out how to add Pinterest onto the product page.

Here's the instructions:
1) Go to: Display-&gt;Views, under all templates, look for your current template. Then look for "show_default" of the front end view "product".
2) Look for this code: Code:

&lt;?php $pluginsClass = hikashop_get('class.plugins'); $plugin = $pluginsClass-&gt;getByName('content', 'hikashopsocial'); if (@ $plugin-&gt;published &#124;&#124; @ $plugin-&gt;enabled) { echo '{hikashop_social}'; } ?&gt;

3) Below that, add the follow code: Code:

&lt;span class="_hikashop_pinterest"&gt;&lt;a href="http://pinterest.com/pin/create/button/?url=&lt;?php echo hikashop_currentURL(); ?&gt;&amp;media=&lt;?php $image = reset($this-&gt;element-&gt;images); echo $this-&gt;image-&gt;uploadFolder_url . $image-&gt;file_path; ?&gt;&amp;description=ADD_YOUR_DESCRIPTION_HERE" class="pin-it-button" count-layout="horizontal"&gt;&lt;img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" /&gt;&lt;/a&gt;&lt;/span&gt;

4) Where it says ADD_YOUR_DESCRIPTION_HERE, make sure all ",", ".", "?", "#", "$", "&amp;", etc, are in html codes.
5) To control the CSS for Pinterest, add: ._hikashop_pinterest {} to your template CSS and add in the appropriate CSS controls.

Good luck!

Last edit: 14 years 4 months ago by [maison05](/forum/user/6619-maison05 "View maison05's Profile").

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Dibben](/forum/user/6788-dibben "View Dibben's Profile")**
- [![Dibben's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6788-dibben "View Dibben's Profile")
- [ Offline](/forum/user/6788-dibben)

Less More

- Posts: 377
- Thank you received: 7
-
-

12 years 6 months ago [\#154865](#154865) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  Replied by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#154865 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Does this still work for anyone? I get the following message (attached) the image is full but it looks like it needs the full path, i have tried replacing $this-&gt;image-&gt;uploadFolder_url with the full url but it doesn't seem to work, is there a way i can add the full url so that the image is shown?

Any help appreciated.

- [ ![he485893.jpg](/forum/attachment/17094) ](/forum/attachment/17094 "he485893.jpg") [ ](/forum/attachment/17094?download=1 "he485893.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Dibben](/forum/user/6788-dibben "View Dibben's Profile")**
- [![Dibben's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6788-dibben "View Dibben's Profile")
- [ Offline](/forum/user/6788-dibben)

Less More

- Posts: 377
- Thank you received: 7
-
-

12 years 6 months ago [\#154868](#154868) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  Replied by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#154868 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Just in case anyone else needs it i find these two work well as print and email functions / icons

&lt;a class="email" title="Email a friend" href="#" onclick="javascript:window.location='mailto:?subject=Interesting information&amp;body=I thought you might find this information interesting: ' + window.location;"&gt;&lt;img src="images/email-icon.jpg" alt="Email a friend"&gt;&lt;/a&gt;

&lt;a href="javascript:if(window.print)window.print()"&gt;&lt;img src="images/print.jpg" alt="Print"&gt;&lt;/a&gt;

(to go just below the pinterest code then swap images with your own...)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Dibben](/forum/user/6788-dibben "View Dibben's Profile")**
- [![Dibben's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6788-dibben "View Dibben's Profile")
- [ Offline](/forum/user/6788-dibben)

Less More

- Posts: 377
- Thank you received: 7
-
-

12 years 5 months ago [\#156360](#156360) by [Dibben](/forum/user/6788-dibben "View Dibben's Profile")  Replied by *[Dibben](/forum/user/6788-dibben "View Dibben's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#156360 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

I have updated this code and this is now what works for me:

&lt;a href="//www.pinterest.com/pin/create/button/?url=?url=&lt;?php echo hikashop_currentURL(); ?&gt;&amp;media=&lt;?php $image = reset($this-&gt;element-&gt;images); echo $this-&gt;image-&gt;uploadFolder_url . $image-&gt;file_path; ?&gt;&amp;description=ADD_YOUR_DESCRIPTION_HERE" data-pin-do="buttonPin" data-pin-config="none"&gt;&lt;img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /&gt;&lt;/a&gt;
&lt;!-- Please call pinit.js only once per page --&gt;
&lt;script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile"), [crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")**
- [![crazywazza's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8829-crazywazza "View crazywazza's Profile")
- [ Offline](/forum/user/8829-crazywazza)

Less More

- Posts: 24
- Thank you received: 0
-
-

12 years 5 months ago [\#157805](#157805) by [crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")  Replied by *[crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#157805 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

> Dibben wrote: I have updated this code and this is now what works for me:
>
> &lt;a href="//www.pinterest.com/pin/create/button/?url=?url=&lt;?php echo hikashop\_currentURL(); ?&gt;&amp;media=&lt;?php $image = reset($this-&gt;element-&gt;images); echo $this-&gt;image-&gt;uploadFolder\_url . $image-&gt;file\_path; ?&gt;&amp;description=ADD\_YOUR\_DESCRIPTION\_HERE" data-pin-do="buttonPin" data-pin-config="none"&gt;&lt;img src="//assets.pinterest.com/images/pidgets/pinit\_fg\_en\_rect\_gray\_20.png" /&gt;&lt;/a&gt;
> &lt;!-- Please call pinit.js only once per page --&gt;
> &lt;script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;

Thank you for this. Is there any way that I can include my product code into the description when someone pins one of my products?
Also 300x300 appears below the image. I cannot work out where it is getting it from or how to remove that.

Thanks in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#158014](#158014) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#158014 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Hi,

To display the product code, if the previous code is working fine, you can use that code: Code:

&lt;a href="//www.pinterest.com/pin/create/button/?url=?url=&lt;?php echo hikashop_currentURL(); ?&gt;&amp;media=&lt;?php $image = reset($this-&gt;element-&gt;images); echo $this-&gt;image-&gt;uploadFolder_url . $image-&gt;file_path; ?&gt;&amp;description=&lt;?php echo $this-&gt;element-&gt;product_code; ?&gt; ADD_YOUR_DESCRIPTION_HERE" data-pin-do="buttonPin" data-pin-config="none"&gt;&lt;img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /&gt;&lt;/a&gt; &lt;!-- Please call pinit.js only once per page --&gt; &lt;script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;

Regarding the 300x300, it don't seem to come from that code, could you give a link to the page in question in order to have more clues ?

The following user(s) said Thank You: [crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")**
- [![crazywazza's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8829-crazywazza "View crazywazza's Profile")
- [ Offline](/forum/user/8829-crazywazza)

Less More

- Posts: 24
- Thank you received: 0
-
-

12 years 5 months ago [\#158040](#158040) by [crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")  Replied by *[crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#158040 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Thank you Xavier for your time. I put the code that you gave me in, but nothing changed. I still just have a product name but no product code when I pin it.
The 300x300 I was referring to I have discovered is Pinterest showing the size of the image.

A good link to see what I am talking about is : [ www.douglasjones.co.za/index.php/compone...roduct/1607-orchidea](http://www.douglasjones.co.za/index.php/component/hikashop/product/1607-orchidea)

Thanks for your efforts

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#158042](#158042) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#158042 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Just a question, why not use the HikaShop social plugin ?
It allow to display that pinterest button, and in this plugin change the part for the description content to add the product code.

Else thanks to try: Code:

&lt;a href="//www.pinterest.com/pin/create/button/?url=?url=&lt;?php echo hikashop_currentURL(); ?&gt;&amp;media=&lt;?php $image = reset($this-&gt;element-&gt;images); echo $this-&gt;image-&gt;uploadFolder_url . $image-&gt;file_path; ?&gt;&amp;description=&lt;?php echo htmlspecialchars(strip_tags($this-&gt;element-&gt;product_code.' - '.$this-&gt;element-&gt;product_description); ?&gt;" data-pin-do="buttonPin" data-pin-config="none"&gt;&lt;img src="//assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png" /&gt;&lt;/a&gt; &lt;!-- Please call pinit.js only once per page --&gt; &lt;script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;

The following user(s) said Thank You: [crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")**
- [![crazywazza's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8829-crazywazza "View crazywazza's Profile")
- [ Offline](/forum/user/8829-crazywazza)

Less More

- Posts: 24
- Thank you received: 0
-
-

12 years 5 months ago [\#158357](#158357) by [crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")  Replied by *[crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#158357 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Hi Xavier,

Thank you for your suggestion. I was not aware of the social plugin, and it works well.

However with the pinterest button, it posts the product perfectly, but in Pinterest when it is posted it just shows "Product Code:" without the product code in it. Any suggestions

Thanks for the time.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#158383](#158383) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#158383 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Hi,

Do you mean with the plugin it display just product code without the code of the product in Pinterest ?
Does it work with the previous code you were using ? If it is, you can use the previous code.

With the pinterest plugin, that should not display product code at all, do you have edited the plugin content ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")**
- [![crazywazza's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8829-crazywazza "View crazywazza's Profile")
- [ Offline](/forum/user/8829-crazywazza)

Less More

- Posts: 24
- Thank you received: 0
-
-

12 years 5 months ago [\#158480](#158480) by [crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")  Replied by *[crazywazza](/forum/user/8829-crazywazza "View crazywazza's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#158480 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Hello Xavier

I have not changed any of the plugin content.

When I click on Pin It, it takes me to the Pinterest window and has the picture of the product and below that its says Product Code:. I would like to work out how to get it to add the product code as well.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 5 months ago [\#158657](#158657) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Re: Adding a "Pin it" Pinterest link to Product Pages](/forum/2-general-talk-about-hikashop/52140-adding-a-pin-it-pinterest-link-to-product-pages#158657 "Hi all,  Does anyone know of a way to include a &quot;Pin It&quot; button to my product pages?  I have tried using the standard code supplied by Pinterest, but it requires an image to be hardcoded and as I update products very regularly I'd prefer not to have to update the code for each product.  Any help would be greatly appreciated!  Cheers")*

Hi there,

It looks like this specific product-pin is something that was not available when we developed our Pinterest integration.
That's why you don't have this information. However, looking at their documentation, it looks like it can work with the facebook open graph system which means that if you enable the facebook button it should work.

Let me know how it goes so we can adapt the code!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzUyMTQwLWFkZGluZy1hLXBpbi1pdC1waW50ZXJlc3QtbGluay10by1wcm9kdWN0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.121 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
