Waitlist popup on product page doesn’t close after clicking confirm button

This topic has 6 replies, 2 voices, and was last updated 16 hours, 6 minutes ago ago by Abdul Moiz

  • Avatar: Abdul Moiz
    Abdul Moiz
    Participant
    December 30, 2024 at 12:11

    On product page lets say https://familycare.pk/product/d-check-mesh-nebulizer/ when you click add to waitlist and then in popup after clicking confirm, popup doesn’t close but on listing page or in quick view it closes successfully. It should show similar behaviour here as well and close automatically it added to waitlist.
    Check screen recording for explanation: https://monosnap.com/file/wr7k9WYfTbzirvpIYyfcTxkvUeitU7

    5 Answers
    Avatar: Abdul Moiz
    Abdul Moiz
    Participant
    December 30, 2024 at 12:13

    Credentials in private area

    Content is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    December 30, 2024 at 16:30

    Hi @Abdul Moiz,

    Please try adding the following code under functions.php file locates in your child theme:

    
    add_action('wp_footer', 'n2t_wp_footer');
    function n2t_wp_footer() {
        ?>
        <script>
            jQuery(document).on('xstore_waitlist_fragment_refresh', function (){
                jQuery('.et-close-popup').click();
            });
        </script>
        <?php
    }
    

    Hope it helps!

    Avatar: Abdul Moiz
    Abdul Moiz
    Participant
    December 30, 2024 at 17:20

    I have tried it and put in theme funcitons but it doesn’t work.
    I already shared with you access where you can check yourself.
    in child theme in theme functions file, near the end of file. plz check this code

    Avatar: Justin
    Luca Rossi
    Support staff
    January 1, 2025 at 13:47

    Hi @Abdul Moiz,

    We’ve updated the custom code a little bit.

    Could you please check again?

    Thank you!

    Avatar: Abdul Moiz
    Abdul Moiz
    Participant
    January 1, 2025 at 13:59

    I have checked it. It isn’t a good fix. It now even closes without checking if I consent checkbox.

    So it has side effects on listing and quick view too. Also if once opened popup and clicked button cannot open again on listing and quick view. Might be some side effects.

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.