How to set default values for checkbox options in Honey theme?

LittleDay
Visitor
1 0 0

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

Reply 1 (1)

EasifyApps
Shopify Partner
541 16 42

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 🤗!

 

EasifyApps_0-1707131793535.png

cc.png

EasifyApps_1-1707131856944.png

 

Storefront:

EasifyApps_2-1707131956663.png

 

EASIFY - MAKING SHOPIFY SIMPLE & SWEET!
Easify Product Options: Create custom product options 10X faster & easier!
Easify Product Attachments: Effortlessly add downloadable PDF files (or any other format) to Shopify pages!
Try for Free | 24/7 Live Chat Support