Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mmamld

    (@mmamld)

    Thanks for the reply Sai.

    This is the first time that I’m using Woocommerce and Gutenberg, and I cannot say that this has been a smooth experience. Nevertheless, I’m thankful for your plug-in.

    After a few days away I’m back to the test and pre-production sites and can now add some more feedback:

    • The toggle indeed works with pagination and solves that problem.
    • It all breaks if you use the free integrated filter block that comes with the free plug-in.
    • Every plug-in that uses ajax (whatever it is) breaks woocomerce blocks pages.

    The filter behaviour is the same as the pagination, the load bar appears on top, the filter is applied on the collection block but nothing else updates and everything javascript breaks on the page. I tried to find the same toggle, but it does not exist on the filter block or sub-blocks. Tried then a recommended plug-in with “ajax”. It filtered but broke menus and other blocks. Tried another one with an “ajax off” toggle that – so far – works well with everything.

    I suspect most sites that use Woocommerce are not using block themes or use the “shortcodes” versions on the dedicated store pages. The block version is very cool especially on the customization but don’t play well among themselves with partial rendering.

    For now It seems that things are working in an acceptable state for my case. I hope this helps you or anyone who stumbles upon these querks.

    Thanks for your time and replies.

    Thread Starter mmamld

    (@mmamld)

    Thanks for the reply Shahzeen.

    After delving on wooCommerce documentation I found that you have a “forcePageReload” flag on woocommerce/product-collection. So I went and tried to use it.

    Next, comparing theme options, I notice that older themes, like Kiosk, have an older version of product collection with the block labelled “beta” and, if I do not update to the new block, it worked with an auto-reload. After trying, and failing, to add the flag to attribute using the code view, I finally found that in the block sidebar-advanced an option labelled “Reload Full Page” was featured on the “Beta” block and active. I tried to find it in the new block, the one on most themes, and there it is, just disabled.

    I’ve enabled it and, so far, it has worked on my tests. I’m using wooCommerce as a catalogue so I cannot attest if this is a solution for a real store, or just a patch. I haven’t tested extensively, just found it.

    How to replicate: Load your test woocommerce wordpress installation as describes in my previous post. Load a block theme, like Neve FSE. Go to the theme editor, select the “store” template. In the editor select the product collection block. On the right bar select “block” menu and the “advanced” accordion. Roll everything down and find the “Reload full Page” switch. Turn it on. Save and visit your store page. If you click next page, the page will now fully reload and everything will update accordingly.

    I don’t know if this is a full solution or not. Just documenting because there is nothing on the internet describing this bug/patch. If there is another solution, I’ll be all ears. Been trying to solution this for 2 weeks already.

    Once again thanks for your time.

Viewing 2 replies - 1 through 2 (of 2 total)