Error with Cart Module Design

  • Posts: 583
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
4 years 9 months ago #307194

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9
-- PHP version -- : 7.3
-- Error-message(debug-mod must be tuned on) -- : Call to a member function getRounding() on null

Hi Support,

When we activate the plugin (cart module design) we get this error:

Call to a member function getRounding() on null



When we set debug system on YES en turn on the error reporting on Maximum we get this inomation:



We use a Yootheme Pro template:
yootheme.com/

Hope you can fix this error.

Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
4 years 9 months ago #307195

Hello,

Thanks for your return and sorry for this, there were some little mistake that can only appear when you display Tax in module cart.
It seems that you are the first !
To get the correction you can update the plugin and install it again to get the correction.

Sorry again for inconvenience !
Regards

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

  • Posts: 583
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
4 years 9 months ago #307211

Hi Philip,

No problem, but when I download it again and install it again the issue is still not solved.

The error now is: Call to undefined function hikashop_isClient()



Hope you can fix it.

Kind regards,
Lumiga


Kind regards,
Lumiga
Attachments:
Last edit: 4 years 9 months ago by Lumiga.

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
4 years 9 months ago #307239

Hello,

Ok other issue that need to be correct then... It come from you use an earlier version of HikaShop 4.1.0.
You don't have an hikashop function set in your HikaShop Helper.

I will help you to solve the issue on your side, step by step :
1. Go to YourWebSite\plugins\hikashop\cart_design
2. Open cart_design.php file
3. Add this :

if (!function_exist('hikashop_isClient')) {
	if(!HIKASHOP_J40){
		function hikashop_isClient($type) {
			static $test = array();
			if(!isset($test[$type])) {
				$app = JFactory::getApplication();
				if($type == 'administrator')
					$test[$type] = $app->isAdmin();
				else
					$test[$type] = $app->isSite();
			}
			return $test[$type];
		}
	} else {
		function hikashop_isClient($type) {
			static $test = array();
			if(!isset($test[$type])) {
				$app = JFactory::getApplication();
				$test[$type] = $app->isClient($type);
			}
			return $test[$type];
		}
	}
}
To have this, take care it's important that you add this code at this specific location, view my screenshot :



Note that this will be of course added to our code on our side.
Sorry again for inconvenience...

Regards

Last edit: 4 years 9 months ago by Philip.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum