- Posts: 3
- Thank you received: 0
Checkout goes to homepage
12 years 8 months ago - 12 years 8 months ago #146312
by ericlie
Replied by ericlie on topic Checkout goes to homepage
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
\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
and this is the url when checkout button shows error
so, i notice the "/category/" is missing when checkout button shows error...
how do i solve this?
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
\Eric\web\root\main\components\com_hikashop\router.php on line 56I 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
Code:
http://localhost/main/category/checkout/notice/cart_type-cart/tmpl-component
Code:
http://localhost/main/checkout/notice/cart_type-cart/tmpl-component
how do i solve this?
Last edit: 12 years 8 months ago by ericlie. Reason: found something new
Please Log in or Create an account to join the conversation.
12 years 7 months ago #146549
by nicolas
Replied by nicolas on topic Checkout goes to homepage
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.
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.
12 years 7 months ago #146626
by ericlie
Replied by ericlie on topic Checkout goes to homepage
Thank you for your reply, Really appreciate!
I will try your suggestion
I will try your suggestion
Please Log in or Create an account to join the conversation.
Time to create page: 0.165 seconds