why have /product/listing in Breadcrumbs url link?

  • Posts: 103
  • Thank you received: 1
  • Hikashop Essential
10 years 3 months ago #203244

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : why have /product/listing in Breadcrumbs url link?

For example when visit www.aaa.com/imager
in Breadcrumbs position the category link is " www.aaa.com/imager/product/listing " not " www.aaa.com/imager "
But I don't need the /product/listing in sef url,Can I remove it?
Thank you very much.

Last edit: 10 years 3 months ago by lechong1.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 3 months ago #203284

Hi,

You current "imager" menu is a category listing menu.
So if you want to indicate to HikaShop that it has to display a product listing instead, it must know it by parameters. That's why you got the "product" and the "listing" keywords in the url.
If you don't want it, you can create another menu for a product listing and use it for the module which is display under the category listing menu.

www.hikashop.com/support/support/documen...splay-front-end.html

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 103
  • Thank you received: 1
  • Hikashop Essential
10 years 3 months ago #203324

But my "imager"menu is a products listing menu.please refer to image in attachment.
please check thank you very much.

Attachments:

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 3 months ago #203341

Hi,

My bad !
It looks like it's a SEF issue and the router let the "product" and the "listing" parameters even if the menu already contain them.
Are you using the Joomla SEF or are you using an extension ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 103
  • Thank you received: 1
  • Hikashop Essential
10 years 3 months ago #203462

Yes I am using Joomla native SEF function.

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

  • Posts: 7
  • Thank you received: 1
10 years 3 months ago #203795

i have exactly the same issue on my site like here . the breadcrumbs show an additional /product/listing.html were none is needed and wanted.
also for the category view there is a /kategorie.html appended.
i also use the joomla sef.

how can i disable those parameters for the breadcrumbs because they are not needed?

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.5.25
-- Browser(s) name and version -- : chrome 43.0.2357.81 m

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

  • Posts: 200
  • Thank you received: 75
10 years 3 months ago #203884

Hi,

I have the same issue as lechong1 and shiddy and would also be interested to know if it is possible to get rid of the /product/listing in the breadcrumbs.

Thanks

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 3 months ago #204060

Hi,

I think I've finally found the solution.
Replace the code:

}elseif(isset($query['view'])){
		$segments[] = $query['view'];
		unset( $query['view'] );
		if(isset($query['layout'])){
			$segments[] = $query['layout'];
			unset( $query['layout'] );
		}
	}
by the code:
}elseif(isset($query['view'])){
		unset( $query['view'] );
		if(isset($query['layout'])){
			unset( $query['layout'] );
		}
	}
in the file components/com_hikashop/router.php and that should fix the issue as it did on my end.
Let us know if you have any other issue happening because of that change.

The following user(s) said Thank You: lechong1

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

  • Posts: 7
  • Thank you received: 1
10 years 3 months ago #204099

thanks a lot! this helps at least for the product view! i have not experienced any problems yet!
but the category view has still the parameters added.
in my shop i have a category view as main menu item. and below are the product listings for the different categories. so when you view products in the product view the link for the main menu item is like this: naturwesen.at/shop/kategorie.html instead of naturwesen.at/shop.html

seems to be something different because this one is in german (like my shop) and the product/listing thing was in english.

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

  • Posts: 84304
  • Thank you received: 13699
  • MODERATOR
10 years 3 months ago #204191

This indeed looks like something else.
Wouldn't that come from the category SEF name that you configured in the configuration page of your HikaShop ?
What if you remove the code:

else if(isset($query['view']) && isset($query['layout'])){
				if($query['view']=='category' && $query['layout']=='listing'){
					$segments[] = $categorySef;
					unset( $query['layout'] );
					unset( $query['view'] );
				}
				else if($query['view']=='product' && $query['layout']=='show'){
					$segments[] = $productSef;
					unset( $query['layout'] );
					unset( $query['view'] );
				}
			}
in the file components/com_hikashop/router.php, does that fix the issue ?

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

  • Posts: 7
  • Thank you received: 1
10 years 3 months ago #204219

thank you!
you made my day :)
works fine and no problems yet!

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

  • Posts: 103
  • Thank you received: 1
  • Hikashop Essential
10 years 3 months ago #204500

great ,thank you very much Nicolas.

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

Time to create page: 0.088 seconds
Powered by Kunena Forum