Throttle Builder · Components · Commerce

Customer greeting

A greeting with the first name of the signed-in customer. Signed out, it shows the guest text, or nothing.

The Customer greeting component in the Components library, with its description and settings
The Customer greeting component in the Components library, with its description and settings

What it is for

A greeting with the first name of the signed-in customer, such as "Hi, Sam". Signed out, it shows the guest text, or nothing.

Where you can use it

On any page, template, saved section, header or footer.

In the editor, open the Add tab of the left panel and drag it into a column. Its type is commerce.customer-greeting, version 1.

Options

Content tab

OptionKeyAllowed valuesDefault
Greeting ({name} is the first name)greetingText, up to 200 characters. One value per language.“Hi, {name}”
Text when signed outguestText, up to 200 characters. One value per language.Empty

Style tab

OptionKeyAllowed valuesDefault
AlignmentalignLeft, center, right or justify.left
ColourcolorA theme colour (token:name) or a hex colour (#rrggbb or #rrggbbaa).Empty
Sizesizexs, s, m, l, xl, 2xl, 3xl, or 8 to 200 px.m

Every component also has the common options: Hide, Anchor, Space above, Space below, Entrance animation and Entrance delay.

Data

This component shows store data. In the editor, choose what it shows under Data on the Content tab. An AI agent sets it with set_data_binding.

InputNameTakesRequiredFilled by
CustomercustomercustomerNoCustomer (throttle.customer)

Responsive behaviour

Every option can be set again for tablet (768 to 1024 px) and phone (767 px and below): switch the device at the top of the editor and change it there. Tablet starts from the desktop value and phone from the tablet value, so you only set what differs.

Alignment and size can be set differently on tablet and phone.

SEO and accessibility

The customer is known only in the browser, so nothing is written on the server and the greeting appears after the page loads. It adds nothing for search engines.

With an AI agent

An agent adds it with add_widget and changes its options with update_node, using the keys above. See the MCP tool reference.

The widget an agent adds
{
  "type": "commerce.customer-greeting",
  "v": 1,
  "props": {}
}
Generated from the code
The option tables on this page are generated from the component definitions in @usethrottle/builder-schema 0.4.2 and @usethrottle/storefront-react 0.4.5.