Buy In One Click
Categories
Component ID
2508972
Component name
Buy In One Click
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
OVERVIEW
Module buy_in_one_click allows customers to checkout directly from the product
page with just a single click, greatly reducing the time of ordering.
- The module adds a button on the product page.
- When clicking on this button opens a popup window with a form by enticing a
user to leave return data. - When a user fills in a pop-up form and clicks "checkout", new order with user
data is added in the database. A list of all orders can be viewed in the
configuration page.
FEATURES OF THE MODULE:
- buy_in_one_click don't use commerce and can be used not only for shopping.
You can install it for the orders and feedback (or other) forms. - Pop-ups form is fully configured with hooks.
/**
* Change order form and add 'phone' field after 'name' and 'mail' fields.
*/
function custom_form_buy_in_one_click_insert_form_alter(&$form, &$form_state, $form_id) {
$form['name']['#weight'] = -1;
$form['mail']['#weight'] = -1;
$form['phone'] = array(
'#type' => 'textfield',
'#title' => t('Your phone'),
'#weight' => 0,
);
return $form;
}
/**
* Write additional behavior for buy_in_one_click.
*/
function custom_buy_in_one_click_alter($form, $form_state, $node, &$order_text) {
// The function is called at the time of ordering
// Here we can send a letter to the moderator
// Or add any additional steps at the time of ordering
// We can also change the text for the order in the table.
}
- The module allows you to place a button in any blocks and other places of the
site. Use buy_in_one_click_getlink($node) function for it. - The button itself can be added as a field in the content type.
- Implemented integration with ins Rules.
DEPENDENCIES:
Fancybox
