Hello,
I created a test product that has four variations:
- No Inscriptions
- First name (+$50)
- Quote - 5 words max (+$100)
- First name & Quote - 5 words max (+$150)
and the following two line item property fields:
- First Name Inscription:
- Quote (5 Words Max):
I’m hoping someone can help me code the below basic functionality:
-
Currently when the product page loads it displays the default “No inscriptions” variation - I would like both the “First Name Inscription” and the "Quote (5 words max)” line item property fields to be hidden when this variant is selected.
-
When the “First name (+$50)” variation is selected I want to display the "First Name Inscription:” line item property field ONLY. This field needs to be required - so the customer must add text into it in order to proceed to the checkout.
-
When the “Quote - 5 words max (+$100)" variation is selected I want to display the "Quote (5 words max):” line item property field ONLY. This field needs to be required - so the customer must add text into it in order to proceed to the checkout.
-
When the “First name & Quote - 5 words max (+$150)" variation is selected I want to show BOTH the "First Name Inscription:” and "Quote (5 words max):” line item property fields. Both fields will be required so the customer must add text into each of them in order to proceed to the checkout.
Any help would be greatly appreciated!