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

#   Social Networks Plugin creates invalid urls for Pinterest

##

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

Less More

- Posts: 31
- Thank you received: 0
-
-

7 years 7 months ago [\#304723](#304723) by [geogeo](/forum/user/39057-geogeo "View geogeo's Profile")  *[Social Networks Plugin creates invalid urls for Pinterest](/forum/26-product-category-display/897109-social-networks-plugin-creates-invalid-urls-for-pinterest#304723 "Hello, if i want to display the title of the product and not the description of the product, what changes i must do to the .php file and what type of custom field should i create? Thank you in advance")* was created by *[geogeo](/forum/user/39057-geogeo "View geogeo's Profile")*

Hello,
if i want to display the title of the product and not the description of the product, what changes i must do to the .php file and what type of custom field should i create?
Thank you in advance

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcxMDktc29jaWFsLW5ldHdvcmtzLXBsdWdpbi1jcmVhdGVzLWludmFsaWQtdXJscy1mb3ItcGludGVyZXN0P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86360
- Thank you received: 14296
-
-

7 years 7 months ago [\#304725](#304725) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Social Networks Plugin creates invalid urls for Pinterest](/forum/26-product-category-display/897109-social-networks-plugin-creates-invalid-urls-for-pinterest#304725 "Hello, if i want to display the title of the product and not the description of the product, what changes i must do to the .php file and what type of custom field should i create? Thank you in advance")*

Hi,

First, please open a new topic when your question is not directly related to the topic.
In this case, I don't see the link with the invalid pinterest URLs and your customization question, so I took the liberty to move your question to a new thread.
Also, please provide more context.
I don't know which page you're talking about. The product page , the products listing, something else ?
It would be great to give the link of the page you're talking about. If you're creating a new topic, you have a field where you can put your URL and have it submitted with your thread while not visible by anyone else other than us, if you're concerned about it.

Now, on to your questions.
To know which view file to edit for a particular area, you can activate the "Display view files" setting of the Hikashop configuration. That will tell you, on any page of your website, which view files are being used. Then, you can edit them via the menu Display&gt;Views.
I'm not sure what is the link between creating a custom field, and displaying the product title and not the product description ?
I assume that if you want to add extra information to your products, you'll want to create a custom field of the table "product", and the type would most likely be "text" or "text area", but I'm already making a lot of assumptions here as I don't have any ocntext of what you're trying to do.

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

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

Less More

- Posts: 31
- Thank you received: 0
-
-

7 years 7 months ago -  7 years 7 months ago [\#304816](#304816) by [geogeo](/forum/user/39057-geogeo "View geogeo's Profile")  Replied by *[geogeo](/forum/user/39057-geogeo "View geogeo's Profile")* on topic *[Social Networks Plugin creates invalid urls for Pinterest](/forum/26-product-category-display/897109-social-networks-plugin-creates-invalid-urls-for-pinterest#304816 "Hello, if i want to display the title of the product and not the description of the product, what changes i must do to the .php file and what type of custom field should i create? Thank you in advance")*

Hello,
the problem is that when i am trying to pin a product via product page, the url is invalid. I cant pin the product because the description is very big. I attached the error. Can i display the title of the product instead of description? Or else how i can shorten the description that pinterest takes into acount, without shortening my product page's description. I assume that the problem is that pinterest is trying to use the whole description of the product as a pinterest title. Here is a link of a product page [ ](https://www.giakourtines.gr/kourtines/kourtinesramenes/product/3412-1-5-4)[ www.giakourtines.gr/kourtines/kourtinesr...s/product/3412-1-5-4](https://www.giakourtines.gr/kourtines/kourtinesramenes/product/3412-1-5-4)
[ ![pro.jpg](/forum/attachment/46376) ](/forum/attachment/46376 "pro.jpg")

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

Last edit: 7 years 7 months ago by [geogeo](/forum/user/39057-geogeo "View geogeo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcxMDktc29jaWFsLW5ldHdvcmtzLXBsdWdpbi1jcmVhdGVzLWludmFsaWQtdXJscy1mb3ItcGludGVyZXN0P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86360
- Thank you received: 14296
-
-

7 years 7 months ago [\#304822](#304822) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Social Networks Plugin creates invalid urls for Pinterest](/forum/26-product-category-display/897109-social-networks-plugin-creates-invalid-urls-for-pinterest#304822 "Hello, if i want to display the title of the product and not the description of the product, what changes i must do to the .php file and what type of custom field should i create? Thank you in advance")*

Hi,

Thank you, that's a lot more clear now.
I've added a patch on our end to limit the description to 500 characters when sending it to pinterest in order to fix the problem.
If you update your HikaShop, it would fix the problem. However, I see that you have a really old version of Hikashop.
So in that case, you might want instead to directly edit the file plugins/system/hikashopsocial/hikashopsocial.php and change the code in the function _addPinterestButton to replace $element-&gt;description by $element-&gt;name.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTcxMDktc29jaWFsLW5ldHdvcmtzLXBsdWdpbi1jcmVhdGVzLWludmFsaWQtdXJscy1mb3ItcGludGVyZXN0P3RtcGw9bWFya2Rvd24=) 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.056 seconds

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