One-click buy
Ordering straight from the product page — the shopper leaves only a phone number.
A long checkout form scares people off: some shoppers abandon it halfway, especially on a phone. A quick-order button cuts the checkout down to a phone number — the order reaches you in seconds and you sort out the rest on the call.
What it does
- Puts a quick-order button next to «Add to cart»: the shopper taps it and fills in a short form right on the product page.
- Creates a real order — it lands in the Orders section alongside the rest, with stock reserved and notifications sent; the order shows that it came from the quick form.
- Leaves the shopper's cart alone: whatever they had put aside stays where it was.
- You pick the fields yourself: the phone number is always required, and name, email and a comment can be added, each with its own order and required flag.
- If you want, the form can also offer delivery and payment — the methods and prices are pulled for the city the shopper enters.
- Bot protection and the message shown after sending are configured separately for each storefront, and you can keep several sets of settings: a separate button for the catalogue product card, for instance.
What you need
- The button in your shop design: the bundled themes already carry it on the product page, in your own theme you place it where you want in the design editor.
- Configured delivery and payment methods — if you let shoppers choose them inside the form.
What appears in the shop
This is what a shopper sees once it is installed.
- On the product page, next to the «Add to cart» button, a «Buy in one click» button appears. Tapping it opens a short order form. The look of the button and the form is changed in the design editor, the set of fields — in the plugin settings. The button can be moved anywhere in your design: onto a catalogue product card, into the header, into the cart.
Купить в 1 клик
Покупатель заказывает товар прямо со страницы, минуя корзину и длинную форму оформления: нажал кнопку, оставил телефон — заказ уже у вас в разделе «Заказы».
Как вывести кнопку в магазине
Кнопка ставится тегом в оформлении магазина: «Дизайн» → редактор оформления,
шаблон страницы товара (product.html), рядом с кнопкой «В корзину»:
{oneclick_button product=$product}
product=$product обязателен — из него берётся, какой товар заказывают.
Кнопку можно поставить и в другие места, где есть переменная товара:
{* в карточке товара в каталоге, внутри цикла по товарам *}
{oneclick_button product=$p}
{* со своей надписью *}
{oneclick_button product=$product label="Быстрый заказ"}
{* если настроено несколько наборов полей — выбрать нужный *}
{oneclick_button product=$product profile="Опт"}
Плагин выключен или набор полей не найден — тег ничего не выведет, страница не сломается.
Что настраивается
- Набор полей формы — в настройках плагина. Можно оставить один телефон, а можно добавить имя, комментарий, выбор доставки и оплаты.
- Наборы под витрины: у каждой витрины может быть свой набор полей.
- Вид кнопки и формы — в редакторе оформления. При первом показе плагин
кладёт в вашу тему
templates/plugins/buy-one-click/form.htmlи файлы оформления рядом; обновление плагина их не трогает.
Что происходит после отправки
Создаётся обычный заказ — он виден в разделе «Заказы», участвует в остатках, уведомлениях и отчётах наравне с заказами с витрины. Отличить их можно по источнику заказа.
The form is picked by its number, not by its name
When there are several quick-order forms, the theme now picks one by number. It used to be picked by name — rename the form in the settings and the shopper silently got a different one, with different fields. Names still work, so themes already set up keep running.
You can see how to show the form
Each form now shows a ready line for your theme template with a copy button, and says where the look of the form itself is edited.
One-click order forms are configurable again
The settings screen is back in the panel: which fields the form has and in what order, whether to show delivery and payment in it, bot protection and the text shown after sending. You can have several forms — one per storefront.
One-click purchase understands packs
When the customer picks packs on the product page, the order is created for that number of packs: six packs of flooring no longer turn into six metres.
An icon of its own
In the «Plugins» section and in the list of installed items the add-on now shows its own icon instead of an identical box, so you find the one you need at a glance. The icon appears on shops running version 1.30.0 and newer.
Instructions in the package
The add-on now ships with setup and configuration notes.
Первый релиз