I added the following hack after line 443 in commerce_email.module, because we have a Commerce Coupon module installed. This stopped Commerce Email from breaking when a coupon had been added.

case 'coupon':
default:
$rows[] = array(
'data' => array(
array('data' => htmlentities($line_item_wrapper->line_item_label->value()), 'style' => array('text-align: left;')),
array('data' => 1, 'style' => array('text-align: left;')),
array('data' => number_format(commerce_currency_amount_to_decimal($line_item_wrapper->commerce_unit_price->amount->value(), $currency_code), 2), 'style' => array('text-align: left;')), ) );
break;

Comments

paul.linney’s picture

Hi leez,

Good stuff, I'll add this in when I get back to updating the module (hopefully, this week).

regards,
Paul

leez’s picture

Super! And thank you for the module.

paul.linney’s picture

Version: » 7.x-1.x-dev
Status: Patch (to be ported) » Fixed

This has been added in.

Paul

Status: Fixed » Closed (fixed)

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