Jump to content
bera_ramazan

[Free Module] Whatsapp Chat Module [UPDATED V3.1 09.07.2019]

Recommended Posts

Excellent modules, thank you.
I still wanted to ask you, in the site demo you have a nice winget for this module, how can it look like this?

Share this post


Link to post
Share on other sites

I still cannot manage to make this work ->  Shared with product name brought on product page

my ps 1.7.5.1

it simply opens whatsapp chat but . not precompiled msg.

i already edited footer.tpl (under whatsapp/views/emplates/front/) but is it the one?

Edited by e-piazza.biz (see edit history)

Share this post


Link to post
Share on other sites
On 10/30/2017 at 6:02 PM, tecnoservicel said:

for those who wish to change their position they should look for the module and modify the following:
modules / views / css / whatsapp.css
modify the line:


.asagiSabit {position: fixed; bottom: 5px; right: 5px; z-index: 999}
for this:


.asagiSabit {position: fixed; bottom: 5px; left: 5px; z-index: 999}


recompile and delete the browser cache, I leave image of the change

 

 

para los que deseen cambiar de posicion deben buscar el modulo y modificar lo siguiente:
modulos/views/css/whatsapp.css
modificar la linea:
.asagiSabit {position:fixed;bottom:5px;right:5px;z-index:999}


por esta:
.asagiSabit {position:fixed;bottom:5px;left:5px;z-index:999}


recompilan y borran la cache del navegador, dejo imagen del cambio

 

espero sirva el aporte

cambio posicion whatsapp.png

Un genio muchas gracias. Pero en mi paga el boton queda debajo de mis imagenes y fotos. Como puedo asegurar para que quede encima como se muestra en tu imagen?

  • Like 1

Share this post


Link to post
Share on other sites

image.png.1f22de7b4044258a41fb5eb26e734751.png

Hi.
in my webpage, www.betoy.com.co the botton show down my images and section, therefore nobody can't click on that. how can put over the image?

Anyonne has any idea?


Regards
 

Share this post


Link to post
Share on other sites
Posted (edited)

Me too a same errors!

Whoops, looks like something went wrong.

1/1 ContextErrorException in bf0143816f38800b98edce4271754f6b36597e8f.file.footer.tpl.php line 33: Notice: Undefined index: page_name

  1. in bf0143816f38800b98edce4271754f6b36597e8f.file.footer.tpl.php line 33
  2. at ErrorHandler->handleError('8', 'Undefined index: page_name', '/home/simoes/public_html/app/cache/dev/smarty/compile/bf/01/43/bf0143816f38800b98edce4271754f6b36597e8f.file.footer.tpl.php', '33', array('_smarty_tpl' => object(SmartyDevTemplate))) in bf0143816f38800b98edce4271754f6b36597e8f.file.footer.tpl.php line 33
  3. at content_5cbb6f0245a645_84276519(object(SmartyDevTemplate)) in smarty_internal_templatebase.php line 188
  4. at Smarty_Internal_TemplateBase->fetch('/home/simoes/public_html/modules/whatsapp/views/templates/front/footer.tpl', null, null, object(SmartyDev), false, true, false) in SmartyDev.php line 41
  5. at SmartyDev->fetch('/home/simoes/public_html/modules/whatsapp/views/templates/front/footer.tpl') in whatsapp.php line 171
  6. at whatsapp->whatsapp(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '2')) in whatsapp.php line 178
  7. at whatsapp->hookDisplayFooter(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '2')) in Hook.php line 924
  8. at HookCore::coreCallHook(object(whatsapp), 'hookdisplayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '2')) in Hook.php line 328
  9. at HookCore::callHookOn(object(whatsapp), 'displayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '2')) in Hook.php line 860
  10. at HookCore::exec('displayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => '2'), null) in smarty.config.inc.php line 168
  11. at smartyHook(array('h' => 'displayFooter'), object(SmartyDevTemplate)) in SmartyLazyRegister.php line 83
  12. at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayFooter'), object(SmartyDevTemplate))) in 9ca990eafbb9ad4df86d8db283fe9e6ffb0c99e7.file.product.tpl.php line 1795
  13. at content_5cbb6f3a9a3b67_31022723(object(SmartyDevTemplate)) in 9ca990eafbb9ad4df86d8db283fe9e6ffb0c99e7.file.product.tpl.php line 619
  14. at content_5cbb6f3a9ad3f9_43502911(object(SmartyDevTemplate)) in smarty_internal_templatebase.php line 188
  15. at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl', object(SmartyDev), false, true, false) in SmartyDev.php line 41
  16. at SmartyDev->fetch('catalog/product.tpl', null, 'layouts/layout-full-width.tpl') in FrontController.php line 684
  17. at FrontControllerCore->smartyOutputContent('catalog/product.tpl') in FrontController.php line 668
  18. at FrontControllerCore->display() in Controller.php line 273
  19. at ControllerCore->run() in Dispatcher.php line 428
  20. at DispatcherCore->dispatch() in index.php line 28
Em 13/01/2019 em 6:49 AM, MrSmarty disse:

The same thing for me with prestashop 1.7.5.0, there are errors only if placed in the footer, it's a shame because this module is very useful, I ask those who are more experienced if these alerts are a problem for the proper operation of the site.

 

Edited by Simoes
Add info (see edit history)

Share this post


Link to post
Share on other sites
Em 03/06/2017 em 9:55 AM, bera_ramazan disse:

 

oi meu nome Carlos fizemos a instalação mas não aparece nos módulos

 

Share this post


Link to post
Share on other sites

Oi Carlos, aparentemente tem a ver com com as configurações do servidor, mas o pessoal de lá disse que está tudo nos conformes, sugeriram atualizar o PS, uso o

7.3.3

Share this post


Link to post
Share on other sites

O funcionamento do módulo parece normal, só a mensagem não aparece.

Share this post


Link to post
Share on other sites
1 minuto atrás, Simoes disse:

O funcionamento do módulo parece normal, só a mensagem não aparece.

1 minuto atrás, Simoes disse:

O funcionamento do módulo parece normal, só a mensagem não aparece.

Em 03/06/2017 em 9:55 AM, bera_ramazan disse:

 

exato... isso que vimos depois
mas tranquilo... 

 

Share this post


Link to post
Share on other sites

Como me sugeriram atualizar o PS, vou tentar mais a noite e veremos se muda alguma coisa.

Obrigado, depois te passo o que aconteceu.

Share this post


Link to post
Share on other sites

Então, atualizei para PS 7.5.1, conferi e pedi para os responsáveis verificarem as configurações do servidor e me confirmaram que estão nos conformes.

Mas continua a mesma coisa, quando e debug mode o módulo indica o mesmo erro( problema de hook), ele parece funcionar mas não consigo mudar de posição, só no pé funciona e quando mudo para alguma coluna não acusa erro mas também não aparece e a mensagem não aparece de jeito nenhum.

Share this post


Link to post
Share on other sites

awesome - works with 1.7.5

Thanks!!

Share this post


Link to post
Share on other sites

When i click on the whatsup button in presta  shop computer, it gives me this 

<!DOCTYPE html>
<html class="no-js" dir="rtl" loc="he">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>WhatsApp Web</title>
<meta name="viewport" content="width=device-width">
<meta name="google" content="notranslate">
<meta name="format-detection" content="telephone=no"/>

<meta name="description" content="&#8234;Quickly send and receive WhatsApp messages right from your computer.&#8236;">
<meta name="og:description" content="&#8234;Quickly send and receive WhatsApp messages right from your computer.&#8236;"/>
<meta name="og:url" content="https://web.whatsapp.com/"/>
<meta name="og:title" content="WhatsApp Web"/>
<meta name="og:image" content="https://www.whatsapp.com/img/whatsapp-promo.png"/>

<link id="favicon" rel="shortcut icon" href="/img/favicon/1x/favicon.png" type="image/png" />
<link id="favicon" rel="shortcut icon" href="https://whatsapp.net/favicon_web.png" type="image/png" />
<link rel="apple-touch-icon" sizes="194x194" href="/apple-touch-icon.png" type="image/png" />

<link rel="stylesheet" href="/cssm_99362fa8365d8e39028c84edca18e758.css">

<style>
html, body, #app {
height: 100%;
width: 100%;
overflow: hidden;
padding: 0;
margin: 0;
}

#app {
position: absolute;
top: 0;
left: 0;
}

#startup, #initial_startup {
width: 100%;
height: 100%;
position: fixed;
background-color: #f2f2f2;

-moz-user-select: none;
-webkit-user-select: none;

display: flex;
align-items: center;
justify-content: center;
display: -webkit-box;
display: -webkit-flex;
-webkit-align-items: center;
-webkit-justify-content: center;
flex-direction: column;
-webkit-flex-direction: column;
}

.spinner-container {
-webkit-animation: rotate 2s linear infinite;
animation: rotate 2s linear infinite;
z-index: 2;
}

.spinner-path {
stroke-dasharray: 1,150; 
stroke-dashoffset: 0;
stroke: #acb9bf;
stroke-linecap: round;
-webkit-animation: dash 1.5s ease-in-out infinite;
animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
100% { transform: rotate(360deg); }
}
@-webkit-keyframes rotate{
100% { -webkit-transform: rotate(360deg); }
}

@keyframes dash {
0% {
stroke-dasharray: 1,150;  
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90,150; 
stroke-dashoffset: -35;   
}
100% {
stroke-dasharray: 90,150; 
stroke-dashoffset: -124;  
}
}
@-webkit-keyframes dash {
0% {
stroke-dasharray: 1,150;  
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90,150; 
stroke-dashoffset: -35;   
}
100% {
stroke-dasharray: 90,150; 
stroke-dashoffset: -124;  
}
}

.progress-container {
width: 360px;
position: fixed;
padding-top: 120px;
top: 50%;
left: 50%;
margin-left: -180px;
}

progress {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 3px;
border: none;
margin: 0;
color: #02d1a4;
background-color: #e0e4e5;
}

progress[value]::-webkit-progress-bar {
background-color: #e0e4e5;
}

progress[value]::-webkit-progress-value {
background-color: #02d1a4;
}

progress[value]::-moz-progress-bar {
background-color: #02d1a4;
}
</style>
</head>
<body class="web">
<div id="app"></div>

<div id="initial_startup">
<svg class="spinner-container" width="50" height="50" viewBox="0 0 44 44">
<circle class="spinner-path" cx="22" cy="22" r="20" fill="none" stroke-width="4"></circle>
</svg>
<div class="progress-container">
<progress id=progressbar value="329" max="3293.75" dir="ltr">  </progress>
</div>
</div>

<script src="/progress.5363a6cd3ab30ce786644f04e468f605.js"></script>

<div id="hard_expire_time" data-time=1570320801.241></div>

<script src="/locales/he.8d3e6891d927141b13fb.js"></script>
</body>
</html>

 

It worked in the past, and right now does not work, can you figure out why?
I added a screenshot so you can see

 

WHATSUP.png

Share this post


Link to post
Share on other sites

Hello how can i show the PRODUCT_REFERENCE in the chat and where do i change that good modele thnx for that.

 

Share this post


Link to post
Share on other sites
On 6/2/2019 at 3:42 PM, appie64 said:

Hello how can i show the PRODUCT_REFERENCE in the chat and where do i change that good modele thnx for that.

 

$pr   = Db::getInstance()->getRow('SELECT * FROM `'._DB_PREFIX_.'product_lang` WHERE id_product = '.$idPr.' AND id_lang = '.$lang.'');
            $name = $pr['name'];

Change

$pr   = Db::getInstance()->getRow('SELECT * FROM `'._DB_PREFIX_.'product` WHERE id_product = '.$idPr.'');
            $name = $pr['reference'];

Share this post


Link to post
Share on other sites

Wow!! This module helped me a lot. Thank you a lot for this.

On 6/12/2017 at 12:17 PM, bera_ramazan said:

Please open whatsapp.php add function install


$this->registerHook('rightColumn')

And goto


public function hookDisplayFooter()

Change


public function hookRightColumn()

 

Share this post


Link to post
Share on other sites

Hola! estoy utilizando el módulo en Prestashop 1.6 y funciona perfectamente, muchas gracias por este buenísimo desarrollo!

Felicitaciones :) 

Share this post


Link to post
Share on other sites

hello

thanks for sharing, i have installed on ps 1.6 works sharm. is it possible to add telegram chat to this module?

Share this post


Link to post
Share on other sites
On 6/12/2019 at 7:01 PM, niloo said:

hello

thanks for sharing, i have installed on ps 1.6 works sharm. is it possible to add telegram chat to this module?

yes coming

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)
On 6/27/2019 at 3:44 PM, bera_ramazan said:

Updated new version V3

hi

i had installed the module Great button. thanks

and: when do you resales telegram integration?

Edited by niloo (see edit history)

Share this post


Link to post
Share on other sites
58 minutes ago, niloo said:

hi

i had installed the module Great button. thanks

and: when do you resales telegram integration? 

yes i can add new version telegram

  • Thanks 1

Share this post


Link to post
Share on other sites
Posted (edited)

Hello,

With version V3 in Prestashop 1.7.5.2 , PHP 7.1.28 theme classic. With Mode Debug active, It tell me these errors.

I install version v3 but I see in the Module panel that it is version V2 ?¿?¿

 

 

(1/1) ContextErrorException

Notice: Undefined index: page_name

in 8730ec88ca188f72c141574c9ef8b246c9086581_2.file.footer.tpl.php line 27
at content_5d1902523e1305_26024129(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('/opt/bitnami/apps/prestashop/htdocs/modules/whatsapp/views/templates/front/footer.tpl', null, null, null, false, true,false)in SmartyDev.php line 40
at SmartyDev->fetch('/opt/bitnami/apps/prestashop/htdocs/modules/whatsapp/views/templates/front/footer.tpl')in whatsapp.php line 179
at whatsapp->whatsapp(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in whatsapp.php line 186
at whatsapp->hookDisplayFooter(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 966
at HookCore::coreCallHook(object(whatsapp), 'hookdisplayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' =>object(Cart), 'altern' => 2))in Hook.php line 351
at HookCore::callHookOn(object(whatsapp), 'displayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 903
at HookCore::exec('displayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2), null)in smarty.config.inc.php line 165
at smartyHook(array('h' => 'displayFooter'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayFooter'), object(SmartyDevTemplate)))in 98f4aacfac2fd960193abccf919d41c41d961ba0_2.file.footer.tpl.php line 89
at Block_6829731495d1902523aa335_44863414->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_6829731495d1902523aa335_44863414), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_6829731495d1902523aa335_44863414))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_6829731495d1902523aa335_44863414', 'hook_footer')in 98f4aacfac2fd960193abccf919d41c41d961ba0_2.file.footer.tpl.php line 39
at content_5d1902523acd41_43583705(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('file:_partials/footer.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 0, false)in 86866f9111bdc1eb0643bc90ca5907b5320d582b_2.file.layout-both-columns.tpl.php line 333
at Block_18639529425d19025233f931_70140997->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_18639529425d19025233f931_70140997), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_18639529425d19025233f931_70140997))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_18639529425d19025233f931_70140997', 'footer')in 86866f9111bdc1eb0643bc90ca5907b5320d582b_2.file.layout-both-columns.tpl.php line 102
at content_5d190252341936_71660340(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 6e1b4dcfda3f4a272a7fb2398684952b08ec6edc_2.file.layout-full-width.tpl.php line 42
at content_5d190252333683_15714019(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in 06b2286de0f6d4e54b1fe4ee2c7598f261b7bd80_2.file.page.tpl.php line 29
at content_5d19025232eb09_86895548(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('page.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl')in e45e02c1161d0c4a9abe18cd45407dd475b5ecc6_2.file.index.tpl.php line 31
at content_5d190252328535_20389131(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40
at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 682
at FrontControllerCore->smartyOutputContent('index.tpl')in FrontController.php line 666
at FrontControllerCore->display()in Controller.php line 301
at ControllerCore->run()in Dispatcher.php line 511
at DispatcherCore->dispatch()in index.php line 28

 

Edited by Esmoof (see edit history)

Share this post


Link to post
Share on other sites
On 6/30/2019 at 9:48 PM, Esmoof said:

Hello,

With version V3 in Prestashop 1.7.5.2 , PHP 7.1.28 theme classic. With Mode Debug active, It tell me these errors.

I install version v3 but I see in the Module panel that it is version V2 ?¿?¿

 

 

(1/1) ContextErrorException

Notice: Undefined index: page_name

in 8730ec88ca188f72c141574c9ef8b246c9086581_2.file.footer.tpl.php line 27
at content_5d1902523e1305_26024129(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('/opt/bitnami/apps/prestashop/htdocs/modules/whatsapp/views/templates/front/footer.tpl', null, null, null, false, true,false)in SmartyDev.php line 40
at SmartyDev->fetch('/opt/bitnami/apps/prestashop/htdocs/modules/whatsapp/views/templates/front/footer.tpl')in whatsapp.php line 179
at whatsapp->whatsapp(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in whatsapp.php line 186
at whatsapp->hookDisplayFooter(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 966
at HookCore::coreCallHook(object(whatsapp), 'hookdisplayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' =>object(Cart), 'altern' => 2))in Hook.php line 351
at HookCore::callHookOn(object(whatsapp), 'displayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2))in Hook.php line 903
at HookCore::exec('displayFooter', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 2), null)in smarty.config.inc.php line 165
at smartyHook(array('h' => 'displayFooter'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayFooter'), object(SmartyDevTemplate)))in 98f4aacfac2fd960193abccf919d41c41d961ba0_2.file.footer.tpl.php line 89
at Block_6829731495d1902523aa335_44863414->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_6829731495d1902523aa335_44863414), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_6829731495d1902523aa335_44863414))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_6829731495d1902523aa335_44863414', 'hook_footer')in 98f4aacfac2fd960193abccf919d41c41d961ba0_2.file.footer.tpl.php line 39
at content_5d1902523acd41_43583705(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('file:_partials/footer.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 0, false)in 86866f9111bdc1eb0643bc90ca5907b5320d582b_2.file.layout-both-columns.tpl.php line 333
at Block_18639529425d19025233f931_70140997->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_18639529425d19025233f931_70140997), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_18639529425d19025233f931_70140997))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_18639529425d19025233f931_70140997', 'footer')in 86866f9111bdc1eb0643bc90ca5907b5320d582b_2.file.layout-both-columns.tpl.php line 102
at content_5d190252341936_71660340(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 6e1b4dcfda3f4a272a7fb2398684952b08ec6edc_2.file.layout-full-width.tpl.php line 42
at content_5d190252333683_15714019(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in 06b2286de0f6d4e54b1fe4ee2c7598f261b7bd80_2.file.page.tpl.php line 29
at content_5d19025232eb09_86895548(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('page.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl')in e45e02c1161d0c4a9abe18cd45407dd475b5ecc6_2.file.index.tpl.php line 31
at content_5d190252328535_20389131(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40
at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 682
at FrontControllerCore->smartyOutputContent('index.tpl')in FrontController.php line 666
at FrontControllerCore->display()in Controller.php line 301
at ControllerCore->run()in Dispatcher.php line 511
at DispatcherCore->dispatch()in index.php line 28

 

please change page_name to page.name

Share this post


Link to post
Share on other sites
Posted (edited)

Where is page_name located?

/opt/bitnami/apps/prestashop/htdocs/var/cache/dev/smarty 

Error:    Directory /opt/bitnami/apps/prestashop/htdocs/var/cache/dev/smarty: permission denied
Error:    Error al recuperar el listado del directorio

I do not have permissions. I am the administrator of the vps. But I can not access. From the console I can change the user from bitnami to daemon. But this causes error 500 to occur and I have to erase the entire cache to replace it.

Edited by Esmoof (see edit history)

Share this post


Link to post
Share on other sites
On 7/3/2019 at 9:50 PM, Esmoof said:

Where is page_name located?

/opt/bitnami/apps/prestashop/htdocs/var/cache/dev/smarty 

Error:    Directory /opt/bitnami/apps/prestashop/htdocs/var/cache/dev/smarty: permission denied
Error:    Error al recuperar el listado del directorio

I do not have permissions. I am the administrator of the vps. But I can not access. From the console I can change the user from bitnami to daemon. But this causes error 500 to occur and I have to erase the entire cache to replace it.

please edit ftp/modules/whatsapp/views/front/footer.tpl

Share this post


Link to post
Share on other sites

Thank, I have no problem the module works very well on version 1.6 and 1.7

Share this post


Link to post
Share on other sites
On 7/3/2019 at 8:50 PM, Esmoof said:

Where is page_name located?

/opt/bitnami/apps/prestashop/htdocs/var/cache/dev/smarty 

Error:    Directory /opt/bitnami/apps/prestashop/htdocs/var/cache/dev/smarty: permission denied
Error:    Error al recuperar el listado del directorio

I do not have permissions. I am the administrator of the vps. But I can not access. From the console I can change the user from bitnami to daemon. But this causes error 500 to occur and I have to erase the entire cache to replace it.

Hi, maybe your problem comes from PHP ?

Share this post


Link to post
Share on other sites

"(1/1) ContextErrorException

Notice: Undefined index: page_name

in 9308999ba97fc91020d69639b64ad6c69f557431_2.file.footer.tpl.php line 25"

/public_html/var/cache/dev/smarty/compile/93/08/99/9308999ba97fc91020d69639b64ad6c69f557431_2.file.footer.tpl.php

156/5000

I changed page_name to page.name here in

/modules/whatsapp/views/templates/front/footer.tpl

and nothing changed just informs that the error is this page_name or page.name!

Share this post


Link to post
Share on other sites
17 hours ago, Simoes said:

"(1/1) ContextErrorException

Notice: Undefined index: page_name

in 9308999ba97fc91020d69639b64ad6c69f557431_2.file.footer.tpl.php line 25"

/public_html/var/cache/dev/smarty/compile/93/08/99/9308999ba97fc91020d69639b64ad6c69f557431_2.file.footer.tpl.php

156/5000

I changed page_name to page.name here in

/modules/whatsapp/views/templates/front/footer.tpl

and nothing changed just informs that the error is this page_name or page.name!

Hi, maybe your problem comes from PHP ?

Share this post


Link to post
Share on other sites

Sorry, but new version don't work.

I have uninstalled a previous version, deletei the server, I installed a new version and now I have not presented any more and it continues giving the same error.
Change the footer.tpl from page_name to page.name, without change.

  • Like 1

Share this post


Link to post
Share on other sites
6 hours ago, Simoes said:

Sorry, but new version don't work.

I have uninstalled a previous version, deletei the server, I installed a new version and now I have not presented any more and it continues giving the same error.
Change the footer.tpl from page_name to page.name, without change.

please download new version

fixed this problem

Share this post


Link to post
Share on other sites

Using the old one works but activating the debug tells this:
1/1) ContextErrorException
Notice: Undefined index: name
in 9308999ba97fc91020d69639b64ad6c69f557431_2.file.footer.tpl.php line 25
even deleting the file /public_html/var/cache/dev/smarty/compile/93/08/99/9308999ba97fc91020d69639b64ad6c69f557431_2.file.footer.tpl it is recreated not not replaced, as I tried the newest version before it was indicated Undefined index: pst when I installed amis old, it excludes references to pst and stopped giving error.
I decided to install the old clean version again, excluding the old one from the server, then started giving Undefined index: name again in debug mode.
I do not know if I understand my English is bad and I use the goole to translate.

Share this post


Link to post
Share on other sites
41 minutes ago, Simoes said:

Using the old one works but activating the debug tells this:
1/1) ContextErrorException
Notice: Undefined index: name
in 9308999ba97fc91020d69639b64ad6c69f557431_2.file.footer.tpl.php line 25
even deleting the file /public_html/var/cache/dev/smarty/compile/93/08/99/9308999ba97fc91020d69639b64ad6c69f557431_2.file.footer.tpl it is recreated not not replaced, as I tried the newest version before it was indicated Undefined index: pst when I installed amis old, it excludes references to pst and stopped giving error.
I decided to install the old clean version again, excluding the old one from the server, then started giving Undefined index: name again in debug mode.
I do not know if I understand my English is bad and I use the goole to translate.

please clear cache after unsitall module and install

Share this post


Link to post
Share on other sites

I have already done this, sometimes even deleted the directory / 93 and it remains the same. Only when I deleted the new version and installed the old one, the first time, the error indicated was "pst" I edited the file in the cache and erased the reference to the "pst", which does not exist in the old version there stopped the error, but It gives work and a little knowledge.

Share this post


Link to post
Share on other sites

Ok, I deleted ".name" in footer.tpl and stopped giving error, this part did not work anyway but now it does not bother any more.

Share this post


Link to post
Share on other sites
8 hours ago, Simoes said:

Ok, I deleted ".name" in footer.tpl and stopped giving error, this part did not work anyway but now it does not bother any more. 

please edit footer.tpl

change this code

{assign var='controllerName' value=$smarty.get.controller}
<div class="whatsappDiv {$pst|escape:'html':'UTF-8'}">
	<a onclick="window.open('http://wppredirect.tk/go/?p={$whatasppno|escape:'html':'UTF-8'}{if $controllerName == 'product' && $shareThis == 1}&m={$shareMessage|escape:'html':'UTF-8'}{else}&m={/if}')" class="tiklaAc"></a>
</div>

 

Share this post


Link to post
Share on other sites

Hey! 

 

Thanks for releasing this module. Using 1.6 and I'm having issues when accessing my site through mobiledevice and press the whatsapp icon. The site just reloads. Anyone experienced similar issue?

Share this post


Link to post
Share on other sites

The button does not appear in debug mode for this message:
  (1/1) ContextErrorException

Notice: Undefined index: pst

Share this post


Link to post
Share on other sites

I reinstalled the new version and changed the code is working perfectly. Thank you

Unfortunately our store is very small and we could buy your module now, when we grow a little, for sure, we will buy.

Share this post


Link to post
Share on other sites

I came back, now it appears </ div> together with the button. follow print995508926_Capturadetelade2019-07-1111-17-09.thumb.png.e1b18e3703ad61dbd45bdb0c24ce87a2.png

Share this post


Link to post
Share on other sites

Tnx a lot!

I use your module for the mobile part of my site! Working perfectly!

But the standard message doesn't work :( Maybe working only in the desktop mode (i don't test it).

 

Share this post


Link to post
Share on other sites
3 hours ago, Idroclic said:

Tnx a lot!

I use your module for the mobile part of my site! Working perfectly!

But the standard message doesn't work :( Maybe working only in the desktop mode (i don't test it). 

 

please send your site link

Share this post


Link to post
Share on other sites

 

14 minutes ago, bera_ramazan said:

please send your site link

Tnx dear! I re-installed the module and now working! It's possibile to have other variables same {PRODUCT} ?

Share this post


Link to post
Share on other sites

Hi, how are you? I did the installation of the module, but it seems to me without function. Since I don't see the chat button. The version I have is 1.6.1.6 regards

Share this post


Link to post
Share on other sites
Posted (edited)

hi,

 

I installed and adjusted parameters, however cannot see in website, it gives me no errors

Thanks a lot

Edited by solopedro
Incomplete (see edit history)

Share this post


Link to post
Share on other sites
59 minutes ago, solopedro said:

hi,

 

I installed and adjusted parameters, however cannot see in website, it gives me no errors

Thanks a lot

Hi,

u have clean the cache from BO?

Share this post


Link to post
Share on other sites
27 minutes ago, Idroclic said:

Hi,

u have clean the cache from BO?

Yes I did, and recompile, version prestashop 1.6.1.15

installed your version 1.7 V3

Share this post


Link to post
Share on other sites

U check the code of your site in the console of the browser? U have configurate the module correctly? The module isn't mine! 

Share this post


Link to post
Share on other sites
1 hour ago, solopedro said:

All configured properly, no errors, but does nto show in front end

U can post your site?

Share this post


Link to post
Share on other sites
4 minutes ago, bera_ramazan said:

your template dont have footer hook

yes it has

also right and left colum! and does not work in either please help,

Captura de pantalla 2019-08-07 a las 10.45.36.png

Share this post


Link to post
Share on other sites
3 minutes ago, solopedro said:

yes it has

also right and left colum! and does not work in either please help,

Try to put manually the code in your tpl:

Quote

{assign var='controllerName' value=$smarty.get.controller}
<div class="whatsappDiv {$pst|escape:'html':'UTF-8'}">
    <a onclick="window.open('http://wppredirect.tk/go/?p={$whatasppno|escape:'html':'UTF-8'}{if $controllerName == 'product' && $shareThis == 1}&m={$shareMessage|escape:'html':'UTF-8'}{else}&m={/if}')" class="tiklaAc"></a>
</div>

But i don't test it..

Share this post


Link to post
Share on other sites
1 hour ago, Idroclic said:

Try to put manually the code in your tpl:

But i don't test it..

I understand in footer.tpl

Share this post


Link to post
Share on other sites
Posted (edited)

Hi, i can´t make it work in mobile, the button send me to whatsapp.com instead of the app. I tried safari and chrome as well.

*SOLVED*

Edit footer.tpl

Quote

{if $deviceType == 'computer'}
    <div class="{if $hook == 'footer'}asagiSabit{/if} whatsappBlock"><a href="https://web.whatsapp.com/send?{if $page.name == 'product' && $shareThis == 1}text={$shareMessage|escape:'html':'UTF-8'}&{/if}phone=+{$whatasppno|escape:'html':'UTF-8'}"><img src="{$whataspp_module_dir|escape:'html':'UTF-8'}/views/img/whataspp_icon.png" alt="Whataspp" width="24px" height="24px" /> {l s='Whataspp Live Chat' mod='whatsapp'}</a></div>
{else}
    <div class="{if $hook == 'footer'}asagiSabit{/if} whatsappBlock"><a href="https://wa.me/{if $page.name == 'product' && $shareThis == 1}text={$shareMessage|escape:'html':'UTF-8'}&{/if}phone=+{$whatasppno|escape:'html':'UTF-8'}"><img src="{$whataspp_module_dir|escape:'html':'UTF-8'}/views/img/whataspp_icon.png" alt="Whataspp" width="24px" height="24px" /> {l s='Whataspp Live Chat' mod='whatsapp'}</a></div>
{/if}

 

Edited by Ariguznaga (see edit history)

Share this post


Link to post
Share on other sites

Buenos días:

He instalado el modulo, pero en versión móvil, no me aparece. En el ordenador y en varios formatos funciona, pero en mi móvil no me aparece.

Share this post


Link to post
Share on other sites

The module is great thanks. The only thing I not get to work is that after pressing the whatsapp icon a customer gets the I want to buy {PRODUCT} Product

It's just empty. Could you please assist what I did wrong? Already cleared my cache.

Knipsel.JPG

Share this post


Link to post
Share on other sites

Hello

I tried to insert it on my site, I have prestashop 1.7.6.0
with the classic theme it works, with my current theme in the footer it doesn't work, you can help me thanks.
here is the link: www.leathertrend.it

 

Share this post


Link to post
Share on other sites

Oi, o modulo funcionou somente no tema padrão

como faz para funcionar em outros temas?

prestashop_1.6.1.24

Capturar2.PNG

Share this post


Link to post
Share on other sites