Home Forums WoodMart support forum Promo Popup button problem

Promo Popup button problem

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #554861

    kdimitrov
    Participant

    Hello. We have a promo popup with a button that redirects to the shop. The popup shows if the user scrolls down.

    The problem is after the button click and the redirect the popup shows up again in an loop.

    The problem seems to be not present in Safary only.

    https://martinez-perfume.com/shop/

    #554971

    Luke Nielsen
    Keymaster

    Hello,

    Please send me access to the admin panel so I can look closer at it.

    Thank you for your time.

    Kind Regards

    #555141

    kdimitrov
    Participant

    I have provided you with an account. Hope you can manage in the main language.

    #555244

    Luke Nielsen
    Keymaster

    Hello,

    May I disable 3rd party plugins and enable the parent theme for testing?

    Thank you in advance.

    Kind Regards

    #555245

    kdimitrov
    Participant

    Please dont the site is in production. Can you please do it later at night. We have ads and we need to know when you are going to test so we can stop the ads.

    #555261

    Luke Nielsen
    Keymaster

    Hello,

    In this case, I suggest cloning a site and moving to the staging platform (where we can test issues, and enable/disable plugins thus such changes will affect the production site). The below article will help you to create it:
    https://www.wpbeginner.com/wp-tutorials/how-to-create-staging-environment-for-a-wordpress-site/

    Kind Regards

    #555490

    kdimitrov
    Participant

    https://martinez.keyweb.fun/wp-admin/

    This is the staging website. With the same login

    #555760

    Luke Nielsen
    Keymaster

    Hello,

    The promo popup is not designed for such functionality as you have, we suggest using the code below to fix that issue:

    (function($) {
    	$('.wd-promo-popup a').on('click', function(e) {
    		Cookies.set('woodmart_popup_' + woodmart_settings.promo_version, 'shown', {
    			expires: parseInt(woodmart_settings.promo_version_cookie_expires),
    			path   : '/',
    			secure : woodmart_settings.cookie_secure_param
    		});
    	});
    })(jQuery);

    Paste the code into the “Global JS” area in Theme Settings -> Custom JS.

    Kind Regards

    #555792

    kdimitrov
    Participant

    Thanks is works.

    #555943

    Luke Nielsen
    Keymaster

    Hello,

    You are welcome! If you do not mind, can you please leave a 5 stars rating for our theme by going here: http://themeforest.net/downloads It will allow us to release more updates and provide dedicated support in the future. It would encourage our work a lot.

    Have a good day!

    Kind Regards

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘Promo Popup button problem’ is closed to new replies.