• Resolved spottedpaint

    (@spottedpaint)


    Hi,

    I’m trying to integrate klarna into our checkout on a test version of the shop. We use a plugin called wp deposits https://woocommerce.com/products/woocommerce-deposits/

    When I add something to my basket and then click to pay with klarna from the cart page I end up with an error, if I disable the deposits plugin it goes away. The problem is that the deposits plugin is essential for the shop. Is your plugin compatible with the deposits plugin? Is this something that you have seen before?

    The full error goes like this:

    Function get_cart was called incorrectly. Get basket should not be called before the wp_loaded action.
    Backtrace: require(‘wp-blog-header.php’),
    require_once(‘wp-load.php’),
    require_once(‘wp-config.php’),
    require_once(‘wp-settings.php’),
    do_action(‘init’),
    WP_Hook->do_action,
    WP_Hook->apply_filters,
    Krokedil\KlarnaExpressCheckout\KlarnaExpressCheckout->maybe_unhook_kp_actions,
    WC_Payment_Gateways->get_available_payment_gateways,
    apply_filters(‘woocommerce_available_payment_gateways’),
    WP_Hook->apply_filters,
    WC_Deposits_Cart_Manager->disable_gateways,
    WC_Deposits_Cart_Manager->has_deposit,
    WC_Cart->get_cart, wc_doing_it_wrong
    Please see Debugging in WordPress for more information. (This message was added in version 2.3.) in /wwwroot/wp-includes/functions.php on line 6078

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support louisekrokedil

    (@louisekrokedil)

    Hi,

    We have not tested the WooCommerce Deposit plugin with our Klarna Payments for WooCommerce plugin and the Klarna Express Checkout, so unfortunately i do not know if it is compatible with our plugin or not. But Klarna has a payment option to partially pay the order/payment plan.

    Thread Starter spottedpaint

    (@spottedpaint)

    Ok, thanks it looks like it isn’t compatible then, unless anybody else has experience of using the two plugins alongside each other.

    • This reply was modified 6 months, 4 weeks ago by spottedpaint.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Woocommerce Deposits and Function get_cart was called incorrectly.’ is closed to new replies.