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

#   product\_url not populated

##

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 3 weeks ago [\#129071](#129071) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  *[product\_url not populated](/forum/19-hikamarket/863032-product-url-not-populated#129071 "I'm putting together a Jomsocial plugin to display Hikamarket activity on the Jomsocial activity stream.  When products are added or edited I want to link back to the product from the activity. The issue I am facing is that the 'product&#95;url' field is blank and so I am not able to form the link to the product. The product&#95;canonical is also blank but I understand that this field is manually entered and I am not using it  Is it normal that the product&#95;url field is blank?  Is there an easy method available for url creation?  /DM  TIA  /DM")* was created by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")*

I'm putting together a Jomsocial plugin to display Hikamarket activity on the Jomsocial activity stream.

When products are added or edited I want to link back to the product from the activity. The issue I am facing is that the 'product_url' field is blank and so I am not able to form the link to the product. The product_canonical is also blank but I understand that this field is manually entered and I am not using it

Is it normal that the product_url field is blank?

Is there an easy method available for url creation?

/DM

TIA

/DM

---

[ deeemm.com](http://deeemm.com)

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 3 weeks ago [\#129086](#129086) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[product\_url not populated](/forum/19-hikamarket/863032-product-url-not-populated#129086 "I'm putting together a Jomsocial plugin to display Hikamarket activity on the Jomsocial activity stream.  When products are added or edited I want to link back to the product from the activity. The issue I am facing is that the 'product&#95;url' field is blank and so I am not able to form the link to the product. The product&#95;canonical is also blank but I understand that this field is manually entered and I am not using it  Is it normal that the product&#95;url field is blank?  Is there an easy method available for url creation?  /DM  TIA  /DM")*

Hi,

"product_url" is also something that the user can enter in the product edition page.
Please explain me what you want to retrieve exactly.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")**
- [![DeeEmm's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar26410.jpg)](/forum/user/26410-deeemm "View DeeEmm's Profile") Topic Author
- [ Offline](/forum/user/26410-deeemm)

Less More

- Posts: 114
- Thank you received: 14
-
- [](http://deeemm.com)
-

13 years 3 weeks ago [\#129091](#129091) by [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")  Replied by *[DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")* on topic *[product\_url not populated](/forum/19-hikamarket/863032-product-url-not-populated#129091 "I'm putting together a Jomsocial plugin to display Hikamarket activity on the Jomsocial activity stream.  When products are added or edited I want to link back to the product from the activity. The issue I am facing is that the 'product&#95;url' field is blank and so I am not able to form the link to the product. The product&#95;canonical is also blank but I understand that this field is manually entered and I am not using it  Is it normal that the product&#95;url field is blank?  Is there an easy method available for url creation?  /DM  TIA  /DM")*

Ahh OK.

I disabled most of the non product related fields from the usermarket edition as it is just something else that they could break.

My reason for wanting the URL is as follows...

In the JomSocial activity stream the activities are reported like this...

" DeeEmm uploaded a new product *ProductName* "

I want 'ProductName' to link to the product page

You can see an example here - [ ](http://fizzfab.com/community)[ fizzfab.com/community](http://fizzfab.com/community) (I'm testing it at the moment)

I'm using the onAfterProductCreate and onAfterProductUpdate methods in the plugin to trigger the Jomsocial stream API to create the activities.

Wondering why I could not get the url from the product listing I checked the database and found that the product_url fields were blank. I guessed that this was either normal or perhaps I had disabled a setting somewhere.

I've added a workaround by using the non SEF url

eg *?option=com\_hikashop&amp;ctrl=product&amp;task=show&amp;cid=**$product-&gt;product\_id***

This works fine but I would prefer to use the SEF version.

Do you know if there are any methods available to the plugin to create the SEF url?

/DM

---

[ deeemm.com](http://deeemm.com)

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 3 weeks ago [\#129092](#129092) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[product\_url not populated](/forum/19-hikamarket/863032-product-url-not-populated#129092 "I'm putting together a Jomsocial plugin to display Hikamarket activity on the Jomsocial activity stream.  When products are added or edited I want to link back to the product from the activity. The issue I am facing is that the 'product&#95;url' field is blank and so I am not able to form the link to the product. The product&#95;canonical is also blank but I understand that this field is manually entered and I am not using it  Is it normal that the product&#95;url field is blank?  Is there an easy method available for url creation?  /DM  TIA  /DM")*

Hi,

To create a SEF url, you need an "itemId" (a menu id) in order to create a nice url (and associate it to a menu).
There is no one unique SEF url, it always depends on your menu.

So you can create a SEF link with Code:

hikashop_completeLink('product&amp;task=show&amp;cid=' . $product-&gt;product_id . '&amp;itemId=' . $my_item_id):

You can also use " JRoute::_() " with full url (index.php?option...).

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [DeeEmm](/forum/user/26410-deeemm "View DeeEmm's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODYzMDMyLXByb2R1Y3QtdXJsLW5vdC1wb3B1bGF0ZWQ/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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.075 seconds

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