New here, not sure if this is the right spot to ask this question.
I am trying to add a feature to a product page where a customer can add a customization option that includes these steps.
-
Click the customization check box.
-
Opens a comment box to add notes of which they want changed - this box is mandatory and if no comments are added - it restricts them from adding to cart
-
once comment section is filled out, customer adds to cart - it adds the main product + the add on product to the cart.
-
All the information is processed and after check out I am provided with the main product + the notes they added for customization.
Using Chatgpt, it provided me with coding which directed me to add to main-product.liquid and specified the spot in which it should go. This code showed the checkbox on the product page, when clicked it popped open the comment box. But, I was able to add the product to the cart without comments and it did not add the additional product to the cart.
The coding linked the product ID & the Variant ID of the add-on product that is hidden but active on my store.
But, there is something missing and I do not have experience with this type of thing - chatgpt can only help so much before its not able to.
Any thoughts on how I can trouble shoot this? Thanks in advance!