How can I display the upload button only for specific product variants?

Hi,

I have a store where customers can choose to upload a picture so we can paint accordingly on the product page.

One variant is standard, where the customer buys the standard product.

The other variant the customer can choose is that we paint accordingly to the picture the customer is uploading.

The problem is that the upload button is shown on both variants which is confusing for the customer and I need it only to be shown when the customer is choosing the variant where we will paint it accordingly.

I need to make it show only on specific variants for some products in my store and I wonder if it is possible to show only for the specific variant?

1 Like

Hi @Log

You need to add a logic and only show the upload to the specific variant. I recommend using the metafield true or false in the variant. But still, you need to add a javascript to show and hide the upload with customer’s input. I recommend hiring a developer to do so

{% for variant in product.variants %}
{% if variant.metafields.custom.show_upload %}
Show upload...
{% endif %}
{% endfor %}

Hi and thank you for your reply,

I am not very tech savvy so I wonder if it is something else part from the Variant ID that I need to change or add in the code you embedded?

Best regards

Oh so I must hire someone for this job?

I understand, I asked my theme admin and they said it would cost 500$ to fix this within the theme. Is this a reasonable cost for this problem do you think?

Maybe I should just add some text that clarifies that please just upload an image if you are selecting this very variant.

Best regards

Oh my. That is overprice in my opinion. I can do this for you for an affordable price. Let me know if you are interested.

Oh that sounds great what price can you offer?

Best regards