Git Product home page Git Product logo

Comments (12)

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

How do we accomplish this @OskarOstlund? At the moment we do it in the following sequence:

  1. Customer changes shipping method.
  2. Billmate Checkout is locked.
  3. An update request is sent from Woo to Billmate.
  4. When the respons from the request is received postMessage('update', '*') is triggered.
  5. postMessage('unlock', '*') is triggered.

Shouldn't the checkout be ready with the new and updated prices already after the request is received on your end in step 3?

from billmate-checkout-for-woocommerce.

MattiasNilsson avatar MattiasNilsson commented on September 23, 2024

@NiklasHogefjord This is due to cache, so you need to do the 4 and 5 step to achieve full update.

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

OK, thanks for the clarification @MattiasNilsson. But how come the price in Billmate Checkout doesn't change until approximately 1 second after step 5?

from billmate-checkout-for-woocommerce.

MattiasNilsson avatar MattiasNilsson commented on September 23, 2024

@NiklasHogefjord It all depends on the load of the server.

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

So, that is more of a merchant issue than a plugin issue? Or can we do anything about it @MattiasNilsson ?

from billmate-checkout-for-woocommerce.

MattiasNilsson avatar MattiasNilsson commented on September 23, 2024

@NiklasHogefjord This should be fixed now as the flow has changed?

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

No it is not solved in the changed flow @MattiasNilsson. The issue is still here.

According to the docs it looks as I should be able to just do a JS update and the iframe will automatically unlock when the update is done. That doesn't seem to work.

from billmate-checkout-for-woocommerce.

MattiasNilsson avatar MattiasNilsson commented on September 23, 2024

@NiklasHogefjord Is this one still an issue then?

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

@MattiasNilsson I don't lock/unlock anymore during update now. Perhaps you can test this and see what you think?

from billmate-checkout-for-woocommerce.

OskarOstlund avatar OskarOstlund commented on September 23, 2024

This should probably be given a once over. When I tested this could I change the delivery method adding another 10 SEK to the order and while it was loading could I finish placing the order. This caused the checkout thank you message claiming that the order cost 27.50, something that BO and the store both agreed with. However the thank you URL the store directed us to claimed that the order was 17.50 SEK.

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on September 23, 2024

@OskarOstlund & @MattiasNilsson I did a change where we don't lock/unlock BCO during update to avoid the original issue. If you want the plugin to lock down other actions during the update, then you probably need to look into how the unlock event is handled in your system. This is not anything that can be solved only in the plugin from what I can see.

from billmate-checkout-for-woocommerce.

MattiasNilsson avatar MattiasNilsson commented on September 23, 2024

After feedback, we decide to close this one.

from billmate-checkout-for-woocommerce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.