Skip to content

Commit

Permalink
translated php syntax to twig format in admin tawkto.twig; added enab…
Browse files Browse the repository at this point in the history
…le_visitor_recognition condition in embed tawkto.twig;
  • Loading branch information
alvinjohnsonso committed Feb 26, 2021
1 parent 494f485 commit 99d00c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ Visit our [Help Center](https://help.tawk.to/) for answers to FAQs

## Changelog

### 2.1.0
* Added enable/disable option for visitor recognition feature.

### 2.0.0
* Updated module for Opencart 3 compatibility support.

Expand Down
5 changes: 3 additions & 2 deletions admin/view/template/extension/module/tawkto.twig
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,9 @@
<span class="attrib_desc">Enable sending of customer details to tawk.to dashboard when the customer is logged in.</span>
</label>
<div class="col-lg-6 control-label ">
<input type="checkbox" class="col-lg-6 " name="enable_visitor_recognition" id="enable_visitor_recognition" value="1"
<?php echo ($display_opts['enable_visitor_recognition'])?'checked':'';?> />
<input type="checkbox" class="col-lg-6 " name="enable_visitor_recognition"
id="enable_visitor_recognition" value="1"
{{(display_opts.enable_visitor_recognition)?'checked':''}} />
</div>
</div>
<div class="form-group col-lg-12" style="margin-bottom: 1rem;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script type="text/javascript">
var Tawk_API=Tawk_API||{},Tawk_LoadStart=new Date();
{% if logged_in %}
{% if logged_in and enable_visitor_recognition %}
Tawk_API.visitor = {{visitor}};
{% endif %}
Expand Down

0 comments on commit 99d00c9

Please sign in to comment.