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.
By now, you can install Commerce discount without enabling Commerce Order. Then, you get an error:
Fatal error: Call to undefined function commerce_order_new() in YOUR_DRUPAL_PATH/sites/all/modules/commerce/modules/line_item/commerce_line_item.module on line 1404
Just adding commerce_order dependency solves this issue. I'm going to commit a patch just now...
Comment | File | Size | Author |
---|---|---|---|
#2 | Adding commerce_order dependency-2816053-1.patch | 414 bytes | calbasi |
Comments
Comment #2
calbasiAdding promised patch
Comment #3
joelpittetcommerce_order_new()
is being called in commerce_line_item module, which is the the one that actually needs the dependency, IMO.Discount is not the source you are looking for. Also patch to be ported is for backporting, you want the 'Needs review' status.
Moving to the commerce module's issue queue.