smartarget / bagisto-whatsapp-contact-us
Allow customers to contact you using Whatsapp
1.0
2021-06-06 17:23 UTC
This package is not auto-updated.
Last update: 2024-05-21 06:19:07 UTC
README
This extension integrates Smartarget Whatsapp - Contact Us plugin.
Requirements
Support
Need our help? Simply contact us and we will be happy to assist you.
Installation
Method for Non-Develoers:
- Go to the Bagisto admin
- Go to Configure >> General
- Add th following code under Custom Javascript (Replace the XXX with your own Smartarget ID. You can find it in your Smartarget Dashboard ):
document.head.appendChild(document.createElement('script')).src = 'https://smartarget.online/loader.js?u=XXX?source=bagisto';
- Click on Save
Methods For Developers:
Method 1 - Install with composer
Require this package with Composer
composer require smartarget/bagisto-whatsapp-contact-us
Add the ServiceProvider to the providers array in config/app.php
Smartarget\WhatsappContactUs\Providers\WhatsappContactUsServiceProvider::class
Run below commands before publishing assets to the public folder:
composer dump-autoload
php artisan optimize:clear
php artisan storage:link
Go to Whatsapp tab in main menu and configure app!
Method 2 - Install with package folder
Unzip all the files to packages/Smartarget/WhatsappContactUs.
Goto composer.json file inside the Bagisto root directory then add the following line under 'psr-4'
"Smartarget\\WhatsappContactUs\\": "packages/Smartarget/WhatsappContactUs/src"
- Goto config/app.php file then add the following line under 'webkul packages'
Smartarget\WhatsappContactUs\Providers\WhatsappContactUsServiceProvider::class
- Run below commands before publishing assets to the public folder:
composer dump-autoload php artisan optimize:clear php artisan storage:link
Go to Whatsapp tab in main menu and configure app!