Re: Liquid Code

Liquid Code

OkieDogSupply
Tourist
4 0 0

I created liquid code for one product on my page - so customers can enter text. Do I have to re-add to other pages or is there a way to just use the same code over and over for other products?

Replies 8 (8)

PaulMartin
Shopify Partner
593 59 140

If your products share a similar section, you'll just need to add that code into the section and it will show up in the product pages who uses that section. 

[email protected]
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ
OkieDogSupply
Tourist
4 0 0

Hi PaulMartin! Thank you for the fast response. I'm new to shopify - BC transferee. How do I do that exactly? Or will it show up in the products automatically? If it shows up in the products automatically, if I delete it from say a product that doesn't need it, does it delete it for all products?

 

the sections added were nameplate line 1-3 and Comments. Unless there's a way to have customers leave comments at checkout vs individual products.

PaulMartin
Shopify Partner
593 59 140

Welcome to Shopify man.

I'm confused. You mentioned that you created the code for one of your product page, did you add that code to the section or does your theme doesn't use sections?

[email protected]
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ
PaulMartin
Shopify Partner
593 59 140

There's also a way to have customers to leave comments at cart, before checkout.

[email protected]
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ
OkieDogSupply
Tourist
4 0 0

I would prefer customers leave comments at cart before checkout vs individual product pages. How do I do that? 

I added the liquid code by going to theme, customize, finding the product, adding a text box, entering the code. Did my screen shot come thru?

OkieDogSupply
Tourist
4 0 0

OK PaulMartin

I'm going to need to start over. I see what you mean about sections - yes it's added to the section. But - I don't want it on all my product sections. Just some that need personalizing. 

And for comments - I'd rather only have that at checkout. 

Can you assist me?

PaulMartin
Shopify Partner
593 59 140

@OkieDogSupply 

Hi. Sorry, I cannot help you. I'm busy with prioritizing time to the clients I have.

Hope you understand. Thanks!

[email protected]
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ

Van_Nguyen_GSG
Shopify Partner
161 23 42

Hi,

 

You can add this code to the 'main-product.liquid' to add a texarea which allows shoppers to leave a custom note in the product detail page:

<textarea
 name="properties[Extra notes]"
 class="custom_product_notes"
 placeholder="Enter your notes here..."
 form="{{ product_form_id }}"
></textarea>
Helping Shopify merchants build stores that convert.
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- If you still need help, feel free to reach out to me at: [email protected]
Cheers!