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

This topic has 8 replies, 2 voices, and was last updated 2 days, 9 hours 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

    7 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.

    Avatar: Justin
    Luca Rossi
    Support staff
    January 2, 2025 at 10:34

    Dear @Abdul Moiz,

    We hope this message finds you well.

    By default, the popup should automatically be hidden after submitting your email. To address the issue you are experiencing, we kindly request that you remove all custom code to ensure there are no conflicts with the waitlist popup functionality.

    If the issue persists, we recommend testing for potential conflicts with third-party plugins. To do this, please temporarily disable any non-essential third-party plugins that are not part of the XStore theme package. For your reference, you can find the list of included plugins here: https://www.8theme.com/documentation/xstore/plugins/included-plugins/.

    After deactivating the unnecessary plugins, we kindly ask that you clear your browser’s cache and check if the issue has been resolved. This step is important, as conflicts with third-party plugins can sometimes lead to unexpected behavior.

    Should you require further assistance, please do not hesitate to reach out.

    Best regards,
    The 8Theme Team

    Avatar: Abdul Moiz
    Abdul Moiz
    Participant
    January 2, 2025 at 11:50

    Thank you for the update. We have checked and found a custom js which was affecting it. We have removed that and it works fine now on product page.

    But we have found another bug related to it on the listing page which might be theme-wide bug so would request your kind cooperation to fix that.
    On listing page, when out of stock button is showing in list and in quick buy if we open waitlist popup it opens two popups
    check video for details: https://monosnap.com/file/Gg9uVcvyb8AGU1fLuaQwd1bUBQMJ9e

  • Viewing 8 results - 1 through 8 (of 8 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.