Cookie is not a function and other WooCommerce 3.0 issues
-
Like other users I updated to WooCommerce 3.0.7 and am having a handful of issues.
1) The gallery is not loading properly. At first no image was showing up and in my Inspector panel I saw the opacity was set to 0. I added some css changing the opacity and it showed up but wasn’t laying out properly. After reading the “bionic butterfly” release notes, I added the gallery support to my theme’s functions.php file with the code below and stylized it with the CSS found here but it is still not working.
// Add WooCommerce Gallery add_action( 'after_setup_theme', 'yourtheme_setup' ); function yourtheme_setup() { add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); }
***fyi – I replaced “yourtheme_setup” with “kirby_theme_setup” but that didn’t work.
2) Variations are showing up but once you select a variation, the price doesn’t change. If you add it to your cart the price added equals the first available option. Here is a link to a product page to see the issue.
3) I’m seeing the following error from WooCommerce:
cart-fragments.min.js:1 Uncaught TypeError: a.cookie is not a function
at HTMLDocument.<anonymous> (cart-fragments.min.js:1)
at l (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.A (jquery.min.js:2)4) Lastly, the state field is missing from checkout.
Any advice or help would be greatly appreciated. Thank you!
- The topic ‘Cookie is not a function and other WooCommerce 3.0 issues’ is closed to new replies.