Setting up the queue and watching for changesįirst, we'll set Shopify.queue equal to an array where we can keep track of our items that are going to be added to the cart: Let's dig into some of the Javascript from the template code to understand how things are working. Go check out this page on the front end of your website and see it in action!.After you created your page, scroll all the way down to the Template section, and select page.order-form in the drop-down.Note that each variant will be on it's own line. The form will loop over every product in this collection and display it as it's own line in the form. Create a product collection with handle quick-order as per these instructions.If you're interested, we'll go over this code in more detail in the next section. Replace the content of your new template with this code. Create a new template for page called order-form
0 Comments
Leave a Reply. |