Hello,

I am using this module as well as Ubercart Product Checkout Panes. I use UPCP to hide certain panes in the checkout process whenever someone has a specific product in their cart. One of those panes that I need to hide is the Billing Information pane. As described at this link (http://drupal.org/node/1878358), when I hide that pane the Saved Addresses dropdown menu still appears at the very bottom of the checkout page. Can you please let me know if there is a workaround that would allow me to hide that field with the rest of the hidden pane?

Thanks!

Files: 
CommentFileSizeAuthor
#1 uc_addresses-check-billing-pane-1879278-1.patch6.79 KBMegaChriz
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch uc_addresses-check-billing-pane-1879278-1.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new6.79 KB
FAILED: [[SimpleTest]]: [MySQL] Unable to apply patch uc_addresses-check-billing-pane-1879278-1.patch. Unable to apply patch. See the log in the details link for more information.
[ View ]

Ubercart Addresses 6.x-1.x alters the checkout form by a form alter hook. It adds the address select field to the delivery and billing panes when it thinks that they are enabled. The reason of the conflict is that Ubercart Addresses checks the settings directly for if the billing pane is enabled. Ubercart Product Checkout Panes temporary overrides this setting on runtime and Ubercart Addresses fails to know that.

I've came up with a simple solution: check if the billing pane exists in the form instead of checking the setting. The issue counts for the delivery pane as well, though there it was only an issue the other way around: the address select field was not added when the delivery pane was hidden by default, but temporary turned on by Ubercart Product Checkout Panes.

The attached patch should fix the issue. Please test if it doesn't introduce any side effects. Play with the Ubercart Product Checkout Panes settings to find out.

Status:Needs review» Needs work

The last submitted patch, uc_addresses-check-billing-pane-1879278-1.patch, failed testing.

Version:6.x-1.0» 6.x-1.x-dev
Status:Needs work» Needs review

Patch is created against the latest dev.