Skip to content
  1. Docs
  2. Template settings
  3. Widgets

Widgets

How to set up the popup cart with recommended products, live search, the floating contact button and admin notifications in the Trust template for OpenCart 3.

3 min read

Widgets are interactive storefront elements: the popup cart, live search, the contact button, plus notifications in the admin. They are set up on the “Widgets” tab: Octemplates → Trust OCTemplates - template settings.

The popup cart opens after clicking “Buy”: the shopper sees the added product and the total and can go straight to checkout.

Popup cart settings

SettingWhat it does
Enable / When adding items to the cartAfter clicking “Buy” the popup cart opens with the selected product.
Free shipping fromThe amount from which shipping is free. The cart shows how much is left to add. 0 — don’t show.
Minimum order amountIf the cart total is lower, the shopper sees a warning. 0 — no limit.

A block of products in the popup cart so the shopper adds something else to the order. Products come from three sources — turn on the ones you need:

  • related products of the product in the cart — set on the “Links” tab in the product editor;
  • items sold together — requires the “Bought together” CRON, see general settings;
  • Recommended products — your own list: start typing a product name and pick it from the list.

Also set the block title for each language and the image size.

Contact button

A floating button in the corner of the storefront that opens a menu of contact options. Numbers and names come from “Contacts”; here you only choose what to show.

Contact button settings

Turn on the button and the channels you need: Messenger, Viber, Telegram, Teams, WhatsApp, Email, callback and a link to the contact page.

A channel appears in the menu only if its contact is filled in under “Contacts”. Callback works together with the module of the same name.

Suggestions with products, categories and brands right while typing a query — without going to the search page.

Live search settings

What to search and show

SettingWhat it does
Additional search with corrected queriesIf nothing is found, search tries a corrected query — for example, one typed in the wrong keyboard layout.
Search categories and manufacturersShows categories and brands in suggestions, with their images.
Show categories where products are foundIf no category name matches the query, shows the categories of the found products.
Display price, model, SKUExtra product data in suggestions.
Search in description and in product tagsExtends search beyond the name. Searching descriptions is slower on large catalogs.

Speed and limits

SettingRecommended
Delay — pause after the last typed character before the request, ms300–500
Number of characters to start product search3
Number of characters for category and manufacturer search and for additional search3
Product limit and category and manufacturer limit in suggestions5–8 and 3–5

Admin notifications

A bell in the admin header with notifications. Choose what to be notified about:

Admin notifications

  • Products information — out-of-stock products and reviews awaiting moderation;
  • Order information — orders in processing, completed orders and returns;
  • OCTemplates module information — new requests from modules, for example callback requests.