News:

Support the VirtueMart project and become a member

Main Menu

Billing and Shipping Address Synchronization Issue

Started by melix, December 17, 2024, 00:09:41 AM

Previous topic - Next topic

melix

Hello,

Joomla 4.4.9 and VirtueMart 4.4.0 (no cart overide)
Bootstrap 5, VM Basic template, and One Page Checkout enabled.

When filling in the billing details (address, etc.) as a guest in the VirtueMart cart (I don't want users to register), the payment and shipping methods are displayed upon pressing the "Confirm Purchase" button. This works fine.
By default, the shipping address is set to be the same as the billing address. This is also fine.
The page reloads with the appropriate shipping and payment options. Again, this is fine.

Here is where the bug appears:
I can change the billing country even when the checkbox "Use the main address for delivery" is selected.
However, the shipping address does not update to reflect the new billing country.
As a result, the shipping and payment options remain unchanged as well.

This behavior causes confusion for the user. They assume that changing the country in their address list while the checkbox "Use the main address for delivery" is selected would automatically apply the change. Unfortunately, this does not happen, and it is not immediately visible to the user that the change hasn't been made.

In such a case, the user proceeds with their order, resulting in major delivery errors due to the mismatch between billing and shipping addresses!

Would it be possible to reload the cart when the country is changed and ensure logical synchronization between the main address and the shipping address when the checkbox "Use the main address for delivery" is selected?

Thank you for your attention to this matter.