Skip to main content

[bec_quote]

Shows a compact availability / price line using the cached quote service—ideal beside thumbnails on archives or lightweight layouts.


Where to put it

Unit archive loops, Related Units grids, hero strips—anywhere [bec_booking_summary] would feel too heavy.


Attributes

AttributeDefaultMeaning
unit_id0Target Units post ID; 0 uses current loop post.
show_ratesneverOptional multi-rate list below the headline price. Truthy: 1, always, yes, true. auto lists rates only when more than one exists. Falsy: 0, never, no, false.
price_modetotaltotal (stay total) or per_night (nightly amount). Adds class bec-shortcode-quote--per-night.
currency_displaysymbolcode (e.g. EUR) or symbol (e.g. ).
currency_positionafterbefore or after the amount.
decimals2Decimal places (04).
decimal_sep(locale)Decimal separator. Only applies when both decimal_sep and thousands_sep are set.
thousands_sep(locale)Thousands separator. Pair with decimal_sep for explicit grouping.
number_styleeulocale, eu (e.g. 1.234,56), or us (e.g. 1,234.56).

Site-wide money defaults: filter bec_money_format_defaults (context bec_quote).

When the unit is not available, the root element also gets class no-results.


Examples

[bec_quote]
[bec_quote show_rates="always"]
[bec_quote unit_id="456" show_rates="0"]

Per-night headline with symbol before amount:

[bec_quote price_mode="per_night" currency_display="symbol" currency_position="before" number_style="eu"]

Visitor output

Requires complete URL context—otherwise empty.

When multiple rates exist and none is selected in the URL, the headline may show a translated “From %s” line (Italian sites: “Da %s”).

bec_quote on archive card


CSS hooks

  • Root: bec-shortcode-quote, bec-shortcode-quote--per-night, no-results when unavailable
  • Rate list: bec-shortcode-quote__rates, bec-shortcode-quote__rate, bec-shortcode-quote__rate--selected
  • Labels: bec-shortcode-quote__rate-name, bec-shortcode-quote__rate-price

Tips

Developers can adjust wording/HTML via bec_shortcode_quote_text / bec_shortcode_quote_html filters, or format amounts with bec_format_money and bec_currency_symbols.