• Resolved Nadir Seghir a11n

    (@assassinateur)


    It seems that constantly, WP Optmize would break Cart/Checkout pages due to minimizing all scripts without proper handling of script data (at least this is my theory).

    Would it be possible for WP Optmize to skip Cart/Checkout pages by default, or at least, skip their scripts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wpmansour

    (@wpmansour)

    Hello Nadir,

    To exclude specific JavaScript files accurately in WP Optimize, you should use the full paths relative to your website’s root. Below are typical paths for the WooCommerce JavaScript files that you might need to exclude. These paths are based on a standard WooCommerce setup:

    • /wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.js
    • /wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.js
    • /wp-content/plugins/woocommerce/assets/js/frontend/checkout.js
    • /wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.js
    • /wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js

    Here’s how to exclude them:

    1. Go to WP-Optimize > Minify.
    2. In the Exclude JavaScript from processing section, add the full paths as listed above.

    Also, remember to exclude your Cart and Checkout pages from caching:

    1. Go to WP-Optimize > Cache > Advanced settings.
    2. Add your Cart and Checkout pages in the “URLs to exclude from caching” field. Typically, these might be:
      • /cart
      • /checkout

    Please implement these settings, test your site thoroughly, and let us know if the issue is resolved or if further assistance is needed.

    Best regards,
    Mansour M

    • This reply was modified 6 months, 2 weeks ago by wpmansour.
    Thread Starter Nadir Seghir a11n

    (@assassinateur)

    Thanks for the swift reply, however, Im not asking for a specific site, Im an engineer at WooCommerce and we keep seeing reports of people not being to use Cart/Checkout blocks due to WP-Optimize lumping them into a single script. Im more or less looking for WP-Optimize to add some built in solutions.

    Plugin Support wpmansour

    (@wpmansour)

    Thank you for clarifying your role and the broader impact of the issue with WooCommerce Cart & Checkout.

    I’ve escalated this matter to our development team and the board for further review. We aim to explore and implement a built-in solution that addresses the script handling for WooCommerce Cart & Checkout more effectively.

    We value the feedback from professionals like yourself and are committed to enhancing our plugin’s compatibility and performance. You can expect updates on this matter as we progress.

    Thank you once again for bringing this to our attention.

    Plugin Support wpmansour

    (@wpmansour)

    Hello @assassinateur ,

    I appreciate your patience as we delve into this matter. I’ve attempted to replicate the issues with the Cart/Checkout blocks on different environment, but everything appears to be functioning correctly in our tests. It seems we may need more specific scenarios or configurations where this issue is manifesting.

    Could you please provide additional details or examples from the sites experiencing these issues? This would greatly assist us in pinpointing the exact conditions under which the problem occurs, enabling us to address it more effectively.

    We are committed to ensuring WP Optimize works seamlessly with WooCommerce, and your insights are invaluable in helping us achieve that. Looking forward to your detailed feedback.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WP Optimze breaks Cart/Checkout pages in WooCommerce’ is closed to new replies.