Hi Thank you for this module.

Im using it as part of the commerce kickstart distribution

On my product variation type I have a few fields which i am trying to modify upon submission of the node creation form.

When I inspect the fields I get structures such as


But If I try code such as

$node->field_product['und'][0]['form']['new_reference_field']['und'][0]['target_id'] = 1;

nothing happens

What do I need to do to modify the values of the IEF?

Thank you for any help


bojanz’s picture

Issue summary: View changes
Status: Active » Fixed

Implement hook_commerce_product_presave() instead, no need to mess with the form.

Status: Fixed » Closed (fixed)

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