Checkout goes to homepage

  • Posts: 3
  • Thank you received: 0
11 years 2 months ago #146312

Hi
HikaShop Starter: 2.3.0
Joomla! Version Joomla! 3.2.2 Stable [ Ember ] 6-February-2014 16:00 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT

I found an error every time I access add to cart button from my homepage.
it shows : Notice: Undefined property: stdClass::$link in D:\Eric\web\root\main\components\com_hikashop\router.php on line 56
I am trying hikashop on my local machine: http://localhost/main/
/main/ is joomla folder
i activate joomla URL Rewriting and all hikashop SEF URL options
please help...

i found one interesting after looking at the console from my firefox
this is the url when checkout button is doing just find

http://localhost/main/category/checkout/notice/cart_type-cart/tmpl-component
and this is the url when checkout button shows error
http://localhost/main/checkout/notice/cart_type-cart/tmpl-component
so, i notice the "/category/" is missing when checkout button shows error...
how do i solve this?

Last edit: 11 years 2 months ago by ericlie. Reason: found something new

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

  • Posts: 83674
  • Thank you received: 13545
  • MODERATOR
11 years 1 month ago #146549

Hi,

Replace the line:
if(!empty($menu) && $menu->link =='index.php?option=com_hikashop&view=checkout&layout=step'){

by:
if(!empty($menu) && !empty($menu->link) && $menu->link =='index.php?option=com_hikashop&view=checkout&layout=step'){

in the file components\com_hikashop\router.php and that will remove that notice message.

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

  • Posts: 3
  • Thank you received: 0
11 years 1 month ago #146626

Thank you for your reply, Really appreciate!
I will try your suggestion

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

Time to create page: 0.044 seconds
Powered by Kunena Forum