1
Answers
Vote up!
0
Vote down!

Deleted commerce_customer_shipping field in order fields

Hi,

I wanted to disable the commerce_customer_billing field in admin/commerce/config/order/fields because I wanted to use another structure for the billing address.

Now I noticed that rules are using this field to 'Assign an anonymous order to a pre-existing user'. So I wanted to enable the commerce_customer_billing field again but it seems like I have removed it permanently. Is there any way I can add this field again? Using the interface I can't seem to create a system name commerce_customer_billing, only field_customer_billing,...

Asked by: bvdh
on September 26, 2012

1 Answer

Vote up!
1
Vote down!

bvdh,

You cannot re-add this field without a little bit of PHP or completely new install. I'd recommend restoring a backup from prior to deleting the field.

If you don't have a backup, I'd make one now and look for the bit of code that creates that field on installation. Once you've found it, you could try running it in a custom module or perhaps have devel execute it if you have the php filter turned on.

But really, you could just create a new one with the name of "field_customer_billing" and update the rule to use the customer profile field where appropriate :D

Josh

Josh Miller
Answer by: Josh Miller
Posted: Nov 16, 2012