Сallback

Сallback for Shop-Script 7

Making a request for a callback

Description

Callback plugin for Shop-Script

Features

Shop customers can request a callback by entering name and phone number. Also they can enter comment.

Then request sends to the administrator email, which specified in the plugin settings. If the email address is not specified in settings, will be used the general shop email.

Administrator can view requests in a separate tab of the admin panel and edit the form's appearance: size, text, color. All changes are dynamically displayed in the form preview in live-mode. There is input mask for the phone that allows you to set a specific number pattern.

Settings

1. To use the plugin in the Shop app switch on «Status of frontend_head hook» plugin setting and scripts are automatically loaded in your template.

2. To use the plugin in other apps it is necessary switch off «Status of frontend_head hook» plugin setting and insert in the template of your application to the end of the tag <head> the next code:
{if $wa->shop}{shopCallbPlugin::display()}{/if}

3. To bind the form to the html-element in the template, you must either create a new or use an existing one.
For example, you have the template has the next element:
<a href="#" id="call-back-button">Callback</a>
Specify in the «Selector of the button of callback form» plugin setting the next - #call-back-button - and after clicking on this item will open the callback form.

You can specify the sender email address (will be listed as the return address of the message) and the recipient email (to which to send messages).

Specificity

If you switch on «Status of frontend_head hook» setting, for the correct operation of the plugin in the current design theme needs to be connected frontend_head hook.