Re: Removing default title field

How can I disable the 'Default Title' field for products without variants?

Helpshop
Tourist
7 0 2

Trying to remove an unnecessary field for products that don't have a variant. My products with variants are fine, it's the products that don't have any variants have a required field 'Option1' populate 'title' with a dropdown value of 'Default Title'

 

I exported the products and see the fields:

Option1 Name

Option1 Value

 

I read they are mandatory fields and if I have a product without variants I should set the fields to

Option1 Name

Option1 Value

Title

Default Title

 

When I do that the 'Title' dropdown with 'Default Title' is displaying on my phone. When I adjust the text the from Title and Default Title it updates the text to whatever I typed.

 

Are there any ways to disable this field or set it to not populate for products that do not have any variants.

 

Thank you!

Replies 9 (9)

KetanKumar
Shopify Partner
36929 3642 11996

@Helpshop 

can you please send store url so i will check and let you know 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Helpshop
Tourist
7 0 2

Thank you, Ketan, for taking a look.
The URL is jambandmerch.com

KetanKumar
Shopify Partner
36929 3642 11996

@Helpshop 

yes, please try this code

 {% unless product.has_only_default_variant %}
add your variant code
 {% endunless %}
If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Helpshop
Tourist
7 0 2

Thank you! Do I place that code within the product.json?

Helpshop
Tourist
7 0 2

Tried adding that code and received the attached error. Any suggestions is greatly appreciated. Thanks!

GemPages
Shopify Partner
5624 1261 1230

Hi @Helpshop,

 

Could you please share your store url ( with pass if your store password is enabled ) then I can see and suggest something for you?

 

Best regards,
GemPages Support Team.

 

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
Helpshop
Tourist
7 0 2

Thank you, GemPages, for taking a look.
The URL is jambandmerch.com

MandasaTech
Shopify Partner
723 146 153

Hello @Helpshop 

Please share your store URL.

☞ Helpful or Question answered? Please Click Like & Mark it Accepted Solution
☞ Want to modify or custom changes on store for affordable price? Click on Contact button here
☞ Email at info@mandasa.in
☞ Whatsapp at +918989609120 | Hire us at: Website Support Page
Helpshop
Tourist
7 0 2

Thank you, Shopify Community, for taking a look.
The URL is jambandmerch.com