Related products take user to homepage

  • Posts: 31
  • Thank you received: 2
4 years 10 months ago #318939

-- url of the page with the problem -- : www.diykeyboards.com/switchcracker
-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.2.3
-- Browser(s) name and version -- : Chrome

As the title says, users clicking on a related product are taken to the site homepage rather than the item. It looks like the URL of the related product link is missing the page/category name.

For example, the expected link https://www.diykeyboards.com/cases/product/76-dactyl-manuform

is instead rendered as: https://www.diykeyboards.com/product/76-dactyl-manuform

Last edit: 4 years 10 months ago by sixdeuces.

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

  • Posts: 31
  • Thank you received: 2
4 years 10 months ago #318944

Update: OK so I think what's happening is that the product is being called just fine. However, the page loads using the homepage template, which has no content output and lots of unneeded modules.

The homepage template is not the default template. How can I specify which template gets loaded when these products are opened?

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

  • Posts: 31
  • Thank you received: 2
4 years 10 months ago #318964

If there is a way to do this properly within Hikashop, I couldn't find it.

I solved the issue by using the Chameleon plugin to assign the default templates to anything generated by the Hikashop component. IMO, this is a hacky move, but it does work. Also, the plugin is not free, at $30 USD.

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 10 months ago #318943

Hi,

Edit the settings of the related products module via the Joomla modules manager.
There, under the "HikaShop options" tab, you have an option "menu" where you can select the menu item to use for the URL of the products in that listing. Make sure you select the menu item you want the URLs to use.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum