Git Product home page Git Product logo

Comments (5)

andyjohansson avatar andyjohansson commented on July 24, 2024

Hi @DanielMarklund, today we release version 1.2.0 which might have solved the issue. Could you please test your use case and come back with feedback?

from billmate-checkout-for-woocommerce.

DanielMarklund avatar DanielMarklund commented on July 24, 2024

Hi @andyjohansson, I will try it out the upcoming week and report back with results. As I'm unable to recreate the issue we depend entirely on customers reporting the issue - so it might take some time to get feedback.

from billmate-checkout-for-woocommerce.

DanielMarklund avatar DanielMarklund commented on July 24, 2024

@andyjohansson This problem still occurs after the 1.2.0 update.

from billmate-checkout-for-woocommerce.

DanielMarklund avatar DanielMarklund commented on July 24, 2024

@andyjohansson @NiklasHogefjord

I've finally gotten time to debug this and found the culprit.

Why does this happen?

If you have WooCommerce set on "Force shipping to the customer billing address", the shipping address fields will not get updated as those elements are not rendered on the checkout page. Only the billing address fields are rendered (but hidden via css).

In the previous version of BCO (not this repo) this wasn't an issue as it updated the order data when creating the order. In this version of BCO, the fields are filled via JS when interacting with the checkout iframe.

How to fix this issue at the moment

  1. Go to WooCommerce -> Settings -> Shipping -> Shipping Options.
  2. BCO requires using either "Default to customer shipping address" or "Default to customer billing address". Select the shipping address option.

The reason why we forced the shipping to the customer billing address is due to us not wanting to render shipping fields for the simple payment gateway (when ordering internationally).

Proposed fixes for future versions

As I agree on using JS to populate the shipping/billing fields (for flexibility), I will make changes on our side to resolve this issue. However, I do recommend implementing any of these proposed fixes:

  1. Render a warning dialog if force shipping to billing address is enabled.
  2. Disable the change shipping address option in the BCO iframe if force shipping to billing address is enabled.
  3. Number 1 and 2 combined, but display the warning in the BCO settings.
  4. Update the shipping address order data when the order changes from Billmate Checkout Incomplete to Processing.

from billmate-checkout-for-woocommerce.

NiklasHogefjord avatar NiklasHogefjord commented on July 24, 2024

We will update the documentation with information about what to think about regarding this. Something like the following:

If the Billmate Checkout setting Hide shipping address is unchecked, you need to make sure that the WooCommerce setting Shipping destination is not set to Force shipping to the customer billing address (located in --> WooCommerce --> Settings --> Shipping --> Shipping options). Otherwise, the shipping address entered in Billmate Checkout will not be saved to the order in WooCommerce.

The reason behind this is because the customer address entered in Billmate Checkout is added to the order in WooCommerce via the standard WooCommerce checkout form. If no shipping address fields are available in WooCommerce then there is no way for the entered shipping address data to be added to WooCommerce.

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.