Giter Site home page Giter Site logo

cbscheduler's Introduction

What's the purpose of this extension?

This extension adds options to schedule a callback from chat widget.

See image

See youtube video https://youtu.be/LF3q311KesQ

Integration with a bot

You can trigger modal window also from a bot.

See image

Direct URL

https://example.com/cbscheduler/schedule/(department)/<department_1>/(theme)/<theme_id>

Install

Execute SQL file doc/install.sql or

php cron.php -s site_admin -e cbscheduler -c cron/update_structure

Install composer dependencies

composer.phar update

Activate extensions in Live Helper Chat settings file.

... 'extensions' => array ( 'cbscheduler' ), ...

Why my visitor can't cancel a call?

Call can be canceled only if

  • All unique attributes matches scheduled call
  • Call status is scheduled

Updating

You can update two ways. By executing this command

php cron.php -s site_admin -e cbscheduler -c cron/update_structure

Or by executing SQL queries from.

https://github.com/LiveHelperChat/cbscheduler/tree/master/doc/db_updates

Commands in the chat

You can use this command in the chat to show modal window for the visitor !schedule

Showing schedule form directly from the page.

You can also have a custom button on your website to show window and modal window instantly.

New widget javascript

Open in the widget

// New widget
// For this cenario to work you have in your embed code to pass at-least one department.
// We will use very first department and it's schedule in that case.
// Opening popup is not supported
function scheduleCallbackNewWidget(){
    window.$_LHC.eventListener.emitEvent('sendChildExtEvent',[{'cmd':'cbscheduler','arg':{}}]);
    // Delay for 5 seconds
    // window.$_LHC.eventListener.emitEvent('sendChildExtEvent',[{'cmd':'cbscheduler','arg':{"delay":5}}]);
    window.$_LHC.eventListener.emitEvent('showWidget');
}

Event directly from the widget. Can be used in custom_html attribute in widget theme.

window.lhcHelperfunctions.emitEvent('extensionExecute',['cbscheduler',[{'delay':3}]])

Old widget javascript

// Old widget
function scheduleCallbackNewWidget(){
    lh_inst.executeExtension('cbscheduler',{"delay":0});
    // Delay for 5 seconds
    // lh_inst.executeExtension('cbscheduler',{"delay":5});
}

cbscheduler's People

Contributors

remdex avatar dependabot[bot] avatar michaelmeneses avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.