Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rszrama created an issue. See original summary.

rszrama’s picture

Status: Active » Needs review
FileSize
2.53 KB

Still needs docs in .api.php but otherwise ready for review / testing.

mglaman’s picture

Status: Needs review » Needs work
+++ b/commerce_discount_extra.rules.inc
@@ -593,10 +599,16 @@ function commerce_discount_extra_per_quantity_category_discount(EntityDrupalWrap
+    $discount_line_item = commerce_discount_set_existing_line_item_price($order_wrapper, $discount_name, $discount_price)

;!

mglaman’s picture

Also.. should it be an invoke? Modules implementing the alter will need to save. Alter has the context you are modifying before save, or the lack of needing to save.

rszrama’s picture

Status: Needs work » Needs review
FileSize
3.04 KB

You're right, changed it to a normal invoke with our own saving logic.

rszrama’s picture

Final pass with API docs.

rszrama’s picture

Status: Needs review » Fixed

Committed!

  • rszrama committed 4ae0ca7 on 7.x-1.x
    Issue #2730371 by rszrama, mglaman: Add a hook to alter line items...

Status: Fixed » Closed (fixed)

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