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

gordon’s picture

Version: 5.x-3.5 » 6.x-4.x-dev
Category: support » feature

This 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

david.a.king’s picture

that 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

gordon’s picture

Status: Active » Fixed

This is now fixed and you can have templates for the invoice depending on type of transaction, and payment method

Status: Fixed » Closed (fixed)

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