The line item example calls commerce_product_line_item_configuration like so:

commerce_product_line_item_configuration('example_line_item');

but according to http://api.drupalcommerce.org/api/Drupal%20Commerce/ommerce--modules--pr... it should be passed like this

commerce_product_line_item_configuration(array('type' => 'example_line_item'));

Comments

larowlan’s picture

Will try and post a patch when time permits.

larowlan’s picture

Same deal for commerce_line_item_configure_line_item_type

rfay’s picture

Thanks!

rfay’s picture

Status: Active » Fixed

Thanks very much for pointing this out.

I've committed http://drupalcode.org/project/commerce_examples.git/commitdiff/c141076 which just uses the standard line item configuration and replaces both of these calls. I'd appreciate it if you'd take a look and see if you approve.

Status: Fixed » Closed (fixed)

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