if you add an extra field to the address panel, when you click "My delivery information is the same" the values from Billing are not entered into Shipping.

Additionally, neither does this work on saved addresses from the drop down.

--
Drupal Commerce

Comments

j0rd’s picture

Edit, it appears there code for the saved addressfield drop down, but it doesn't work currently with me and a "checkbox". I also don't believe it would work for a select dropdown.

megachriz’s picture

Title: "My delivery information is the same as my billing information." is not populating values » Values of checkboxes are not populated

I've tested it and you are right about the checkbox: the checkbox does not get populated when selecting an other address from the saved addresses dropdown and 'My delivery information is the same' doesn't take over the value of the checkbox. I didn't encounter issues with the selection field type.

I don't have the time right now to fix this. Do you want to write a patch?

sin’s picture

Hi.
My fix for a checkbox fields change on saved addresses drop down change.

megachriz’s picture

@sin
Thanks. I can confirm the checkbox get filled in when selecting an other address from saved addresses drop down. Now we only need to find a way to fix "My billing information is the same as my delivery information" for checkboxes.

megachriz’s picture

Assigned: Unassigned » megachriz

I'm currently working on a solution for this.

megachriz’s picture

Status: Active » Needs review
StatusFileSize
new3.37 KB

Here is a patch for fixing copying over values of checkbox from one address pane to the other ("My billing information is the same as my delivery information"). This patch includes the changes from the previous patch posted by sin in #3.

Please tell me if this fixes the problem and I will add it to the module.

megachriz’s picture

Status: Needs review » Fixed

A fix for this issue is now added to the module. This fix is different from the patch posted in #6. The patch didn't copy checkbox values over when you changed a checkbox after ticking the box "My billing information is the same as my delivery information", but the fix that is now added does.

You may reopen this issue if you think it's not completely fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.