Needs review
Project:
Bank Transfer | Ubercart Payment
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2010 at 07:07 UTC
Updated:
22 Aug 2011 at 15:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
xibun commentedthis is currently not supported. you can only activate it with the checkbox.
Comment #2
xibun commentedI had a deeper look into your request. What you try to do would work when tokens would be processed recursively. In my understanding currently this is not implemented.
But it seems in Drupal 7 this will be the case:
http://drupal.org/node/113614#comment-1804140
For Drupal 6 the substitution would need to happen inside uc_bank_transfer.Btw: the correct token provided by ubercart is [order-id] and not [order ID].
Comment #3
nzpunter commentedok,
I was workiong off the text give in the payment details page
"Subject: order number [order ID]"
needs to be changed to [order-ID]
does this send an email with the bank details? as it seems formatted for email, but nothing is sent.
and thanks for your work on this module!
Comment #4
xibun commentedI actually saw that :). But I'm not sure if I should change it, as I'm NOT referring to the token.
I will hold changes for the moment, I have more ideas for this area... mostly I would like different messages for checkout / review / invoice. When working on that I can also work on the token issue...
Comment #5
pieterdcI guess this would need some documentation and adjusted UI descriptions or so.. So people know they can use order tokens.
But hey, the patch works.
Comment #6
pieterdcI just found out it's better to use
echo theme('uc_bank_transfer_bank_details', $order);in the order/invoice tpl.php file thanecho $order_payment_bank_details;to avoid token replacement recursion, and thus not all tokens getting replaced (because the token module blocks recursion to avoid memory outages).Cfr. template_preprocess_uc_order() which loads all order tokens (for use in the tpl.php file) and thus also uc_bank_transfer_token_values() and thus also theme_uc_bank_transfer_bank_details() which again loads all tokens...