Alright, I believe I know how to do some formatting (although I haven't done much yet, but I know it's working), and my custom cc processing module seems to be working. Ouch! My brain is melting. What a way to get my feet wet in the Drupal waters!
Anyway, two (hopefully!) final questions:
-
My email confirmations aren't working properly. Some of the tokens in the default invoice/confirmation email don't seem to be working. I know the token module is installed, and some are working okay. Basically, all the site-wide ones are fine (site-name, site-email, etc...), but none of the order-specific ones (txn-billing-firstname, items, and so on) work. They're just in the email as [txn-billing-firstname] or whatever. Is this possibly a side-effect of missing some code in my cc processing module? Or is there somewhere else I should look? If it is the cc processing, I'd welcome anyone who could point me to equivalent code in a default cc module.
-
This is a dumb little thing, but I'm curious. I've looked through a couple of existing modules, but my brain's really threatening to implode and I don't want to sort through them all. Do any of the cc systems require an invoice number as a parameter? Ours does, and I'm trying to determine the best way to generate this.
Thanks again! Almost there!!
Comments
Just pass the transaction
for 2, Just pass the transaction id, that is unique and should be enough for the purpose of a cc transaction.
Which one is the transaction
Which one is the transaction id? (Sorry, really very new to this...)
Also, what if someone gets to that point and then leaves? Would they still have used a transaction id, so to speak? Ideally the invoice numbers should be subsequent (without gaps for uncompleted transactions), just for ease of auditing...
Mail tokens
Hi,
Thanks for posting your question. Mail tokens are provided by individual modules and in the case of [txn-billing-firstname] the substitution is done by the store module. However the data is collected from the address module. If you don't have the address module installed or $txn->address is not populated in store_token_values() something is wrong.
Hope this gives you a little insight.
Cheers,
--
Sammy Spets
Synerger
http://synerger.com
--
Sammy Spets
Synerger
http://synerger.com