- Posts: 13
- Thank you received: 0
Cancel cart item results in Notice and Fatal Error
10 years 11 months ago #217068
by boxcarmib
Cancel cart item results in Notice and Fatal Error was created 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
-- 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.
10 years 11 months ago #217074
by nicolas
Replied by nicolas on topic Cancel cart item results in Notice and Fatal Error
Hi,
Add the line:
before the line:
in the file components/com_hikashop/views/product/view.html.php and that will fix the problem.
Add the line:
Code:
$class = hikashop_get('class.category');
Code:
$categories = $class->getParents(reset($pageInfo->filter->cid));
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