Skip to main content

Cancel cart item results in Notice and Fatal Error

More
10 years 11 months ago #217068 by boxcarmib
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.6.13
-- Browser(s) name and version -- : safari
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined variable: class in /sites/newps/components/com_hikashop/views/product/view.html.php on line 894

Fatal error: Call to a member function getParents() on null in /sites/newps/components/com_hikashop/views/product/view.html.php on line 894

If I press the "x" (cancel) button to cancel a cart item, the system responds with the following two messages:

Notice: Undefined variable: class in /sites/newps/components/com_hikashop/views/product/view.html.php on line 894

Fatal error: Call to a member function getParents() on null in /sites/newps/components/com_hikashop/views/product/view.html.php on line 894

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

More
10 years 11 months ago #217074 by nicolas
Hi,

Add the line:
Code:
$class = hikashop_get('class.category');
before the line:
Code:
$categories = $class->getParents(reset($pageInfo->filter->cid));
in the file components/com_hikashop/views/product/view.html.php and that will fix the problem.
The following user(s) said Thank You: boxcarmib

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

Time to create page: 0.168 seconds
Powered by Kunena Forum