single.vm
In addition to other standard variables like $cart
, StoreFront system screens (display and post form data, such as checkout screens) have a $form
variable that contains fields and data specific to that screen. Â
Listed below are the form fields specific to this screen template.
$form
variables for template single.vm
Name | Type | Formal Syntax | Form Data? | Required on Post? | Comments/Sample Usage |
---|---|---|---|---|---|
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
| Â | Â | Â | |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
checkoutTermsAgreement | Agreement | $form.checkoutTermsAgreement | Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
returnPolicyAgreement | Agreement | $form.returnPolicyAgreement | Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
| Â | Â | Â | |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
| Â | Â | Â | |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
|
| Â | Â | Â |
|
| Â | Â | Â | |
|
| Â | Â | Â | |
|
| Â | Â | Â | |
|
| Â | Â | Â | |
|
| Â | Â | Â | |
|
|
| Â | Â | Â |
Â
$form
 methods for template single.vm
Method | Signature | Comments/Sample |
---|---|---|
getItemIdsAsJson | string $form.getItemIdsAsJson() | returns a json array of item ids. very useful if you need the cart item ids in a javascript array. |