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

#   Multiple categories Facebook Like issue

##

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

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 6 months ago [\#49071](#49071) by [hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")  *[Multiple categories Facebook Like issue](/forum/3-bug-report/49071-multiple-categories-facebook-like-issue#49071 "Hi,  I have a scenario concerning the Facebook Like.  I had one book product mapped to multiple categories. For example, Book A is mapped to two categories: - Category #1 = Business Book - Category #2 = Finance Book  For instance, when I tested the Facebook Like on the Book A page listed under Business Book category, it will show as &quot;1 user like&quot;. But when you switch over to the same Book A page listed under Finance Book category, then the &quot;1 user like&quot; doesn't appear any longer. It seems as if both product pages are totally unrelated. This would be difficult to promote the book in terms of social media because some customers might land in the Book A page either under Business category or Finance category. Then we might end up with like split Facebook Likes.  Is there any workaround to this issue?")* was created by *[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")*

Hi,

I have a scenario concerning the Facebook Like.

I had one book product mapped to multiple categories. For example, Book A is mapped to two categories:
- Category #1 = Business Book
- Category #2 = Finance Book

For instance, when I tested the Facebook Like on the Book A page listed under Business Book category, it will show as "1 user like". But when you switch over to the same Book A page listed under Finance Book category, then the "1 user like" doesn't appear any longer. It seems as if both product pages are totally unrelated. This would be difficult to promote the book in terms of social media because some customers might land in the Book A page either under Business category or Finance category. Then we might end up with like split Facebook Likes.

Is there any workaround to this issue?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80OTA3MS1tdWx0aXBsZS1jYXRlZ29yaWVzLWZhY2Vib29rLWxpa2UtaXNzdWU/dG1wbD1tYXJrZG93bg==) 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 6 months ago [\#49168](#49168) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Multiple categories Facebook Like issue](/forum/3-bug-report/49071-multiple-categories-facebook-like-issue#49168 "Hi,  I have a scenario concerning the Facebook Like.  I had one book product mapped to multiple categories. For example, Book A is mapped to two categories: - Category #1 = Business Book - Category #2 = Finance Book  For instance, when I tested the Facebook Like on the Book A page listed under Business Book category, it will show as &quot;1 user like&quot;. But when you switch over to the same Book A page listed under Finance Book category, then the &quot;1 user like&quot; doesn't appear any longer. It seems as if both product pages are totally unrelated. This would be difficult to promote the book in terms of social media because some customers might land in the Book A page either under Business category or Finance category. Then we might end up with like split Facebook Likes.  Is there any workaround to this issue?")*

I suppose that it's because the category_pathway parameter is different in the URL of the product page.
You can turn on the "simplified breadcrumb" option of the configuration and it will remove that parameter.

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

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

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 6 months ago [\#49195](#49195) by [hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")  Replied by *[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")* on topic *[Re: Multiple categories Facebook Like issue](/forum/3-bug-report/49071-multiple-categories-facebook-like-issue#49195 "Hi,  I have a scenario concerning the Facebook Like.  I had one book product mapped to multiple categories. For example, Book A is mapped to two categories: - Category #1 = Business Book - Category #2 = Finance Book  For instance, when I tested the Facebook Like on the Book A page listed under Business Book category, it will show as &quot;1 user like&quot;. But when you switch over to the same Book A page listed under Finance Book category, then the &quot;1 user like&quot; doesn't appear any longer. It seems as if both product pages are totally unrelated. This would be difficult to promote the book in terms of social media because some customers might land in the Book A page either under Business category or Finance category. Then we might end up with like split Facebook Likes.  Is there any workaround to this issue?")*

Hi Nicolas,

Regardless whether I turn on or off the "simplified breadcrumb". The result is still the same. The Facebook Like only appears in one category, instead of two.

Here's the URLs of the same product Book A but mapped under two different categories:

**Book A mapped under Business category**
[ www.mysite.com/Business-Books/product/show/23-myproduct](http://www.mysite.com/Business-Books/product/show/23-myproduct)
[ www.mysite.com/index.php?option=com\_hika...=myproduct&amp;task=show](http://www.mysite.com/index.php?option=com_hikashop&Itemid=189&cid=23&ctrl=product&lang=en&name=myproduct&task=show)

*Itemid=189 refers to the menu itemID. cid=23 refers to the product ID under Hikashop.

**Book A mapped under Finance category**
[ www.mysite.com/Finance-Books/product/show/23-myproduct](http://www.mysite.com/Finance-Books/product/show/23-myproduct)
[ www.mysite.com/index.php?option=com\_hika...=myproduct&amp;task=show](http://www.mysite.com/index.php?option=com_hikashop&Itemid=195&cid=23&ctrl=product&lang=en&name=myproduct&task=show)

*Itemid=195 refers to the menu itemID. cid=23 refers to the product ID under Hikashop.

Could it be since both are different URLs, that's why Facebook Like is taking it as two split different pages? Therefore if I "Facebook Like" Book A in Business category, the same "Facebook Like" won't be reflected in Book A in Finance category.

Here's my setup:
- I setup the product categories under a menu. Category menu --&gt; Business Books, Finance Books.

I understand that the reason the same product has two different URLs because you all wanted to do the Breadcrumb thing. But in my case, it would cause duplicate issue in terms of the Facebook Like due to different URLs. Will there be any solution where it points directly to the product instead? Even it means not having the breadcrumb trails, I don't mind taking out the breadcrumb as it's not really that important on my site.

Otherwise, do you have any other workaround for this issue? Greatly appreciate your feedback.

Thanks.

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

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

Less More

- Posts: 50
- Thank you received: 1
-
-

14 years 6 months ago [\#49196](#49196) by [hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")  Replied by *[hawkeyentjc](/forum/user/6372-hawkeyentjc "View hawkeyentjc's Profile")* on topic *[Re: Multiple categories Facebook Like issue](/forum/3-bug-report/49071-multiple-categories-facebook-like-issue#49196 "Hi,  I have a scenario concerning the Facebook Like.  I had one book product mapped to multiple categories. For example, Book A is mapped to two categories: - Category #1 = Business Book - Category #2 = Finance Book  For instance, when I tested the Facebook Like on the Book A page listed under Business Book category, it will show as &quot;1 user like&quot;. But when you switch over to the same Book A page listed under Finance Book category, then the &quot;1 user like&quot; doesn't appear any longer. It seems as if both product pages are totally unrelated. This would be difficult to promote the book in terms of social media because some customers might land in the Book A page either under Business category or Finance category. Then we might end up with like split Facebook Likes.  Is there any workaround to this issue?")*

Sorry, forget to mention. The domain [ www.mysite.com](http://www.mysite.com) is not my real website name. Just putting it there as a dummy name. So don't have to click on the link.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80OTA3MS1tdWx0aXBsZS1jYXRlZ29yaWVzLWZhY2Vib29rLWxpa2UtaXNzdWU/dG1wbD1tYXJrZG93bg==) 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 6 months ago [\#49285](#49285) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Multiple categories Facebook Like issue](/forum/3-bug-report/49071-multiple-categories-facebook-like-issue#49285 "Hi,  I have a scenario concerning the Facebook Like.  I had one book product mapped to multiple categories. For example, Book A is mapped to two categories: - Category #1 = Business Book - Category #2 = Finance Book  For instance, when I tested the Facebook Like on the Book A page listed under Business Book category, it will show as &quot;1 user like&quot;. But when you switch over to the same Book A page listed under Finance Book category, then the &quot;1 user like&quot; doesn't appear any longer. It seems as if both product pages are totally unrelated. This would be difficult to promote the book in terms of social media because some customers might land in the Book A page either under Business category or Finance category. Then we might end up with like split Facebook Likes.  Is there any workaround to this issue?")*

So your problem is that you're using two different menus to access the same content. In joomla, each menu's id is used in the URLs (the Itemid parameter) so that joomla can determine which menu to call.
Without that parameter in the URLs, joomla wouldn't know that and it wouldn't work properly. So it's more complex than deactivating the breadcrumb system.

What you will have to do is to edit the file plugins/content/hikashopsocial.php and change the line:
$this-&gt;meta='&lt;meta property="og:url" content="'.hikashop_currentURL().'" /&gt;';

to:
$this-&gt;meta='&lt;meta property="og:url" content="'.hikashop_completeLink('product&amp;task=show&amp;cid='.$product-&gt;product_id).'" /&gt;';

That should allow you to have always the same URL for a product given to facebook.

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

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