Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Hi Serge;
    I would start with disabling either CSS or JS optimization to pinpoint the problem. Based on the outcome of that simple test, we can proceed to troubleshoot specifically for that type of optimization in combination with WooCommerce-POS.

    kind regards,
    frank

    Thread Starter timit

    (@timit)

    Hi Frank

    If I disable JS, the page content appears.
    But colors and design is not displayed properly.
    If I disable CSS too, the page is displayed properly.

    JS active –> white page
    JS disable, CSS acitve –> content is displayed, but the layout is not properly.

    Thanks
    Serge

    Plugin Author Frank Goossens

    (@futtta)

    ok, let’s forget about CSS for now and focus on JS; when JS optimization is active;
    1. is there HTML source to be seen?
    2. is there any error in your browsers developer error console?

    frank

    Hi Frank and Serge,

    WooCommerce POS ships with a concatenated and minified js file, so I suspect the file is being minified again by Autoptimize which is causing the problem.

    The plugin uses the DONOTMINIFY and DONOTCACHEPAGE constants to prevent this problem with other caching plugins. Does Autoptimize check for these constants?

    Plugin Author Frank Goossens

    (@futtta)

    No, not yet, but it’s not a bad idea actually, so I added it on the development version
    and it will be in the next release.

    Serge, if you’re up for that kind of thing, try this fix by either downloading the GitHub-version (just overwrite wp-content/plugins/autoptimize) or by editing wp-content/plugins/autoptimize/autoptimize.php and after line 152 adding this block of code:

    // check for DONOTMINIFY constant as used by e.g. WooCommerce POS
    if (defined('DONOTMINIFY') && (constant('DONOTMINIFY')===true || constant('DONOTMINIFY')==="true")) {
            $ao_noptimize = true;
    }

    The result should be that Autoptimize does not touch WooCommerce-POS pages any more.

    frank

    Thread Starter timit

    (@timit)

    Hi Frank,

    just to be sure. Is this issue solved with the latest release?

    Thanks for your feedback.

    Serge

    Plugin Author Frank Goossens

    (@futtta)

    there has not been a release since you started this thread Serge, but if you want you can download the in-development version in which “DONOTMINIFY” is indeed taken into account.

    frank

    Thread Starter timit

    (@timit)

    Hi Paul,

    Have you done any adjustments according this issue? The two plugin seems to work fine now.

    But just in case, I will update the devl version this evening.

    Thanks for your feedback.

    Cheers,
    serge

    Worked for me as well. I was having trouble with WooCommerce CSS.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Autoptimize and WooCommerce POS’ is closed to new replies.