PLEASE HELP - How do I add 'render' liquid to add to cart button in Dawn 10.0 ??? #2764
Replies: 3 comments
-
|
Nobody ? |
Beta Was this translation helpful? Give feedback.
-
|
@johnlfitz01 you'd put this either in the buy-buttons, or more sanely create this a block for the main-product section. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#form i.e. every input would need it product_form_id variable https://github.com/Shopify/dawn/blob/main/sections/main-product.liquid#L77 |
Beta Was this translation helpful? Give feedback.
-
|
Hi! In Dawn 10+, the key is that your personalization inputs must be rendered inside the same Shopify that Dawn uses for the product purchase, so the inputs submit with the Add to Cart.The practical approach is:
Example idea:
Also ensure the input names are |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm scratching my head here.
On www.giftsfinder.co.uk, we sell personalised products. I want to move to Dawn theme given it's speed.
In my current (live) theme, I inject the following liquid into the "product-form.liquid" in order to capture the customer's photo uploads and / or personalisation text for that given product:
{% render 'personalisation' %}
I can't work out where the equivalent place to enter the same code in the Dawn Theme 10.0.
Whenever I attempt to use the above render code nothing happens???
Some examples of how this renders in live can be seen at:
https://www.giftsfinder.co.uk/products/personalised-grey-pawprint-name-14cm-medium-pet-bowl
https://www.giftsfinder.co.uk/products/2024-personalised-photo-calendar
https://www.giftsfinder.co.uk/products/personalised-best-ever-photo-upload-mug
I'm stumped.
Any ideas? Much appreciated.
The 'personalisation.liquid' code is attached.
personalisation.txt
Beta Was this translation helpful? Give feedback.
All reactions