Forms
- New form types:
cart,coupon,coupon_remove,product_reviewandexpress_checkout. See form. - The tag takes an object and any HTML attribute:
{% form 'product', product, id: 'buy', class: 'buy' %}. Theproductform outputs the variant input for you. return_tosets where to go after a successful post: a store path,backorcheckout.- Inside a form,
formdescribes the last post of that form:posted_successfully,errorsand the submitted values, for exampleform.email. Thedefault_errorsfilter lists the errors. - The
cartform updates quantities, saves the note, clears the cart and goes to the checkout.cart.notereturns the note.
Search
- The search template has a
searchobject withterms,performed,resultsandresults_count, and{% paginate search.results by 24 %}paginates the results. See search.