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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

calbasi created an issue. See original summary.

calbasi’s picture

Status: Active » Patch (to be ported)
FileSize
414 bytes

Adding promised patch

joelpittet’s picture

Project: Commerce Discount » Commerce
Version: 7.x-1.0-alpha8 »
Priority: Minor » Normal
Status: Patch (to be ported) » Needs work

commerce_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.