Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello, I'm new to Shopify and I'm using the Honey theme. I thought I was facing a simple task, but I had to realize that my programming skills are not sufficient for this.
Specifically, I have several checkbox-type options and wanted to set default values.
I added the code "default_value": "Zitrone" to the product.name.json file in the template folder, but unfortunately, it didn't work.
Is there perhaps another place where I need to make this change? Could someone please help me out? I am reaching out to the community seeking your expertise and assistance in resolving this matter. Your help would be greatly appreciated.
product_custom_option_gYhePC": {
"type": "product_custom_option",
"settings": {
"type": "checkbox",
"option_name": "Kopfnote",
"label": "Kopfnote",
"required": false,
"values": "None, Bergamotte, Zitrone, Grapefruit, Mandarine, Orange, Lavendel, Orangenblüte, Pfirisch, Mango, Lemongras, Minze, Rosmarin, Pffeferminz, Salbei, Wintergrün, Teebaum",
"default_Value": "Zitrone",
"color_swatch_shape": "square",
"swatch_size": 50,
"min_selected_options": 0,
"max_selected_options": 3,
"max_date": ""
}
Best regards,
LittleDay
Hi @LittleDay,
You can consider using the Easify Product Options app to effortlessly create Checkbox options with the added benefit of setting a Default selected option value. This particular feature is available in the Free version of the app. Hope you can give it a try 🤗!
Storefront:
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025