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

bojanz’s picture

bojanz’s picture

The 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..)

rszrama’s picture

Status: Needs review » Fixed

Works as advertised. Committed.

Status: Fixed » Closed (fixed)

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