Home Forums WoodMart support forum change promo popup expiration

change promo popup expiration

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #336755

    Rom2021
    Participant

    Hello, i’ve saw that the cookie of promo popup is 7 days.
    Is it possible to set it to 1 day?

    #336792

    Hello,

    Unfortunately, there is no option to do that.

    If you have any questions please feel free to contact us.

    Best Regards

    #337245

    Rom2021
    Participant

    Hello, I’ve tried to modify your file /wp-content/themes/woodmart/js/scripts/global/promoPopup.js and /public_html/wp-content/themes/woodmart/js/scripts/global/promoPopup.js
    by changing the value 7 to 0.5
    But nothing happens……
    Are the cookies of the promo popup are defined here?

    #337397

    Hello,

    Please add this code to the functions.php of the child theme:

    add_filter(
    	'woodmart_promo_version_cookie_expires',
    	function() {
    		return 7; // Days.
    	}
    );

    The code would work as soon as the new release is launched.

    Best Regards

    #337493

    Rom2021
    Participant

    hello, i’ve tried to add this code here, but it still doesn’t work

    /*Change woodmart popup cookie expire time*/
    add_filter(
    	'woodmart_promo_version_cookie_expires',
    	function() {
    		return 0.5; // Days.
    	}
    );

    You can see it on my site

    Attachments:
    You must be logged in to view attached files.
    #337581

    Hello,

    It will start working as soon as new theme version has been released.

    If you have any questions please feel free to contact us.

    Best Regards

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