|
|
Whatsapp share showing error on mobile device in opencart 2.0.3.1 |
I have installed whatsapp share extension as per instructions given. but when try to open my opencart 2.0.3.1 website, it shows error...like....
it shows error as:
Notice: Undefined property: Loader::$config in/home/xxx/catalog/view/theme/default/template/module/whatsapp.tpl on line 44 Fatal error: Call to a member function get() on a non-object in/home/xxx/catalog/view/theme/default/template/module/whatsapp.tpl on line 44
Can you please navigate to the catalog->view->theme->default->template->module->whatsapp.tpl and paste the first 14 lines?
First 20 Lines are :
<div class="whatsapp-container"></div> <script type="text/javascript"> $(".whatsapp-container").load("index.php?route=module/whatsapp/getindex&product_id=<?php echo $product_id; ?>"); $( document ).ready(function() { var url='whatsapp://send?text='+'<?php echo $moduleData["content"][$language_id];?>'+encodeURIComponent('<?php echo $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; ?>'); $("#whatsapp-bth").prop("href",url); }); </script> <?php function ismobile() { $is_mobile = '0';
if(preg_match('/(android|up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone)/i', strtolower($_SERVER['HTTP_USER_AGENT']))) { $is_mobile=1; }
if(0<(strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') ) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) { $is_mobile=1; }
I get the same error - Version 2.0.2.0
As well in admin panel - switch between tabs to write text for different language versions didn't work
Hello Kalinchuk,
Please try to download the module from our website again since it was reuploaded fix some fixes. Let us know if after that the modules is working as expected.
Hope this helps!
I tried New Uploaded Files on 01 September 2015... Till No whatsapp icon is seen above product on Mobile....
Hello
Please make sure that you are running the latest version of the extension for the corresponding OpenCart version.