1 源码安装
Manual installation
- Download the extension installation files here: https://github.com/tawk/tawk-magento-2/archive/master.zip, 本地下载 : tawk-magento-2-master
- Extract the tawk-magento-2-master/app folder from the package
- Copy the tawk-magento-2-master/app folder to the root folder of your website (it will ask you to overwrite the existing folder, just say yes as it will only add the contents of the folder to the root directory)
Standard installation
- Be sure that Composer is installed. If not you can install it by entering in your website root directory and executing this command: curl -sS https://getcomposer.org/installer | php
- When the composer has been installed, open it and type: php composer.phar require tawk/widget
2 命令部署
When that is done, you will now need to execute these command lines from your website root directory:
- php bin/magento module:enable Tawk_Widget
- php bin/magento setup:upgrade
- php bin/magento setup:static-content:deploy
- php bin/magento cache:clean
Done!
3 获取安装源码或链接
登陆https://www.tawk.to/, 在后台系统找到, 如下源码或者接口安装到你的站点即可.
4 注意事项和问题解决
在安装使用过程中注意:
1,Magento2页面出现空白, 或者出现错误, 很多情况下是文件权限问题或者缓存问题
可以通过清除缓存(包括浏览器缓存),更改文件权限解决
2,Magento2在安装新的插件或者模块的时候一定要注意文件的读写权限问题,
权限设置不当会导致站点生成静态文件和缓存的时候出现有些文件生成失败,
导致网页加载文件失败,从而导致插件或组件功能异常.