Skip to content

Product 'bundle' vs 'type' discrepancy not addressed in this port #58

Description

@steve-v-online

Entity types have bundles, but in Commerce Products (perhaps other places) the entity's 'bundle' is named 'type' instead.

This was causing an error when I ported Commerce Feeds from Drupal 7 and tried to import an image field that was tied to my product.

To get it working, all I did was add this to the class function list in commerce/modules/product/includes/commerce_product.entity.inc:

public function bundle() {
return $this->type;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions