cart
Generate a form to start the checkout process based on the products currently in the shopping cart.
Params
form_type{String}The name of the desired form type.content{String}The form contents.hash{Object}form html attributes,optionalreturns{String}html
Example
{{#form 'cart'}}{{/form}}
class
{{#form 'cart' data-attr='1' class='cartFrom'}}{{/form}}
button
{{#form 'cart' data-attr='1' class='cartFrom'}}
<!-- cart info -->
<!-- checkout button -->
<button type='submit' name='checkout' class='button button--primary'>checkout</button>
{{/form}}
Was this article helpful to you?