How can I add a product options modal to my product page?

Hi

In the product page, I want to add a product options section where the section is showing as button/ buttons when the client clicks it shows a modal window/pop up where the variants are shown and the pop up closes when the client picks a variants.

Thanks

This is a lengthy functionality build. You can’t find a direct solution. If you need custom coding help, feel free to contact.

1 Like

I know I can’t find a direct one and I tried coding but not exactly what I need, I will appreciate it If you can help.

Create a modal and add the click eventlistener on the button.

  1. Loop through product variant with selector and option html

  2. add the click eventlistener again on variant option and hide the modal

Is that it?

First try to implement this correctly.

1 Like

Thank you, Done.

What is next, please?