WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Grid / List toggle
[resolved] Suddenly broken - issue with WooCommerce CSS? (5 posts)

  1. James
    Member
    Posted 1 year ago #

    Hi James,

    Hope you can help. The grid/list view plugin has been working great, but suddenly noticed today that it is broken and I can't figure out why. Could you help please?

    The problem I have is that the list view setting does not seem to work; the product list fades in and out when you click between the list and view options, but there is no change of the layout (just seems to stay as grid view).

    Also the grid and list view option buttons are not displaying correctly - there is just the text and symbols, but no actual buttons surrounding them.

    The plugin seems to be half working as the product list does fade in and out as I mentioned already, and also because the product description is shown in grid view (which it isn't by default in my theme (Striking) without the plugin).

    I have tried deactivating all WooCommerce related plugins to check for conflicts, but this didn't help. However if I deselect "Enable WooCommerce CSS" in the WC general options page then the plugin seems to work fine again (but the formatting of the shop pages is obviously not very pretty). Re-enable WC css and the plugin breaks again.

    I have tried reverting to the default WC css pages (woocommerce-base.less and woocommerce.css) to see if it was some of my customisations that were breaking things, but other than reverting to the default colours this didn't do anything.

    My website is here if you could take a look:
    http://matchlessclueless.com/store/

    Any ideas please???

    Cheers, James :)

    http://wordpress.org/extend/plugins/woocommerce-grid-list-toggle/

  2. James
    Member
    Posted 1 year ago #

    Ok, some further investigations and this seems to be an issue with W3TC caching plugin. The grid / list toggle plugin now seems to break when the 'css minify enable' option is turned on in W3TC.

    I've tried all combinations of settings I can find / think of in W3TC with regards to the css side, but whenever css minification is turned on in any form them the grid / toggle plugin breaks as described above.

    I'm fairly sure that this is a new problem with the latest updates of one or other of the plugins as I have never noticed the issue before today, so it must have started in the last week or so.

    So any thoughts please James?

  3. middmeister
    Member
    Posted 1 year ago #

    Hi James,

    I notice your post is 5 months old now but thought I'd share my solution in case you are still trying to resolve, or in case anyone else has the issue. I had the exact same problem with W3tc and the grid/toggle woocommerce plugin.
    The issue is with the js minification.
    I found that is I manually added all the .js scripts but omitted the ones that caused the issue then it all seems to work again.
    The scripts that were causing the issue for me were:

    wp-content/plugins/woocommerce-grid-list-toggle/assets/js/jquery.cookie.min.js
    wp-content/plugins/woocommerce-grid-list-toggle/assets/js/jquery.gridlistview.min.js
    I hope this is useful to help anyone else with this issue.
    I was keen to keep my list view so that I could have short item descriptions on display to help showcase my products:
    http://www.heidles.co.uk

  4. middmeister
    Member
    Posted 12 months ago #

    To add to the above - I also noticed I needed to tell minify to ignore the following:
    wp-includes/js/jquery/jquery.js
    Otherwise my add to cart button disappears!

  5. James
    Member
    Posted 11 months ago #

    @middmeister - cheers, only just seen your reply. I solved the problem in the end by turning off minification in W3TC and using the CloudFlare service instead. This seems to have solved nearly all caching issues of this sort for me (I think!).

    Cheers, James

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags