Support » Plugin: Klarna Checkout for WooCommerce » Shipping amount not added on mobile devices…

  • Armsportstore.com

    (@armbreakersweden)


    Hi.

    I had to revert back to 2.5.0 of your plugin as I noticed issues with shipping cost not being added to the Klarna Checkout iframe. I never had problem with this before. But usually test the shop from my own mobile with two different browser (+ on the computer of course). For some reason it works in normal browsers on the computer. But when I added products in both Safari & Chrome and went to checkout, the first time it displayed the shipping fee in the WooCommerce order details, but not in the Klarna iframe. So the total amount doesn’t match. If I tried refreshing the checkout page in the browser, the shipping cost disappears from the WooCommerce order details and there is not shipping fee in either place.

    Did a rollback to 2.5.0 and emptied all customer sessions in WooCommerce and tried again, and everything works fine.
    I have seen in the change log for 2.5.1 (which was released same day as 2.5.0) and noticed that is things related to shipping you seem to try to fix. But whatever you did it is messing with the shipping fees…

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Michael Bengtsson

    (@michaelbengtsson)

    Hi @armbreakersweden

    From what i can see on your store you do not have the shipping in the iframe, which is needed for us to remove the shipping from the order data sent to Klarna. So i can not see how this is happening right now sadly. I also can not recreate this in my test environment.

    Since you reverted back, would you happen to have a staging site where you can update to the latest version so that i can see the issue directly?

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    Sorry to say I have not a staging site.

    Can you clarify the benefits of having the shipping inside the iframe? And is this required for the shipping to work correctly and being added to the order total when using Klarna Checkout?
    This has never been an issue until you latest update. I didn’t test to rollback to 2.5.1 as I only knew that 2.5.0 worked without issues so I skipped 2.5.1 and went straight back to 2.5.0.
    Is there anything in the code changes in 2.5.1 and 2.5.2 that could likely cause something like this?

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    … Just noticed that this is actually present with this version of the plugin too. And it isn’t just related to mobile browsers. It is for any device/computer.
    You can check yourself by visiting http://www.armsportbutiken.se.
    Add any product to the cart and visit the checkout. Fill out the fields for Klarna Checkout to update the shipping info. Now check the WooCommerce order details. The shipping cost is present. Usually 99SEK for products below 2kg. Now either refresh the page or go back to the shop page and then re-visit the checkout page. Now the shipping cost is gone from WooCommerce order details and the total amount displayed in both WooCommerce order details and in the Klarna Checkout iframe is without any shipping even though the address details is still present in the iframe…

    Do you have any idea on why this is happening? It is like Klarna’s iframe isn’t sending the address info to WooCommerce to add/update the shipping calculation.

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    Testar nu att uppdatera igen till 2.5.2 och spara alla WooCommerce inställningar, tömma transienter och för säkerhetsskull även tömma cachen. Jag använder Litespeed cache, men varukorg samt kassan är undantagna från cachen, så det ska inte kunna påverka detta.
    Sorgligt detta när allt fungerat klockrent fram tills nu… Aldrig haft problem med Klarna Checkout pluginet vad jag minns.

    EDIT: Och gjorde ingen skillnad överhuvudtaget… Första gången man besöker kassan och fyller i alla uppgifter, så uppdateras WooCommerce orderdetaljerna med korrekt fraktkostnad vilket också läggs till i iframen. En refresh och efter uppdateringen som då sker av både WooCommerce orderdetaljerna och iframen, så försvinner fraktkostnaden från båda ställena, fast adressuppgifterna finns lagrade i iframen och borde ha skickats till WooCommerce för beräkning av frakten.

    Så någonting i ert plugin hindrar WooCommerce från att få adressuppgifterna från iframen. Jag har testat PayPal som jag använder som backup och där fungerar det utan problem.

    EDIT 2: Kan tillägga att jag testade att växla till PayPal, vilket medför att WooCommerce egna fält för adressuppgifter visas. Fyllde i alla dessa och klickade sedan på knappen för att genomföra köpet (utan att godkänna villkoren). Detta har jag märkt “sparar” uppgifterna om jag lämnar kassan osv. Växlade därefter tillbaka till Klarna Checkout. Fraktkostnaden visas nu korrekt. Testade att refresha och fraktkostnaden fortsätter visas korrekt. Gick tillbaka till butikssidan och sedan till kassan igen, fraktkostnaden visas fortfarande korrekt.
    Så det här bekräftar ju min misstanke om att felet ligger i att adressuppgifterna i Klarna Checkout iframen endast skickas till WooCommerce första gången man besöker kassan under en session. Och inte när man återbesöker kassan eller refreshar webbläsaren. Vilket då medför att WooCommerce inte kan beräkna frakten utifrån en adress, då dessa uppgifter då inte verkar “sparas” från första besöket i kassan.

    Hoppas dessa kan hjälpa er att komma tillrätta med problemet.

    Plugin Author Michael Bengtsson

    (@michaelbengtsson)

    Hi @armbreakersweden .

    Can you check your fatal error log? I can see that some updates to the order_review is getting timed out. So i believe something is going wrong on your server causing the shipping data to not be set properly.

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    Hi.

    Where do I find that log, as I can’t see any issues in the WooCommerce log page. There aren’t any errors there.

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    I noticed the same you did, there seems to be a server issue right now, so have contacted the host about this. But I think I just had bad luck right now, as this issue haven’t been present when I reported this issue.
    But will try again with checkout when the server issue is resolved and check if this somehow is caused by whatever is the issue with the server.

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    Can you check again?
    I can’t see the server issue now, but the problem persist. A refresh and the shipping is gone from WooCommerce order details and from the Klarna Checkout iframe.

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    I am even more sure this is a Klarna Checkout plugin issue now. Have checked the PayPal payment method and there are no issues at all. Yes there was a temporary server issue when you checked, but that was only a coincidence and the issue was present both before and now after the server issue is fixed.
    It is strange that when using Klarna Checkout there are actually two calls to ?wc-ajax=update_order_review and one of them is timing out. Both of them doesn’t contain any address info at all. So as I stated earlier. Have never had this issue before. And I have done these refreshes before, as I regularly check that everything works correctly. So something in your plugin is blocking WooCommerce from receiving the address info details.
    I am not advanced enough to pin-point exactly what causes this. There are no other reasons that this happens, as there are no other plugins active that have anything to do with the checkout. And if there were any, the issue would also be present for other payment methods, as ?wc-ajax=update_order_review is called regardless of payment method.

    Plugin Author Michael Bengtsson

    (@michaelbengtsson)

    Hi again @armbreakersweden. To be able to help you i think we would need to get in closer contact. Would it be possible for you to send a support ticket to support@krokedil.se so we can help you and get some data from you that might not be good to post on an open forum, like the logs and so on?

    thomasstr

    (@thomasstr)

    Hi,

    I dont know if this is the same problem, but we are currently seeing the shipping amount when we are logged in as admin. As soon as we are logged out and try to complete an order, it only shows the address we want to ship towards.

    In the order it shows the correct shipping amount.

    We are also using the latest version of Klarna Checkout and happened after updating to the latest version.

    Setup:

    LSCache with excludes:
    /utsjekk/ (Checkout)
    /handlekurv/ (Shopping cart)
    /vipps-betaling/
    /vipps-express-checkout/
    /vipps-buy-product/

    EDIT:

    When there is more than one shipping-option, they show also for a logged-out user.

    • This reply was modified 8 months ago by thomasstr.
    Thread Starter Armsportstore.com

    (@armbreakersweden)

    @thomasstr I don’t think it is the same issue. Just tried it when I was logged in as admin and the shipping cost is there the first time I visit the checkout after I added my info to the Klarna Checkout iframe. But if I refresh or re-visit the checkout the shipping disappears after the iframe & order details have updated regardless if I am logged in as admin or not.

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    @michaelbengtsson Email sent. Please help me out as soon as possible.

    Thread Starter Armsportstore.com

    (@armbreakersweden)

    Hi again.

    @michaelbengtsson
    Now I have tried to email you several times and no response at all…
    Can you please respond here or on my emails so this issue can be resolved.

    Plugin Author Michael Bengtsson

    (@michaelbengtsson)

    @armbreakersweden Sorry about that, that was my mistake. I was gone last week and could not get to look into your issue, and today i was in meetings the entire day. I see that one of my colleagues replied to you however today, and i will keep looking at this tomorrow since i have the full day to work on things like this then.

    Again my apologies, i should have assigned your issue to someone else while i was away but forgot to do so. Hopefully i can find a solution for you tomorrow.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Shipping amount not added on mobile devices…’ is closed to new replies.