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
Comment #1
paul.linney commentedHi leez,
Good stuff, I'll add this in when I get back to updating the module (hopefully, this week).
regards,
Paul
Comment #2
leez commentedSuper! And thank you for the module.
Comment #3
paul.linney commentedThis has been added in.
Paul