Jump to content

generate 2 different invoice based on payments.


spc

Recommended Posts

Hello, in my store we have different payment.
caosh on delivery, company, letter

Is it possible to add some text in to the invoice that can only be shown in the letter invoice and not the other...

I hope someone understand what i mean.

Link to comment
Share on other sites

  • 2 weeks later...

Try to add this snippet in a invoice template:

{foreach from=$order_invoice->getOrderPaymentCollection() item=payment}
    {if $payment->payment_method == 'letter'}
        Some text
    {/if}
{/foreach}

I assume the letter payment module is in the /modules/letter directory.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...