Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
larowlanWill try and post a patch when time permits.
Comment #2
larowlanSame deal for commerce_line_item_configure_line_item_type
Comment #3
rfayThanks!
Comment #4
rfayThanks 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.