Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix customweb GMbH WooCommerce Barclaycard

Discussion in 'Misc WordPress Requests' started by sohrabiravani, Nov 23, 2017.

  1. sohrabiravani

    Guest

    customweb GMbH WooCommerce Barclaycard, by 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();
    }

    customweb GMbH WooCommerce Barclaycard
     
    #1

Share This Page

Web Hosting