Shopify themes, liquid, logos, and UX
I want to add the option that if the variant 'customize' is selected then the option to engrave appears.
Below is the code for the engraving section. Currently, it is under the buy.buttons.liquid so it appears all the time regardless if the variant 'customize' is selected or not.
<p class="line-item-property__field">
<label for="Engrave">Engrave</label><br>
<input id="Engrave" type="text" name="properties[Engrave]" style="width: 100%; line-height: 2;">
</p>
Solved! Go to the solution
This is an accepted solution.
Hey @bndcreationsllc,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.line-item-property__field:has(#Engrave) {
display: none !important;
}
body:has(input[value="Customize"]:checked) .line-item-property__field:has(#Engrave) {
display: block !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hey @bndcreationsllc,
Can you share the link to your store please? Thanks!
This is an accepted solution.
Hey @bndcreationsllc,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
.line-item-property__field:has(#Engrave) {
display: none !important;
}
body:has(input[value="Customize"]:checked) .line-item-property__field:has(#Engrave) {
display: block !important;
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
Hi @bndcreationsllc,
To implement an engraving text field that only appears when the "Customize" variant is selected, follow these steps using the Easify Product Options app. For example:
App Settings:
As 2024 wraps up, the dropshipping landscape is already shifting towards 2025's trends....
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024