Personalization

Personalization

Melmiz843
Visitor
1 0 0

I have added a personalization text box by using coding on a product, but the box is showing up on all products. How do I make this for just 1 product?

Replies 3 (3)

muke5hy
Shopify Partner
7 1 2

You can check for specific collection, type or category and then show text box only for those products. 

If this fixed your issue Likes and Accept as Solution is highly appreciated.
Get EXPERIENCED Shopify developers at affordable rates visit capaxe.com for quick quote!
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

Akohub
Shopify Partner
183 6 40

Hey there @Melmiz843  👋  This is Alexis from Akohub's Marketing team!  

 

To make your personalization text box appear on only one specific product in Shopify, you’ll need to adjust the code to target that product specifically. Here’s a quick guide:

  1. Identify the Product ID:

    • Go to the product page in Shopify’s admin.
    • Look at the URL – it will have a number like .../products/your-product-name?id=1234567890. That number is your product’s unique Product ID.
  2. Edit the Code:

    • In Online Store > Themes, click Actions > Edit Code.
    • Open the file where you added the code for the personalization box. This is usually in the product-template.liquid file or within a product-related section.
  3. Wrap the Code in a Conditional Statement:

    • Use an if statement to check for the specific Product ID, so the box only appears on that product.

Here’s an example of how your code might look:

{% if product.id == 1234567890 %}
<!-- Your personalization text box code goes here -->
<input type="text" name="custom-text" placeholder="Enter your personalization">
{% endif %}

 

Replace 1234567890 with your actual Product ID.

 

This way, the text box will only appear on the product with the specified Product ID. Let me know if you need more help! 😊

If helpful then please Like and Accept Solution.
Need help with customer acquisition, retargeting, or retention through a loyalty program or retargeting? Check out our app.
Book a free 15-minute consultation with us to explore solutions tailored to your store! Schedule here.

Easify-Mark
Explorer
169 3 2

You can use the Easify Product Options app (free plan available) to create a text field and assign it to specific products. This setup requires no coding and can be completed in just a few minutes 🤗.

EasifyMark_0-1731054620606.png

 

Easify Product Options: Any product options app can help you create custom options, but Easify turns those options into sales and conversions!
Easify Inventory Sync: Automate inventory syncing for Bundles, Duplicates, and Raw Materials. Say goodbye to manual tracking headaches.
Easify Product Attachments: Enrich your store with downloadable content. Easily add PDFs and other files to product or any page.
>>> Try Apps for Free | 24/7 Live Chat Support