manufacturer url without the word "category"

  • Posts: 103
  • Thank you received: 5
5 years 2 months ago #302036

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.1
-- PHP version -- : 7.2

i have setup a hikamenu for the shop brands in joomla:
website.com/shop/brands

my problem what i have now is that from a product detail view the manufacturer url shows like this:
website.com/shop/brands/category/samplemanufacurer

but what i need is this clean url in the detail page from a product without the word "category":
website.com/shop/brands/samplemanufacurer

my SEF config from hikashop is attached.

what do i have to do to archive the right url??
this code in the "show_block_dimensions.php" shows the making of the URL, but what can i edit here to get rid of the "category" word in the url?

echo JText::_('MANUFACTURER').': '.'<a href="'.hikashop_contentLink('category&task=listing&cid='.$manufacturer->category_id.'&name='.$manufacturer->alias.'&Itemid='.$Itemid,$manufacturer).'">'.$manufacturer->category_name.'</a>';

Attachments:
Last edit: 5 years 2 months ago by n00bster.

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
5 years 2 months ago #302048

Hi,

You can change the "category SEF name" setting and empty that setting. That way, the "category" word will be removed for both categories and brands.
You won't be able to achieve that by changing the code in show_block_dimensions as the SEF URL is generated in the router and you can't override the router (unless you use a SEF extension like sh404SEF).

The following user(s) said Thank You: n00bster

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

Time to create page: 0.056 seconds
Powered by Kunena Forum