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

#   MyMapsLocation and Hikamarket product and vendor page URLs

##

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

Less More

- Posts: 99
- Thank you received: 0
-
-

8 years 8 months ago -  8 years 8 months ago [\#288958](#288958) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#288958 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")* was created by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")*

-- HikaShop version -- : 3.3.0
-- HikaMarket version -- : 2.0.1
-- Joomla version -- : 3.8.5
-- PHP version -- : 7.1.0
-- Browser(s) name and version -- : CHROME
-- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation

Hello,

Following this topic: [ www.hikashop.com/support/forum/20-market...dor-show.html#288932](https://www.hikashop.com/support/forum/20-market-feature-requests/875590-edit-component-hikamarket-vendor-show.html#288932)
I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited.
Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).

Here is the response from the Joomunited support:
This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those.
for there function the reference i used is following

components\com_mymaplocations\helpers\mymaplocations.php

geturllink function Code:

if($item-&gt;component == "com_hikamarket") { $furl='product&amp;task=show&amp;cid='.(int)$item-&gt;product_id.'&amp;name='.$item-&gt;alias; if($globalmenu) { $furl.='&amp;Itemid='.$globalmenu; } $url =hikashop_completeLink($furl); }

Could you please share the references needed for both the product and the vendor page links ?

Regards,

Last edit: 8 years 8 months ago by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile"). Reason: Just add code tags

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkzOTc5LW15bWFwc2xvY2F0aW9uLWFuZC1oaWthbWFya2V0LXByb2R1Y3QtYW5kLXZlbmRvci1wYWdlLXVybHM/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 8 months ago [\#288959](#288959) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#288959 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

Hello,

I gave several times the required code to JoomUnited team so they can generate good SEF urls for vendor pages.
First time was in 2014 and last time was in an email on October 12 2017.
It's very sad that they do not use the code I gave them, many times.

Unfortunately I only provide support for my own components.
If the JoomUnited team wants to fix the SEF issue, they can use the code I already gave them.
But I will stop repeating myself again and again. They got the solution for more than 3 years now ; rest is not up to me !

Regards,

---

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

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

8 years 8 months ago -  8 years 8 months ago [\#289050](#289050) by [guanio.ramon@gmail.com](/forum/user/53017-guanio-ramon-gmail-com "View guanio.ramon@gmail.com's Profile")  Replied by *[guanio.ramon@gmail.com](/forum/user/53017-guanio-ramon-gmail-com "View guanio.ramon@gmail.com's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289050 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

hi Jerome
I am the developer of my map location working with this client,I am so thankful for your reply.the code i use is following Code:

require_once JPATH_ADMINISTRATOR.'/components/com_hikashop/helpers/helper.php'; $config =@hikashop::config(); $menusClass = hikashop_get('class.menus'); $menu_id = $menusClass-&gt;getPublicMenuItemId(); $globalmenu=$menu_id; $furl='product&amp;task=show&amp;cid='.(int)$item-&gt;product_id.'&amp;name='.$item-&gt;alias; if($globalmenu) { $furl.='&amp;Itemid='.$globalmenu; } $url =hikashop_completeLink($furl);

still he is getting issue with this url.is there any enhancement thay i need to do so i can generate the url properly?

Last edit: 8 years 8 months ago by [guanio.ramon@gmail.com](/forum/user/53017-guanio-ramon-gmail-com "View guanio.ramon@gmail.com's Profile").

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

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

Less More

- Posts: 99
- Thank you received: 0
-
-

8 years 8 months ago -  8 years 8 months ago [\#289051](#289051) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  Replied by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289051 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

Hello,

Please see the response from Joomunited just above,

Otherwise, I don't think it's related to mymapslocation... Could you please at least take a look on the vendor page "chef-profile/vendor/show/70-kimberly"? Even here the URLs for the products are wrong (without "homemade", from the HikaShop default menu &gt; HikaShop » Products listing) and the products with the correct URL in the list on the home page (mymapslocation) are not there.

By the way, is it possible to remove the "vendor/show/" ?

Regards,

Last edit: 8 years 8 months ago by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile"). Reason: Response same time than Joomunited.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkzOTc5LW15bWFwc2xvY2F0aW9uLWFuZC1oaWthbWFya2V0LXByb2R1Y3QtYW5kLXZlbmRvci1wYWdlLXVybHM/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 8 months ago [\#289052](#289052) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289052 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

Here a message send by Nicolas on 16/10/2017 :

> Duplicate URL issues is not something you'll be able to fix with that or with your module. At least not completely.
> You get duplicate URLs because the users are able to access to the same product from different modules/menu items.
> The main solution to fix that is for the merchant to enter a canonical URL in their products in order to define the main URL to use for the product page.
>
> If you then use hikashop\_contentLink to generate your URL, it will automatically pickup the canonical URL to use that link if the "force canonical URL on listing" option of HikaShop is activated. But that won't help with duplicate content SEO errors. Just having a canonical URL in the product is enough. It will just make the module more consistent with how HikaShop works.
>
> Also, regarding the menu id you can use in the URL that you give to the hikashop\_contentLink function, the best is to get the id of main menu item of the shop. However, you can't guess it with code. That's why HikaShop modules and plugins which need to generate product page links have a "menu"/"menu item"/"item id" option where the merchant can select/enter the id of a menu item so that he can say which ones he want the module/plugin to use. That can help with duplicate content errors, but it's not an complete solution since it's still possible to have duplicate URLs with different menu items pointing to the same product page. The best is to set a canonical URL in the products.
>
> Now regarding the getPublicMenuItemId function, it's a function which will return the id of a random menu item of HikaShop on your website. It's useful when your merchant didn't configure the "menu"/"menu item"/"item id" setting of your module, so that you can still generate a valid URL, which won't end in a 404 error, but that won't help for duplicate content errors and duplicate URLs.
> Also instead of @hikashop::config(); you should use hikashop\_config();

Please note that the question is related to HikaShop and not HikaMarket.

---

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

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

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

Less More

- Posts: 99
- Thank you received: 0
-
-

8 years 8 months ago [\#289085](#289085) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  Replied by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289085 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

canonical URL is not something I would like to use except if it could be automatic and hidden from the vendors? I don't really want to add another field and the vendors to think about it...

Here is what I used as modules/menu items:
**Menu**
Shop (Alias: homemade)
HikaShop » Products listing
Chef Profile (Alias: chef-profile)
HikaMarket » Vendors listing

**Module**
HikaShop Content Module
*Used in the vendors listing above to display vendor products*

I created the topic here since their is something wrong with the vendors listing as well, but from the listing in MyMapsLocation.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkzOTc5LW15bWFwc2xvY2F0aW9uLWFuZC1oaWthbWFya2V0LXByb2R1Y3QtYW5kLXZlbmRvci1wYWdlLXVybHM/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 8 months ago [\#289101](#289101) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289101 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

Hello,

> I created the topic here since their is something wrong with the vendors listing as well, but from the listing in MyMapsLocation.

Yes ; but the question beneath are unfortunately related to HikaShop products and not HikaMarket vendor links.

Just look at your first message and the link within : Code:

$furl='product&amp;task=show&amp;cid='.(int)$item-&gt;product_id.'&amp;name='.$item-&gt;alias;

Does a link starting with "product" could be a vendor link ?

Yes, MyMaps have issues with the generation of product AND vendor links since several years and we already gave code and indication to solve that issue.

And if you look for code in order to generate well formed vendor links, you can find several in our forum (and a lot more in the HikaMarket code, for sure) :
[ www.hikashop.com/forum/23-market-how-to/...dor-page.html#156511](https://www.hikashop.com/forum/23-market-how-to/868279-how-to-list-vendor-products-in-vendor-page.html#156511)
[ www.hikashop.com/forum/20-market-feature...username.html#175004](https://www.hikashop.com/forum/20-market-feature-requests/870451-ad-button-to-ventdor-panel-for-link-username.html#175004)
[ www.hikashop.com/forum/23-market-how-to/...category.html#167574](https://www.hikashop.com/forum/23-market-how-to/870347-vendor-category.html#167574)

Now, since the issue is related to MayMaps and we already gave the answer almost three years ago (and we repeated ourselves again and again) ; I will consider that issue closed in our side (at it should be three years ago).
And I really hope that this time the modifications that we recommend will be integrated.

Regards,

---

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

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

8 years 8 months ago -  8 years 8 months ago [\#289395](#289395) by [guanio.ramon@gmail.com](/forum/user/53017-guanio-ramon-gmail-com "View guanio.ramon@gmail.com's Profile")  Replied by *[guanio.ramon@gmail.com](/forum/user/53017-guanio-ramon-gmail-com "View guanio.ramon@gmail.com's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289395 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

Hi team,
When I click on tag page this the tag page of joomla
[ www.bchef2me.com/component/tags/tag/gluten-free](https://www.bchef2me.com/component/tags/tag/gluten-free)
there i can see the same list of product.here if i click on sphagetti the link are generating properly while when I click on Summer Squash Pad Thai same component/hikashop appear.Please check the screenshot attached.
Even if i click on
[ www.bchef2me.com/chef/vendor/show/70-kimberly](https://www.bchef2me.com/chef/vendor/show/70-kimberly)
and there if i click on product it is showing same behavior.can you please check those.

For hikamarket related stuffs this is all about getting vendor menu id **vendor\_menu\_id**.
require_once JPATH_ADMINISTRATOR.'/components/com_hikamarket/helpers/helper.php';
$config = hikamarket::config();
$url_itemid = (int)$config-&gt;get('edition_default_menu', 0);
static::$itemid[$component]=$url_itemid;
This itemid is returning 0 and thats why issue is coming.
I have fixed this issue at my end by inserting chef id in it.

- [ ![BChef2MeGlutenFree.png](/forum/attachment/42944) ](/forum/attachment/42944 "...GlutenFree.png") [ ](/forum/attachment/42944?download=1 "...GlutenFree.png")

Last edit: 8 years 8 months ago by [guanio.ramon@gmail.com](/forum/user/53017-guanio-ramon-gmail-com "View guanio.ramon@gmail.com's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkzOTc5LW15bWFwc2xvY2F0aW9uLWFuZC1oaWthbWFya2V0LXByb2R1Y3QtYW5kLXZlbmRvci1wYWdlLXVybHM/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 8 months ago [\#289403](#289403) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289403 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

Hello,

For HikaShop related stuff, you have to use the HikaSection section of the forum.

Now regarding HikaMarket. Code:

$url_itemid = (int)$config-&gt;get('edition_default_menu', 0);

Seriously, where did you get that line of code ?

If you're trying to get the wrong configuration setting, you won't retrieve any useful data.
**But** if you read correctly the links I gave you in my emails and in my previous message, you will see the code that you have to use.

Do you need that I re-paste that code here ?

---

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

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

8 years 8 months ago [\#289495](#289495) by [guanio.ramon@gmail.com](/forum/user/53017-guanio-ramon-gmail-com "View guanio.ramon@gmail.com's Profile")  Replied by *[guanio.ramon@gmail.com](/forum/user/53017-guanio-ramon-gmail-com "View guanio.ramon@gmail.com's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289495 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

I am extremely sorry for To much confusion
I thought the issue is related with hikahop product url showing component/com_hikashop but it’s more related with hikamarket vendor url.
The code I am giving you is for generating url for product link and not vendor link.
I have marked all the link and in next version I tried to add the code you suggested.
Please help him to generate the sef url on hikashop product link so I can cross check my code with that.
Please close this ticket for now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkzOTc5LW15bWFwc2xvY2F0aW9uLWFuZC1oaWthbWFya2V0LXByb2R1Y3QtYW5kLXZlbmRvci1wYWdlLXVybHM/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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 8 months ago [\#289497](#289497) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289497 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

Hello,

1 - For HikaShop questions you MUST use the HikaShop section of the forum.
You're here in the HikaMarket section of the forum where I provide support for HikaMarket and HikaMarket only !
If you take a look at my previous message, you will read easily :

> Please note that the question is related to HikaShop and not HikaMarket.

and more precisely :

> For HikaShop related stuff, you have to use the HikaSection section of the forum.

2 - If you take a look at previous message, you will also see that I re-post the message that Nicolas send you some time ago.
Message which already contains the solution.
Once again, I do have the feeling that I write and I'm not read.

> If you then **use hikashop\_contentLink to generate your URL**, it will automatically pickup the canonical URL to use that link if the "force canonical URL on listing" option of HikaShop is activated. But that won't help with duplicate content SEO errors. Just having a canonical URL in the product is enough. It will just make the module more consistent with how HikaShop works.
>
> ...

And if you want to know more about that, I invite you to create a new thread in the HikaShop section for the forum since you're question is related to HikaShop and not HikaMarket.

---

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

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

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

Less More

- Posts: 99
- Thank you received: 0
-
-

8 years 8 months ago [\#289554](#289554) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  Replied by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")* on topic *[MyMapsLocation and Hikamarket product and vendor page URLs](/forum/19-hikamarket/893979-mymapslocation-and-hikamarket-product-and-vendor-page-urls#289554 "-- HikaShop version -- : 3.3.0 -- HikaMarket version -- : 2.0.1 -- Joomla version -- : 3.8.5 -- PHP version -- : 7.1.0 -- Browser(s) name and version -- : CHROME -- Error-message(debug-mod must be tuned on) -- : URL Hikamarket with Mymapslocation  Hello,  Following this topic:   www.hikashop.com/support/forum/20-market...dor-show.html#288932  I try to get nice SEF urls from the product listing via the component MyMapsLocation of Joomunited. Please don't hesitate to check the website (Url of the page with the problem), enter a place (whatever) then click Submit. You will see in the list, one product has a correct url (homemade/...) then the next one (hikashop/...), same for the vendor (component/hikamarket/... instead of /chef-profile/...).  Here is the response from the Joomunited support: This is something you need to check with hikashop team.whatever suggestion they will give me i will implement those. for there function the reference i used is following  components&#92;com&#95;mymaplocations&#92;helpers&#92;mymaplocations.php  geturllink function  Could you please share the references needed for both the product and the vendor page links ?  Regards,")*

Thanks to both of you,

To Joomunited support: please let me know if you want me to create a new topic and to transfer most important info about the product url / sef urls (itemid related...).

At least the vendor (somewhate hikamarket related) sef url works now.

Regards,

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

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