Hi,

I am trying to fiddle my way through the heap of commerce modules needed to do a simple, standard commerce site.
Commerce_Email sometimes works fine, even somehow as expected.
Yet there's an issue that I do not fully understand. The line items created for outgoing email are seperated into "products" and "not products", with the later getting a default quantity of "1", no matter what the actual order says. See code line 128 in "commerce_email.module":

array('data' => 1, 'style' => array('text-align: left;')),

I have replaced this by

array('data' => intval( $line_item_wrapper->quantity->value()), 'style' => array('text-align: left;')), 

resulting in non-standard products being listed correctly in outgoing mail (example PRICETABLE products, which always got a "1 quantity" with the original code).
Could you please be so kind and approve or decline this change?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

malbrecht’s picture

I am not sure what I have done wrong to not get any response. Is my hint not considered helpful in order to improve this module?

haggins’s picture

Category: support » bug
FileSize
822 bytes

Maybe too less people are using custom line-items? Whatever, here's the patch.
I didn't include intval() as this would format the quantity of custom line items in another way than default line litems.

rszrama’s picture

Issue summary: View changes

Reviewing, seems to check out.

  • rszrama committed e2b488a on 7.x-2.x authored by haggins
    Issue #1666358 by haggins, rszrama: quantity in line item list for non-...
rszrama’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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