DocumentationSharing

Widget and hosted page

Two ways to offer the quoting tool to customers: the widget on the shop's website and the hosted page.

The widget on the shop's site

The widget is one line of HTML inserted into the shop's website. The Widget tab in the panel's sidebar contains the snippet with the public key and the field Allowed embedding origins (one per line):

  • enter one address per line, with https:// and without a path;
  • add the www variant as a separate address;
  • with addresses entered, the widget loads only on those sites;
  • with the field empty (the default), the widget loads on any site;
  • the list does not apply to the hosted page.

By default, the widget appears where the snippet is inserted. The attribute data-target="#id" places it inside the chosen element of the page instead. In both cases the height of the widget follows its content.

Step by stepPutting the widget on your siteStep 1 of 6
  1. Quotes started today against the daily limit, and whether new quotes are paused.
  2. Paste the code into your website where the configurator should appear.
  3. The default language and the extra languages the configurator offers.
  4. Currencies the customer can switch the prices to, at the ECB rate or your own.
  5. The addresses of the sites the widget may be embedded on, one per line.
  6. The number of quotes a day the widget accepts; 0 turns the limit off.
Widget - example data

Widget - example data

The hosted page

The hosted page is the quoting tool at the shop's own address (quoting.metronq.com/shop-name), with the shop's logo and colour. It requires no change to the website. Send the link to customers directly, or place it behind a button such as Get an instant quote. With white-label, the hosted page can run under the shop's own domain.

Take quotes on the hosted page (Widget, Setup, the Hosted page and quote links card) stops quotes from being started on the hosted page, under the shop's own domain too: the customer sees a page that does not exist. The widget embedded on the shop's website keeps working. Links to quotes, combined offers and payments still open; quote links have their own switch in the same card.

Several files at once

Several files at once (Widget, Setup, the Hosted page and quote links card) lets the customer upload up to 10 files in one go, in the widget and on the hosted page. It is off by default. Each file is a quote of its own and counts against the quote limit. The widget groups the quotes of one upload into a combined quote, shown in the panel as Customer's upload (widget).

  • The questions needed before analysis (sheet thickness and units of a DXF, units of an STL or OBJ) are asked one file at a time, each under the name of the file it is about.
  • The customer sets the parameters of each part separately. Priced parts are ordered together at once, with one minimum order surcharge and one shipment; the rest can be ordered later.
  • Parts held for review are approved or rejected like any quote. Approving one part sends no e-mail. When the shop decides the last of them, a customer who left an e-mail address gets one message with the offer's link and code. With customer links switched off, this message is not sent.

The configurator's language

In the Widget tab, select the default language under Default widget language and the other languages the configurator offers to customers under Extra languages. With more than one language switched on, a language switcher appears in the header, and the configurator starts in the visitor's browser language if the shop offers it.

To set the language of one embed, add the attribute data-lang="en" to the snippet, or the parameter ?lang=en to the hosted page address. Use this, for example, on the English version of a website that should quote in English regardless of the browser language. It works only for the default language and the languages under Extra languages; any other value is ignored.

The language the customer quoted in is stored on the quote, and the e-mails to that customer are sent in it. No e-mail to the customer contains the quote PDF; the shop exports the PDF in the panel, where the language menu marks the customer's language. The language of the panel interface has no effect on any of this.

Customer currencies

In the Widget tab, Customer currencies lets the customer switch the widget's prices to another currency. Quotes, the price list and the panel stay in the shop's currency: only what the customer reads is converted. Up to 10 currencies, each with:

  • the rate: Current rate (ECB, daily), the European Central Bank's rate of the day, or Fixed rate, typed by me. A currency for which the ECB publishes no rate is not shown to customers;
  • Markup on the rate: optional, in percent;
  • Freeze the rate on the quote: the customer and the order get the rate of the moment the currency was picked.

The customer picks the currency in the widget, on the price screen beside the total. The order is stored in the customer's currency, together with the rate. On the quote screen, PDF in … exports the quote converted at the rate the customer is shown.

Daily quote limit and abuse protection

The public key of the widget can be read by anybody from the page source. The Widget tab therefore also contains the Daily quote limit, 50 by default:

  • it counts every quote started that day, from any source, finished or not;
  • it resets at midnight in the shop's time zone;
  • 0 turns it off.

When the limit is reached, or the plan's quotes are used up, customers see a notice that online quoting is paused and are asked to contact the shop directly.

The Status section of the Widget tab shows the number of quotes started today against the limit, whether new quotes are paused and why, and the pages the widget has been opened on.

Every quote has a permanent link, protected by a four-digit access code, which the customer can open later or on another device. The link and the code are sent in the approval e-mail, in the order confirmation and in the Send the quote by e-mail message from the panel. The panel can copy both. A shop can switch customer links off, for all quotes or for one: then no link or code is sent or shown (Quotes, export and sharing).

A combined quote has its own permanent link on the hosted page, quoting.metronq.com/shop-name/offer/1001, and its own four-digit access code. The link works once the combined quote is shared.

Widget design

The Widget tab, Design view, sets the look of the widget and the hosted page and the texts the customer reads. The screen is available to the account owner. The settings are on the left, a preview of the widget with sample data on the right. An empty field means MetronQ's default value. The settings do not change prices.

Draft, publishing and versions

  • Save draft: saves the changes without publishing. Customers still see the published version.
  • Publish: saves what is on the screen and makes it available to customers as a new version.
  • Discard changes: deletes the draft and unsaved changes. The widget stays at the published version.
  • Versions: the last 10 published versions with their date and author. Restore publishes the selected version at once, as a new version. Edit loads it into the editor, and the widget changes after publishing.
  • The message Changed in another window. means the save was refused. Reload loads the current state.
  • The whole configuration can be up to 64 kB.
  • When the MetronQ team suspends a configuration, customers see the default widget and the panel shows a message. The settings remain and can be edited.

Preview

Above the preview, select the screen, the language, the placement (On your website, Hosted page) and the width (Phone, Tablet, Desktop). Screens: File upload, Parameters, Price, Price awaiting approval, Quote declined, Order form, Order placed, Drawing review, Access code, Quoting paused. Clicking a field in the Texts section switches the preview to the screen and language of that text.

Look

  • Starting point: Standard, Industrial, Soft, High contrast, Dark. A choice fills the fields below, which can then be changed.
  • Colours: Brand colour, Page background, Cards and fields, Text, Lines, as a hex code. Brand colour is also the accent colour in the PDF. The panel warns about weak contrast but does not block saving.
  • Type: Headings font, Text font (10 fonts to choose from), Text size, Heading weight.
  • Shape: Corner rounding, Spacing, Shadows.
  • Buttons: Corner rounding, Height, Text weight, Style (Filled, Outline), Letter case (As written, UPPERCASE).
  • Logo: a PNG, JPG or WebP file up to 2 MB and 25 MP, or an https address. An image from an address is copied to MetronQ on saving. If it cannot be fetched, the save is refused.

Layout

  • Header: Shop name, Header on my website, Header alignment. Without a logo, the shop name is always shown. The hosted page always has a header.
  • Logo height: requires a logo.
  • Width: the largest width of the widget's column.
  • Step bar: Numbers and names, Numbers only, Hidden.
  • 3D model position: Left, Right, Above the parameters. On a phone the model is above the parameters.

Texts

The Texts section changes the wording of the widget's texts, separately for each language the shop offers, on every plan. An empty field shows MetronQ's text in that language. The limit is 80 or 600 characters, depending on the text. Placeholders such as the shop name are listed under the field; other placeholders are refused.

Screen layout and own CSS

Screen layout and Own CSS are available on the Enterprise plan or after MetronQ switches them on for the account. When this access ends, the widget stops applying them.

  • Screens: File, Parameters, Price, Order, Confirmation. The order of the steps is fixed.
  • MetronQ's blocks can be moved and hidden. Blocks with a padlock cannot be hidden: the file drop area, the 3D model and parameters, the price and specification, the order form and summary, the confirmation.
  • Blocks of your own: Heading, Text, Notice, Image, Button or link, Space, Divider line, Form field. Such a block has separate content for each language.
  • A button or link leads to an https, mailto: or tel: address.
  • A form field can be added on the File and Parameters screens (the answer is kept with the quote) and on the Order screen (the answer is kept with the order).
  • Limits: 40 blocks per screen, 30 fields across all screens, 30 options per field.
  • Own CSS: up to 20 000 characters, applied after MetronQ's stylesheet, inside the widget only. Refused: url(), image-set() and similar fetching functions, @import, @font-face, @namespace, @charset, the backslash, the < character and script constructs.
  • The Classes, screens and variables list gives the names that do not change between releases. Other classes may change.

Order form

The Order form section of the Design view sets what the widget asks when ordering. It works on every plan, including for an order from a combined quote. The server applies the published version: a hidden field is stored empty, and an order without a required field is refused.

  • E-mail and Full name: always required.
  • Phone: Required by default. Can be set to Optional or Hidden.
  • Buyer (person or company): Customer chooses by default: above the form the customer picks Private person or Company. Companies only skips the choice and takes orders from companies alone. Private persons only does not ask about a company.
  • A company fills in the Invoice details card: Country, the tax ID (NIP (Polish tax ID) for Poland, VAT number or tax ID elsewhere), Company name and the address. All are required, also when the address is set to optional or hidden. The server checks a Polish NIP's checksum; a number from another country must have 4 to 30 letters, digits and separators. An EU VAT number is stored with its country prefix.
  • Delivery address: Required by default. One switch covers the street, postcode and city.
  • Notes: Optional by default. Can be set to Required or Hidden.
  • When the price list adds shipping and the address is optional or hidden, the panel shows a warning.

Additional fields:

  • Let the customer give a different delivery address: adds a tick box under the address. When ticked, the customer gives a separate address, and all three fields are required. Requires the address to be switched on.
  • Add field: up to 15 fields of your own. Ready-made presets: PO number, Delivery date. Answer types: Short text, Long text, Number, E-mail, Phone, Date, Choice from a list, Tick box. Choice from a list needs at least one option and takes up to 30.
  • Add consent: up to 5 tick boxes. The text may contain links in Markdown syntax. Needed to order blocks the order unless it is ticked. The answer is stored even when the customer did not tick the consent.
  • The Move up and Move down buttons change the order of the rows.
  • Clicking a row opens its name for editing, separately for each language. An empty field means MetronQ's name.

The answers are encrypted and stored with the field's name at the time of the order, so a later change of the field does not change them. They are shown in the order details and in the e-mail to the shop. The integration API does not return them.