[SOLVED] Menu Items and Product URL generation

  • Posts: 201
  • Thank you received: 13
  • Hikashop Business
10 years 5 months ago #195463

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.16
-- Browser(s) name and version -- : Firefox 36.0.1
-- Error-message(debug-mod must be tuned on) -- : No errors on the page

We are experiencing an issue with URL routing and generation with regard to product pages.

We've created two hikashop 'categories listing' menu items of type "category", one each for our product categories ("Category 1" and "Category 2") with Itemids 108 and 240, respectively.

When viewing the product detail page of a product in Category 1 with menu item A and Itemid 108 the URL is correctly displayed like:

/shop/menu-item-A-alias/product/product-name

However, when viewing a product detail page of a product in Category 2 with menu item B the URL is generated with the alias of menu item A (aka Itemid 108) like:
/shop/menu-item-A-alias/product/product-name

What we are wanting is (aka Itemid 240):
/shop/menu-item-B-alias/product/product-name

This is affecting our ability to assign modules as needed to each category. Is there a way to configure the menu items or HikaShop configuration differently to achieve what we are wanting? I've tried various combinations of SEF options in the HikaShop configuration without success.


3by400, Inc.
3by400.com
Websites that Work, Marketing that Matters
Last edit: 10 years 5 months ago by 3by400.

Please Log in or Create an account to join the conversation.

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 5 months ago #195484

Hi,

This indicates that you've activated the "Force canonical URLs on listings" option in the HikaShop configuration.
Turn it off and you should have one URL per menu item, like you want.

Please Log in or Create an account to join the conversation.

  • Posts: 201
  • Thank you received: 13
  • Hikashop Business
10 years 5 months ago #195893

Thanks for the quick response, Nicolas!

We had 'Force canonical URLs on listings' set to "use canonical URL if specified". I've now changed the setting to "No, generate the URLs" however the URLs for Category 2 products still contain Category 1's menu item alias.

Since the issue isn't being resolved with HikaShop config changes perhaps I should mention that Category 2 products are all HikaMarket vendor products whereas Category 1 products are not.

So, clicking on a Category 2 sub-category initially takes me to a vendor page with the vendor products listed below the vendor description. If I click on one of the vendor products to view the product page the URL then changes to include the menu item alias for Category 1 (aka Category 1's menu item Itemid).


3by400, Inc.
3by400.com
Websites that Work, Marketing that Matters
Last edit: 10 years 5 months ago by 3by400.

Please Log in or Create an account to join the conversation.

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 5 months ago #195919

Hi,

Ah yes, that's normal in that case. On the vendor page, the products listing module will use the menu item that you selected in the "menu" option of the products listing module that you configured in the vendor page.

In that case, I would recommend the use of the extension Advanced Modules Manager which would allow you to force the display of modules based on the current category, and not based of the menu where you're coming from.

The following user(s) said Thank You: 3by400

Please Log in or Create an account to join the conversation.

  • Posts: 201
  • Thank you received: 13
  • Hikashop Business
10 years 5 months ago #197109

Thanks Nicolas ... we had the menu item for the vendor product module set to the vendor listing menu item. By changing that to the hikashop vendor category menu item our URLs are now as we need them! Thanks!!


3by400, Inc.
3by400.com
Websites that Work, Marketing that Matters

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum