• Hello,

    Firstly thanks for the great work on this plugin, fantastic plugin!

    I have an issue with reviews, after activating the plugin the review rating stars are disabled and replaced with the standard dropdown, it looks like it’s linked to how WC set the stars in siglge-product.js (set on the body init). I have tested this on std WP 2019 & 2018 themes and it’s the same. Do you have a workaround for this?

    Thanks,

    James

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter jamesjaxx

    (@jamesjaxx)

    @joelcj91 Could you let me know on this topic please? Be great to help fix in the plugin if this is indeed a general bug.

    Thread Starter jamesjaxx

    (@jamesjaxx)

    @joelcj91 Any joy with this? Would be great to get a fix or some more info so I can fix myself?

    Plugin Author Joel James

    (@joelcj91)

    Hey @jamesjaxx,

    Sorry for the delay. I will check this and let you know.

    Thread Starter jamesjaxx

    (@jamesjaxx)

    Hey @joelcj91, thank you, really appreciate your help with this, let me know if there’s anything I can do.

    Thread Starter jamesjaxx

    (@jamesjaxx)

    Hey @joelcj91 any chance of getting an answer on this?

    Plugin Author Joel James

    (@joelcj91)

    Hey @jamesjaxx,

    Sorry for the delay. I was busy these days. For now, you can disable lazy loading for Woocommerce reviews by using below code.

    add_filter( 'llc_can_lazy_load', function( $load ) {
    	if ( 'product' === get_post_type() ) {
    		return false;
    	}
    
    	return $load;
    } );

    I will see if we can lazy load reviews without affecting the style.

    Plugin Author Joel James

    (@joelcj91)

    Hey @jamesjaxx,

    Ignore the previous reply. I have added this to the latest version. Could you please update and check?

    Thread Starter jamesjaxx

    (@jamesjaxx)

    Hey @joelcj91,

    Thanks for getting back to me (and issuing an update), I’ve just updated the plugin on my local install and my comments aren’t lazy loading at all anymore?

    Looking at the above snippet it disables lazy loading comments on all products? I don’t want it to be disabled on products. The original bug was: when using the plugin and leaving a comment (the plugin) disables the standard review stars and uses the backup dropdown instead, could you help reinstate the review stars please?

    Thanks,

    James

    • This reply was modified 6 years ago by jamesjaxx.
    Plugin Author Joel James

    (@joelcj91)

    Yes, @jamesjaxx,

    For Woocommrece, there is no comments functionality by default. Woocommerce is using comments template to display review system. So, for now, I have disabled lazy loading for reviews. Once I find a solution to fully support Woo reviews, will push an update for that.

    If you still require lazy load for reviews, you can use the above snippet and return true instead of false.

    Thread Starter jamesjaxx

    (@jamesjaxx)

    Hey @joelcj91,

    Ok, the original bug was just for the review stars, there is no other issue that I can see which would require lazy loading to be disabled on products. Do you have any idea what is blocking the stars script? I’m happy to look at a fix and contribute back if you can help?

    Thanks,

    James

    Plugin Author Joel James

    (@joelcj91)

    Hey @jamesjaxx,

    Just pushed an update ?? Can you update and check?

    Thread Starter jamesjaxx

    (@jamesjaxx)

    Hey @joelcj91, I’ve just updated, now loading review stars! Nice one, it doesn’t appear that I can select them though, active state is applying but styling not working, are you seeing this too? Not sure if this is linked to your JS?

    Thanks,

    J

    Plugin Author Joel James

    (@joelcj91)

    Hey @jamesjaxx,

    Can you check this on another site/theme? For me it’s working.

    Thread Starter jamesjaxx

    (@jamesjaxx)

    Thanks for coming back @joelcj91,

    It works fine for me when the plugin is disabled, looking in WC JS I can see the rating stars are added to the page on init (line :47 / single-product.js).

    Any chance this isn’t being triggered after the Lazyload event fires?

    Thanks,

    James

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Lazy load disables rating stars’ is closed to new replies.