Change the location of the link code

  • Posts: 17
  • Thank you received: 0
10 months 1 week ago #284224

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.8.2

Hello
I want to change the location of the product code in the link please guide.

This link

domain.com/en/product/17-Calvin Klein Women's Round Neck

Change to
domain.com/en/product/Calvin Klein Women's Round Neck /17
or
domain.com/en/product/Calvin Klein Women's Round Neck /id-17

Last Edit: 10 months 1 week ago by chavosh.

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

  • Posts: 63603
  • Thank you received: 9160
  • MODERATOR
10 months 1 week ago #284225

Hi,

The only easy way to change that is to use a SEF extension like Sh404SEF and configure alias URLs for each product.
Otherwise, you can also activate the "remove category and product id from URLs" setting of the HikaShop configuration to remove the id completely.
The hard way is to modify the file components/com_hikashop/router.php to support that format of URLs, but it will be quite hard.

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

  • Posts: 17
  • Thank you received: 0
10 months 3 days ago #284672

Hi
Is it possible to move the link id for categorys and products
Which line of the router.php file should be corrected.
Thank You

for example
domain.com/en/category/17- Women
domain.com/en/product/17-Calvin Klein Women's Round Neck

Change to

domain.com/en/category/ Women/17
domain.com/en/product/Calvin Klein Women's Round Neck/17

Last Edit: 10 months 3 days ago by chavosh.

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

  • Posts: 63603
  • Thank you received: 9160
  • MODERATOR
10 months 3 days ago #284675

Hi,

The whole code of the file needs to be rewritten to do that, or at least most of it. That's why I said that it would be quite hard.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum