From #2619448-21: Cart Refresh check for discount price components causes Coupon removal

commerce_discount_percentage contains the following line

      $delta = $wrapper->commerce_discounts->count();
      $order->commerce_discounts[LANGUAGE_NONE][$delta]['target_id'] = $discount_wrapper->discount_id->value();

if you change it to

      $order->commerce_discounts[LANGUAGE_NONE][]['target_id'] = $discount_wrapper->discount_id->value();
CommentFileSizeAuthor
#2 i2940086.patch1.91 KBattiks

Comments

attiks created an issue. See original summary.

attiks’s picture

Status: Active » Needs review
StatusFileSize
new1.91 KB

  • joelpittet committed 19ad39a on 7.x-1.x authored by attiks
    Issue #2940086 by attiks: Offer type code depends on discount reference...
joelpittet’s picture

Status: Needs review » Fixed

Thanks @attiks. I've committed that up to the dev branch. Looks like we are doing extra work there.

Status: Fixed » Closed (fixed)

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