- Posts: 103
- Thank you received: 5
manufacturer url without the word "category"
7 years 9 months ago - 7 years 9 months ago #302036
by n00bster
manufacturer url without the word "category" was created by n00bster
-- 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?
-- 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?
Code:
echo JText::_('MANUFACTURER').': '.'<a href="'.hikashop_contentLink('category&task=listing&cid='.$manufacturer->category_id.'&name='.$manufacturer->alias.'&Itemid='.$Itemid,$manufacturer).'">'.$manufacturer->category_name.'</a>';
Last edit: 7 years 9 months ago by n00bster.
Please Log in or Create an account to join the conversation.
7 years 9 months ago #302048
by nicolas
Replied by nicolas on topic manufacturer url without the word "category"
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).
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.224 seconds