WordPress multisite
-
Does your plugin work with wordpress / woocommerce multisite? ??
Best Regards,
Tuomo NurkkalaThe page I need help with: [log in to see the link]
-
Hi,
Yes it works. Our recommendation is to activate it for each site and not network activate it.
Thank you for this information!
Why can’t your plugin accept the same Production Klarna API username and Production Klarna API password in other pages in wordpress multisite?
Paytrail and Stripe accepts this but it seems that your system doesn’t.Best Regards,
Tuomo NurkkalaHi,
Do you mean that you have activated the plugin for each site and added the same credentials on all sites?
I have not tried this scenario but I can not see why it shouldn’t work? Do you get any errors in your logs etc?
Yes I tried this but it wont work.
It doesn’t give me errors but the Klarna payments won’t show up in the checkout page in the new multisite website. Klarna payments works just fine in the first multisite page.
I asked Klarna customer service about this and they said that I need a new Api key for the new site in Klarna merchant portal.
But I guess the my site will brake because of this soon again. Because I will have soon wooglobalcart running in my two websites so the checkout page will be the same for both of the sites.
When I tried wooclobalcart I got this error before and my site crashed because of klarna:
2022-04-05T00:11:15+00:00 CRITICAL Maximum execution time of 30 seconds exceeded t?ss? /home2/sukkianet/public_html/wp-content/plugins/woocommerce/includes/wc-attribute-functions.php rivill? 50 2022-04-05T15:01:34+00:00 CRITICAL Uncaught Error: Call to a member function get_sku() on bool in /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/helpers/class-kp-order-lines.php:635 Stack trace: #0 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/helpers/class-kp-order-lines.php(154): KP_Order_Lines->get_item_reference() #1 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/helpers/class-kp-order-lines.php(66): KP_Order_Lines->process_cart() #2 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/class-kp-requests.php(53): KP_Order_Lines->order_lines() #3 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/class-kp-requests.php(26): KP_Requests->set_environment_variables() #4 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/includes/kp-functions.php(49): KP_Requests->__construct() #5 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-kp-checkout.php(34): kp_maybe_create_session_cart() #6 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(307): KP_Checkout->update_klarna_session() #7 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #8 /home2/sukkianet/public_html/wp-includes/plugin.php(474): WP_Hook->do_action() #9 /home2/sukkianet/public_html/wp-content/plugins/woo-global-cart/include/cart/class.wc-cart-extend.php(65): do_action() #10 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/includes/kp-functions.php(19): WOOGC_WC_Cart->calculate_totals() #11 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-wc-gateway-klarna-payments.php(302): kp_maybe_create_session_cart() #12 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(307): WC_Gateway_Klarna_Payments->enqueue_scripts() #13 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #14 /home2/sukkianet/public_html/wp-includes/plugin.php(474): WP_Hook->do_action() #15 /home2/sukkianet/public_html/wp-includes/script-loader.php(2105): do_action() #16 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(307): wp_enqueue_scripts() #17 /home2/sukkianet/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #18 /home2/sukkianet/public_html/wp-includes/plugin.php(474): WP_Hook->do_action() #19 /home2/sukkianet/public_html/wp-includes/general-template.php(3042): do_action() #20 /home2/sukkianet/public_html/wp-content/themes/basel/header.php(18): wp_head() #21 /home2/sukkianet/public_html/wp-includes/template.php(770): require_once('/home2/sukkiane...') #22 /home2/sukkianet/public_html/wp-includes/template.php(716): load_template() #23 /home2/sukkianet/public_html/wp-includes/general-template.php(48): locate_template() #24 /home2/sukkianet/public_html/wp-content/themes/basel/page.php(11): get_header() #25 /home2/sukkianet/public_html/wp-includes/template-loader.php(106): include('/home2/sukkiane...') #26 /home2/sukkianet/public_html/wp-blog-header.php(19): require_once('/home2/sukkiane...') #27 /home2/sukkianet/public_html/index.php(17): require('/home2/sukkiane...') #28 {main} thrown t?ss? /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/helpers/class-kp-order-lines.php rivill? 635 2022-04-05T15:01:38+00:00 CRITICAL Uncaught Error: Call to a member function get_sku() on bool in /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/helpers/class-kp-order-lines.php:635 Stack trace: #0 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/helpers/class-kp-order-lines.php(154): KP_Order_Lines->get_item_reference() #1 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/helpers/class-kp-order-lines.php(66): KP_Order_Lines->process_cart() #2 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/class-kp-requests.php(53): KP_Order_Lines->order_lines() #3 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/requests/class-kp-requests.php(26): KP_Requests->set_environment_variables() #4 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/includes/kp-functions.php(49): KP_Requests->__construct() #5 /home2/sukkianet/public_html/wp-content/plugins/klarna-payments-for-woocommerce/classes/class-kp-checkout.php(34): kp_maybe_create_session_cart() #6 /home2/sukkianet/public
Hi @tnurkkala
We know that there is compatibility issues with Woo Global Cart and we have added that to our Upvoty page: https://krokedil.upvoty.com/b/klarna-payments-for-woocommerce/compatibility-woocommerce-global-cart/ so please add a vote there as that helps us see what compatibility-support people are wanting. That way its easier for us to see what is possible or not to do.
I tried in our test demo store that is a multisite and activated Klarna Payments on two sites and it works as aspected. When I try i’m using test credentials.
Okay, woo global cart has some details for this fix from their side:
https://wooglobalcart.com/documentation/loop-though-the-cart-items/I tried this a second time but the Klarna payments wont show up in the checkout.
I don’t get any errors in Logs either.
Klarna customer service just said that every URL needs a new API.
You can look at my sites:
https://www.sukat.com Here the Klarna payments works just fine.
https://www.alusvaatteet.com Here Klarna payments does not work.Best Regards,
Tuomo NurkkalaActually I got this working. My bad. ??
I had enabled the test mode as well by accident.Best Regards,
Tuomo NurkkalaGreat!
Can you help me with wooglobalcart plugin creators questions?
Hi,
We managed to create a local environment with Klarna, using a mapped vhost of your domain. It appears to work an use Klarna, but when activate the option ” Enable Test Mode” it prompts the following pop-up:
https://www.sukat.com says
Please insert both test credentials for at least one countrySo look like i need some test credentials for this to work. Can you check on your Klarna which those may be? Or please ask their support how to configure that.
We try to use our local environment, so we don’t interfere with your live instance.Thank you,
Rick
Support Department
https://wooglobalcart.comYou can send them this link: https://docs.krokedil.com/klarna-payments-for-woocommerce/get-started/introduction/#set-up-klarna-payments-for-test-purchases
They can setup their own test account at Klarnas Playground (test) environment.
https://docs.klarna.com/resources/test-environment/#developer-signup,-test-credentialsI hope this helps
Thank you @boozebrorsan
I will send this to them. ??
Will there be any progress with Woo Global Cart plugin? It seems that your plugin won’t work together with woo global cart at all…
Hi @tuomonurkkala ,
Unfortunately no, I have looked at this together with our developers, and even though it’s an interesting request we have to dig a little deeper to see if we can add compatibility with Woo Global Cart plugin or not. We have for now come to the conclusion that this is not something we have the possibility to look into at the moment, as time and priorities are a factor we have to take into consideration.
We do however have a page for Product development where we would happily accept this request, adding compatibility with the Woo Global Cart plugin.
Here you can gain support from other interested users and help us see the demand for such a feature.`Okay, I understand.
I am just wondering that many payment companies plugins works just fine with Woo Global Cart and I guess they haven’t been working to solve this problem that you have. I can’t find any wordpress discussions of this from for example Stripe or Paytrail.
Unfortunately, due to this problem, I have to give up Klarna as a payment method for my online stores.
Let me know if you will fix this problem at some point! ??
- The topic ‘WordPress multisite’ is closed to new replies.