• Resolved mhogas

    (@mhogas)


    Hey guys,

    I’m getting an error in the console https://d.pr/i/x6QBP3 ( this.product_variations.reduce is not a function ).

    And from looking in the script, seems that this.product_variations returns a string, not an object eg: https://d.pr/i/wQIbYI .

    Maybe JSON.parse( this.product_variations ) would be better fit in this scenario?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • @mhogas

    Could you disable all plugins except WooCommerce and swatches and check is it happening or not?

    If it happens with WooCommerce, just change the theme and check is it happening with a different theme or not.

    Just find out the plugin or theme which is creating conflict. I’ll try to fix it as soon as possible

    Thank you

    Thread Starter mhogas

    (@mhogas)

    Thanks!!

    Sure, i will ask the owner of the site if he can run some tests with a different theme and plugins disabled.

    Most likely though, it’s a conflict, no doubt. However either way, i think it’s best to avoid future conflicts and try validating the data for different cases.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error in JS console’ is closed to new replies.