Closed (fixed)
Project:
e-Commerce
Version:
6.x-4.x-dev
Component:
invoice
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2008 at 19:37 UTC
Updated:
20 Mar 2009 at 05:20 UTC
Hi,
I have my file-download store set up to accept paypal or COD.
I'd like a different email to be sent out depending on the payment type selected - paypal should say "thank you for your order, go to myfiles to download", COD should say "Here is your invoice, please send a cheque to.." (or along those lines anyway)
is this possible?
thanks,
david
Comments
Comment #1
gordon commentedThis is not really possible in Drupal 5.x-3.x as the way the themes work. But you could do something in the theme_invoice.
However because of the huge enhancements in 6.x theming I will make a change so that you will be able to create multiple invoice templates which will allow you to create different invoices based upon the different settings in the transaction.
eg.
invoice-{invoice type}-{payment type}.tpl.php
invoice-{invoice type}.tpl.php
invoice-{payment type}.tpl.php
invoice.tpl.php
This would give you the huge range of templates that you could create. Also I may include shippable/non-shippable as well.
Gordon
Comment #2
david.a.king commentedthat sounds great - unfortunately i'm stuck with 5.x for now - you say i might be able to do something with theme_invoice.. what sort of thing?
i wasn't aware (unless i'm misunderstanding) that ecommerce could be themed with .tpl.php files - if so, is there any documentation? or is this just for 6.x+?
thanks,
david
Comment #3
gordon commentedThis is now fixed and you can have templates for the invoice depending on type of transaction, and payment method