Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Product reference
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jul 2012 at 09:15 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vasikehere is a patch
it limits the fields to the referenced product types, based on the instance of the product_reference field
and all fields of all product types if there is no product type selected.
Comment #2
bojanz commentedYou can replace this with
Might make sense to not duplicate the field adding code, and just give it a list of all product bundles if the list of referenceable types is empty, but that's more of a code style issue...
Comment #3
vasikethank you Bojan.
what about this new patch?
Comment #4
bojanz commentedMuch better! Other than perhaps documentation tweaks, this seems ready.
Comment #5
bojanz commentedLet's get this to Ryan.
Comment #6
bojanz commentedTagging.
Comment #7
rszrama commentedTouched up the comments and also used commerce_product_types() to get a list of "all" product types in the event no filter has been applied. For some reason as written it wasn't working in my testing.
Commit: http://drupalcode.org/project/commerce.git/commitdiff/957a599