lat9 / one_page_checkout

One-Page Checkout for Zen Carts v1.5.7a and later.
GNU General Public License v2.0
15 stars 11 forks source link

Shipping Address forced to Billing when "Enable Shipping=Billing" is 'false'. #315

Closed lat9 closed 2 years ago

lat9 commented 2 years ago

As reported in this Zen Cart support-thread posting:

I've received reports of a bug in the address processes during checkout. I tested this myself with a clean install of ZC 1.5.7d and OPC and can confirm I saw the same issues that were reported to me.

I have pasted the initial report as I received it.

  1. If you only have 2 addresses in your address book and go to edit either the shipping or billing details, you don't get the drop down menu with the other address in it, you just have to fill out your details again. Ideally, if someone has 2 + addresses, the drop down should appear on both shipping and billing
  2. If you have 3 + addresses, and you change your billing details, your shipping address automatically changes. This shouldn't happen, you should be able to change your billing details and it not have an effect on the shipping address. The problem only occurs when you change the billing details. If you change the shipping address, the billing details do not update. Things to note:
  • When you manually change the billing address at checkout, the problem doesn't occur. It only seems to be when you are choosing from the drop down
  • If you test this, when I initially added more addresses to my account and then changed the billing details, the problem didn't occur. However, when you log out and back in, that's when you get the issue.
lat9 commented 2 years ago

I'm not able to reproduce this on zc157d/responsive_classic/OPC 2.3.12. I've got a test customer with specifically two addresses. Clicking either the "Edit" for shipping or billing, the dropdown of existing addresses is displayed and, upon change, the changed address is reflected as the current shipping/billing address, respectively.

I'll hold this open for a while, in case there's something I've missed in the reproduction attempt.

JSWebSteve commented 2 years ago

Have you been able to reproduce item 2?

lat9 commented 2 years ago

Haven't (yet) ... later today.

lat9 commented 2 years ago

@JSWebSteve what's the setting for the OPC configuration value "Shipping = Billing"?

JSWebSteve commented 2 years ago

It's set to false.

lat9 commented 2 years ago

Thanks, @JSWebSteve, issue reproduced.