I used the hook_commerce_customer_profile_type_info() to implement a new customer profile type. It does show on the page, working well.

Then I added a views to list those entities,
Show [Commerce Customer Profile] of type [Billing information]

And then :

Notice: Trying to get property of non-object in commerce_customer_handler_filter_customer_profile_type->get_value_options() (line 12 of /media/nfsdrive/commerce/www/profiles/commerce_kickstart/modules/contrib/commerce/modules/customer/includes/views/handlers/commerce_customer_handler_filter_customer_profile_type.inc).
Notice: Trying to get property of non-object in commerce_customer_handler_filter_customer_profile_type->get_value_options() (line 12 of /media/nfsdrive/commerce/www/profiles/commerce_kickstart/modules/contrib/commerce/modules/customer/includes/views/handlers/commerce_customer_handler_filter_customer_profile_type.inc).

Comments

haza’s picture

Just fyi, I used commerce_kickstart but i remove the commerce module that came with it and git cloned it, so working with the dev version. ;)

haza’s picture

Status: Active » Needs review

I have a patch in my sandbox.

See the (minor) changes there : http://drupalcode.org/sandbox/haza/1198696.git/commitdiff/7a746b9da84def...

rszrama’s picture

Status: Needs review » Fixed

Woohoo! Added you as a remote and pushed it in. : )

Status: Fixed » Closed (fixed)

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