Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Product reference
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2011 at 12:44 UTC
Updated:
18 Apr 2011 at 20:21 UTC
There needs to be a commerce_product_reference_create_instance() function just like there is one for commerce_price (commerce_price_create_instance).
That way it can be reused in contrib where needed.
Comments
Comment #1
bojanz commentedhttp://drupalcode.org/sandbox/bojanz/1097750.git/commitdiff/ea14cd0?hp=6...
Comment #2
bojanz commentedThe real question is how useful the change actually is, since, as Damien pointed out, Product Reference is a specialized module (because of the node-fields functionality) and not actually meant to be reused as much as I thought (we agreed to just have a product_id column in the offer module..)
Comment #3
rszrama commentedWorks as advertised. Committed.