Should copy the customer's billing and shipping profile when we "reorder" an order. This option should be configurable in the UI and disabled by default.

Comments

kunalkursija’s picture

Issue summary: View changes

I think, This feature request does not make much sense because what Commerce_Reorder does is "creates new order" in "Shopping Cart" state.

Where as the billing information / Address-book details e.t.c are entered by user @ Checkout page, And the order there is in "Checkout" state.

Hence your request seems to be against the basic objective of this module.

kunalkursija’s picture

Status: Active » Needs review

Changing this to "needs review".

nvahalik’s picture

Title: Customer profile » Copy customer billing and shipping profiles from the copied order
Version: 7.x-1.0 » 7.x-1.x-dev
Assigned: drvdt » Unassigned
Issue summary: View changes
Status: Needs review » Active

Picking this issue up. Sounds like a useful feature.

nvahalik’s picture

nvahalik’s picture

Status: Active » Needs review

  • pcambra committed e5bc191 on 7.x-1.x authored by nvahalik
    Issue #1529476 by nvahalik: Copy customer billing and shipping profiles...
pcambra’s picture

Status: Needs review » Fixed

Great addition! thanks all

joelpittet’s picture

Status: Fixed » Needs work
+++ b/commerce_reorder.module
@@ -77,8 +77,27 @@ function commerce_reorder_reorder_tab($order) {
+  $profile_types = commerce_customer_profile_types();
+  foreach ($profile_types as $type) {
+    $default_profile_options[$type] = FALSE;

Type is an object, you can't use objects for keys, I think you meant to use the key.

  • pcambra committed e5bc191 on 7.x-2.x authored by nvahalik
    Issue #1529476 by nvahalik: Copy customer billing and shipping profiles...
nvahalik’s picture

Status: Needs work » Fixed

The error discussed in #8 has been fixed as well.

joelpittet’s picture

Status: Fixed » Needs review
StatusFileSize
new1.29 KB

Doesn't look like the problem in #8 was fixed in the 1.x branch (haven't checked 2.x yet).

Here's the patch.

  • nvahalik committed 22a5655 on 7.x-1.x
    Issue #1529476 by nvahalik, joelpittet: Copy customer billing and...
nvahalik’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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