Home Forums WoodMart support forum Recently viewed work only on adminpage when connected

Recently viewed work only on adminpage when connected

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #511811

    liorgab001
    Participant

    i added a recently viewed carousel on the product page and i tried it from different 5 devices the recently viewed doesn’t work. the recently viewed only work when i connected to admin panel.
    i added my admin panel acces for you to check, the website is backed up and you can make changes.

    #511918

    Luke Nielsen
    Keymaster

    Hello,

    After clearing the cache in the “WP Rocket” plugin, the issue disappeared: https://take.ms/EN81j

    Don’t hesitate to let me know if you need any further help or any other info.

    Kind Regards

    #511969

    liorgab001
    Participant

    that’s work because you was connected to admin panel, try to use new device as I tried. That’s doesn’t work I also tried again on 3 different decides.

    #511982

    Luke Nielsen
    Keymaster

    Hello,

    Please disable all plugins except these ones:

    Elementor or WPBackary
    Woodmart Core
    WooCommerce

    If the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.

    Kind Regards

    #511995

    liorgab001
    Participant

    The wp rocket plugin is the one that blocks the visibility of the products. How can you solve the problem without turning off the plugin and without harming the site’s speed performance?

    #512029

    Luke Nielsen
    Keymaster

    Hello,

    It is just cache, so you need to clear it: https://take.ms/1eG6e

    If you have those issues on mobile devices, try to clear the browser cache as well, or you can disable the mobile cache in the WP Rocket settings: https://take.ms/qIs3B , then recheck the issue.

    Kind Regards

    #512038

    liorgab001
    Participant

    i rechecked on new device and that blocking the recently viewed products.
    you can go to the website from new device and check it also.
    if i will disable the cache thats will damage the speed of the website.

    #512167

    Luke Nielsen
    Keymaster

    Hello,

    Please navigate to the settings of the WP Rocket and disable the mobile cache, then recheck the issue.

    https://prnt.sc/VsCETQPqpFKQ

    Thank you for your time.

    Kind Regards

    #512168

    liorgab001
    Participant

    If I will disable the mobile cache that’s will damage the website performance.

    #512169

    liorgab001
    Participant

    There is no option to use this feature of “recently viewed” without disable cache?

    #512241

    Luke Nielsen
    Keymaster

    Hello,

    Please add the below code in Theme Settings -> Custom JS.

    (function($) {
    	if ( $('body.single-product').length ) {
    		var ID = $('body.single-product').attr('class').split(' ').filter(function(elClass) {
    			return elClass.search('postid-') + 1;
    		}).join('').replace('postid-', '')
    
    		if ( typeof Cookies === 'undefined' ) {
    			return;
    		}
    
    		var productRecently = Cookies.get('woodmart_recently_viewed_products');
    
    		if ( productRecently.length ) {
    			productRecently += '|' + ID;
    		} else {
    			productRecently = ID;
    		}
    
    		Cookies.set('woodmart_recently_viewed_products', productRecently, {
    			expires: 7,
    			path   : woodmart_settings.cookie_path,
    			secure : woodmart_settings.cookie_secure_param
    		});
    	}
    })(jQuery);

    Then recheck the issue.

    Kind Regards

    #513214

    liorgab001
    Participant

    The problem fixed thanks a lot!
    Maybe you can help me to fix something else?

    When I define area and content stretching in Elementor there is a jam at the beginning of the page loading as you can see in the video and the picture, this problem also damages the performance of the site speed (loading time). I checked all your demos and other websites that are built in WOODMART when the area and content is stretched and full width, there is no this problem and it loads straight away stretched.

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

    liorgab001
    Participant

    Here the video

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

    Luke Nielsen
    Keymaster

    Hello,

    I suggest you use the “Section stretch CSS” functionality in the settings of the “Section” -> [XTemos] Layout.

    https://monosnap.com/file/m3jurJT4dM5oYdxP6TG0ilKg8wEBRn

    So please disable the “Full-width” option from Elementor and enable our option instead.

    Then clear the cache and recheck the issue.

    Kind Regards

    #513254

    liorgab001
    Participant

    that fixed thanks!

    #513268

    Luke Nielsen
    Keymaster

    Hello,

    You are welcome!

    In case you need any additional help, I’d be more than happy to assist you.

    Wish you all the best.

    Kind Regards

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

The topic ‘Recently viewed work only on adminpage when connected’ is closed to new replies.