Home Forums WoodMart support forum PROMO POPUP Reply To: PROMO POPUP

#33992

Artem Temos
Keymaster

As we said, we don’t have such function in our theme. If you want, you can achieve it with additional code customization. Firstly, disable JS minification in Theme Settings / Performance. Then open this file js/functions.js and change the code

                if ( $.cookie('woodmart_popup') != 'shown' ) {
                    if( woodmart_settings.popup_event == 'scroll' ) {
                        $(window).scroll(function() {
                            if( shown ) return false;
                            if( $(document).scrollTop() >= woodmart_settings.popup_scroll ) {
                                showPopup();
                                shown = true;
                            }
                        });
                    } else {
                        setTimeout(function() {
                            showPopup();
                        }, woodmart_settings.popup_delay );
                    }
                }

to this one

if ( $.cookie('woodmart_popup') != 'shown' || $('body').hasClass('home') ) {
    if( woodmart_settings.popup_event == 'scroll' ) {
        $(window).scroll(function() {
            if( shown && !$('body').hasClass('home') ) return false;
            if( $(document).scrollTop() >= woodmart_settings.popup_scroll ) {
                showPopup();
                shown = true;
            }
        });
    } else {
        setTimeout(function() {
            showPopup();
        }, woodmart_settings.popup_delay );
    }
}

Regards