Deposit
object
Attributes
deposit.enabled
boolean
Returns true
if this variant or extra can be paid with a deposit.
deposit.rate
number
The deposit rate as a value between 0
and 1
. For example, if the deposit is 50% this will return 0.5
. If the variant has an active promotion the deposit rate should be applied to the promotional price.
Example
{% assign promotional_price = variant.price | apply_promotion: variant.promotion %}
{% assign deposit_price = promotional_price.fractional | times: variant.deposit.rate %}
{{ deposit_price | money }}
deposit.due_date
Date
The date the final balance payment will be due, if this can be calculate and the deposit is enabled. This can be formatted with Liquid’s date filters. The Creator may have set this as a number of days relative to the experience or accommodation start date, or they may have selected a specific date from a calendar. They also may have not set a value, in which case a default of 60 days before start date is used.
- When accessed through an experience slot it will return a date.
- When accessed through a single slot experience it will return a date.
- When accessed through a multislot experience or an accommodation, it will return
nil
.
Example
{{ deposit.due_date | date: "%Y-%m-%d" }}
{% endif %}