This topic has 6 replies, 2 voices, and was last updated 16 hours, 6 minutes ago ago by Abdul Moiz
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
Credentials in private area
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!
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
Hi @Abdul Moiz,
We’ve updated the custom code a little bit.
Could you please check again?
Thank you!
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.
You must be logged in to reply to this topic.Log in/Sign up