In function store_send_invoice_email($txnid, $preview = null) is loaded transaction:
$t = store_transaction_load($txnid);
and later it is called function to send invoice to user
return ec_mail_send_mid($mid, $to, ECMAIL_TYPE_CUSTOMER_INVOICE, $t);
Unfortunately $t variable doesn't contain transaction informations, so no store tokens are replaced with correct value.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | store_14.patch | 1002 bytes | anantagati |
Comments
Comment #1
anantagati commentedIt is also present in dev version.
Comment #2
spidersilk commentedCould this be responsible for the issue reported here: http://drupal.org/node/112862 ?
Because i'm having that same problem on a site I'm working on, and the client is not going to sign off on it until this is fixed... No one will pay for an order if they can't see what they've ordrered!
Comment #3
anantagati commentedI found problem in functions:
In that functions is called function ec_mail_send_mid() with bad parameters.
If you will change line
to
problem will be solved.
Comment #4
anantagati commentedComment #5
dougdagaz commentedWe installed the patch and it fixed the problem in the invoice email! Thank you.
However, we see the same problem in the Shipping notification email as well:
(and suspect it will show up in the other emails.)
Hello [txn-billing-name],
We have shipped the following item(s) from Order #[txn-id], received
[txn-order-date].
Items(s) Shipped:
[items]
[txn-ship-to]
Questions about your order? ........
Any advise on patching the shipping and other default emails?
Thank you so much for the fix on the invoice email.
Doug
Comment #6
anantagati commentedComment #7
abramo commentedtoken [items] is not valid any more.
replace this token with [txn-items] in any email messages you still have token [items].
no patches are necessary.
for a list of available valid tokens, install module tokens.
then, when you edit email messages in e-commerce, click link "See available tokens" and pick and use the ones you need.
hope this helps.
Comment #8
anantagati commentedWithout patch simply no tokens from store were replaced with correct values. All tokens became empty.
Comment #9
abramo commentedworks for me.
Comment #10
anantagati commentedWith latest versions 4.7.x-3.x and 4.7.x-3.x-dev (2007-Mar-20) for download from http://drupal.org/project/ecommerce it is not working without patch.
Comment #11
spidersilk commentedI'm trying to install the patch, but none of the code it says to look for seems to be there. I searched for the string:
$mid = variable_get(MAILVAR_CUSTOMER_INVOICE, 0);in store.module (and store.inc just fpr good measure) and it doesn't appear to be there. Not even "$mid" or "MAILVAR_CUSTOMER_INVOICE" on their own seem to be there. Likewise when I try searching for the line referred to in comment #3:return ec_mail_send_mid($mid, $to, ECMAIL_TYPE_CUSTOMER_INVOICE, $t);it's not there.Am I looking in the wrong files, or is the patch for another version of the store (I'm using 4.7, but I'm not sure how to tell which version of 4.7 it is)?
Comment #12
anantagati commentedIf you will download Ecommerce 4.7.x-3.0 from http://drupal.org/project/ecommerce. You can find
return ec_mail_send_mid($mid, $to, ECMAIL_TYPE_CUSTOMER_INVOICE, $t);Comment #13
gordon commentedFixed and committed to both v4 and v3. With be available from the next release v3.1
Comment #14
(not verified) commented