Support » Plugin: WooCommerce » Uncaught ReferenceError: wp is not defined

  • Resolved philraymond

    (@philraymond)


    I’m getting an error:

    Uncaught ReferenceError: wp is not defined

    It’s referring to this script, which I believe is WooCommerce code:

    <script>( function( domain, translations ) {
    var localeData = translations.locale_data[ domain ] || translations.locale_data.messages;
    localeData[“”].domain = domain;
    wp.i18n.setLocaleData( localeData, domain );
    } )( “default”, { “locale_data”: { “messages”: { “”: {} } } } );</script>

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.