• sohrabiravani

    (@sohrabiravani)


    Hi Guys,

    If your using the customweb GMbH WooCommerce Barclaycard Plugin you may have come across this issue with the latest version of WordPress or Woocommerce;

    Uncaught ReferenceError: columns is not defined
        at Object.initToggles (load-scripts.php:52)
        at Object.init (load-scripts.php:52)
        at HTMLDocument.<anonymous> (load-scripts.php:52)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at Function.ready (jquery.js:2)
        at HTMLDocument.K (jquery.js:2)

    To fix this issue go to your plugins folder => woocommerce_barclaycardcw/classes/BarclaycardCw/AbstractPaymentMethod.php on line 221 find;

    if (!isset($woocommerce->cart->totalCalculatedCw)) {
        $woocommerce->cart->calculate_totals();
    }

    Change to;

    if (!isset($woocommerce->cart->totalCalculatedCw)) {
       if( ! $woocommerce || !isset($woocommerce->cart->totalCalculatedCw) ) return;
       $woocommerce->cart->calculate_totals();
    }

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

  • The topic ‘customweb GMbH WooCommerce Barclaycard’ is closed to new replies.