Jump to content
krisomeno

Different invoice text depending on payment method

Recommended Posts

Hello,

our clients can pay by paypal, bank transfer or pick up the goods at store.

We need the text showing up on the invoice template, depending on which payment option the customer elects to use, to state clear:

The payment by paypal has been received (goods ready to ship or pick up)

or

Cash payment at store location

or

Bank wire transfer is awaited within 10 days (goods will be shipped after payment arrives)

Pestashop version is 1.7.3.3

I'm not sure if this is possible from PS itself or do we need a specific module?

Thanks, Kris

Share this post


Link to post
Share on other sites

Anyone? Please, I'd be really helpfull to know how to do that. We invested already in a couple modules, I'd find it very sad to have to look at other shop systems because of one missing feature...

Was my explanation confusing? I'll try another approach:

If the customer pays by paypal, the invoice should state that he did it. If the customer wishes to pay later, the invoice should say when the payment is du (i.e. in 10 days)

Share this post


Link to post
Share on other sites

Hey Krisomeno,

yes you can place some conditions in invoice template...in invoice.tpl should work .....ex:

{if $payment->payment_method === 'Paypal'}

<table style="width: 100%">
    <tr>
        <td style="width: 15%">{l s='Paypal' pdf='true'}</td>
        <td style="width: 85%">{l s='Customer already paid etc etc...your text here' pdf='true'}</td>
    </tr>
</table>

{/if}

 

{if $payment->payment_method === 'Pickup'}

<table style="width: 100%">
    <tr>
        <td style="width: 15%">{l s='Pickup at store' pdf='true'}</td>
        <td style="width: 85%">{l s='Another different text here' pdf='true'}</td>
    </tr>
</table>

{/if}

you can also to print the total paid incl tax if you want ...inlcude this where you want and you get the price paid

 

I hope you solve this

 

  • Like 1

Share this post


Link to post
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

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More