If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / Attributes to open a text box if the check box is checked

Attributes to open a text box if the check box is checked

Started by jeffg23 on 27 Oct 2023, 8:18 PM · Views: 2,808

Results 1 to 2 of 2
27 Oct 2023, 8:18 PM
#1
jeffg23 avatar

jeffg23

New Zenner

Join Date:
Mar 2014
Location:
Jamestown, TN
Posts:
36
Plugin Contributions:
0

Attributes to open a text box if the check box is checked

I would like an attribute for Etching custom text on an item. I set one attribute with a checkbox, that if checked, adds $6 to the item. But I can't figure out how to open a text box if they select the checkbox so they can add the text they want etched.

27 Oct 2023, 9:01 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Attributes to open a text box if the check box is checked

That's going to be 'complicated'. Essentially, you want the product to have (along with any other attributes) a checkbox attribute and a TEXT attribute that's hidden unless the checkbox attribute is ticked.

Doable with customer jQuery that checks to see if the checkbox attribute is present and hides/shows the associated TEXT attribute based on the 'checked' status of that checkbox.