Shopify themes, liquid, logos, and UX
Can someone assist me? I'm trying to add this custom field to only my Custom Essence product.
I've tried to follow other instructions, but I think I'm doing something wrong.
I've added custom liquid code to the product which shows up fine, it just shows on all products:
I've attempted to create a metafield:
Then I added this code to main-product-liquid, but it created an additional box in the wrong place:
{%- if product.metafields.custom.enable_product_personalization.value -%}
<label for="message" class="form__label">Want to add additional flowers?</label>
<div class="field">
<textarea id="message" class="text-area field__input" placeholder="Message" name="properties[Message]"form="product-form-{{ section.id }}"></textarea>
</div>
{%- endif -%}
I've also tried to connect a dynamic source to the liquid code on the product, but the metafield is not found.
Am I trying to do too many different things or maybe just adding the code to the wrong place?
Please advise! Thank you.
Solved! Go to the solution
This is an accepted solution.
Metafields can be confusing to deal with if you're not a developer. An easier option would be to create a separate product template that contains the custom field and assign it to the Custom Essence product. I can send a collaborator request if you want me to do it for you.
This is an accepted solution.
Metafields can be confusing to deal with if you're not a developer. An easier option would be to create a separate product template that contains the custom field and assign it to the Custom Essence product. I can send a collaborator request if you want me to do it for you.
That's very helpful thank you! I'm new to Shopify and didn't realize I could do that.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024