• Resolved jenvape

    (@jenvape)


    If “Optimize JavaScript Code?” is checked, then the Home Page (Shop Page) Cart button in the Top Navigation will not work.

    IF the “Add try-catch wrapping?” is checked, then the Home Page Cart button works, BUT NOW the Ajax Add to Cart function for individual products, does not allow the sliding cart to appear on the same page, but instead redirects the user to the cart page.

    Also, if I unclick “Optimize CSS” the the cart button at top navigation and other icons are no longer graphic icons.

    Can you help a non-coding person solve these issues?

    Other plugins that are installed and active include: WP Disable and W3 Total Cache.

    Hope you can offer some input. Thank you.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    WP Disable might explain the difference between homepage & other pages, maybe disable WP Disable for a second while working on this.

    The add-to-cart issue could be fixed by adding wp-content/plugins/woocommerce/ to the comma-separated list of JS optimization exclusions.

    The problem with the icons is due to the font-files not loading due to a domain mismatch; when CSS is AO’d the CSS and the fonts are both on your CDN, without AO’ed CSS your CSS is on you main domain and the font files on your CDN, which results in an error like this one:

    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://j2z2p2j2.stackpathcdn.com/wp-content/themes/shopkeeper/inc/fonts/shopkeeper-icon-font/fonts/Shopkeeper-Icon-Font.woff2?gtunm4. (Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘*, *’).

    I *think* this can be fixed by ticking an option somewhere in your CDN configuration screens, check with your hoster or CDN-hoster if need be.

    hope this helps,
    frank

Viewing 1 replies (of 1 total)
  • The topic ‘Java or CSS breaking the Add to Cart’ is closed to new replies.