I’m currently making a landing page for a product (an additional page, on top of the normal page that you can go to through the shop page) and I want to be able to have a “buy now” button directly on that page that redirects to checkout.
I’ve tried adding a new product template, but I’m really confused on how to set the add to cart button to add a specific product, especially as this is on a page, not a product template ( page.journal-landing-page.liquid ). The main reason is because I don’t want the normal website header and footer on this page.
Right now, I have this:
{% form “product”, product %}
{% endform %}
But I’m getting this instead of the button: “Liquid error: product form must be given a product”
Thank you for your response. The code still does not seem to work: I think the code you provided redirects to the cart, but since this button is going to be on a regular page (not a product page), it doesn’t add anything to the cart. I need it to add a specific product to the cart when you push the button, so that’s the part that I’m stuck on.