Jump to content

Different invoice templates for customer groups


Recommended Posts

Hello,

in Prestashop 1.6.1.9 is it somehow possible to use different invoice templates for different customer groups?

In fact I want b2b customers to have a different invoice as b2c. There are already different templates for that but are they even used? In the preferences there can only one be chosen.

 

Thanks in advance!

Regards

Link to comment
Share on other sites

Use something like

{if $order[orders].customer.id_default_group == 1}
   ...code for group #1
{elseif $order[orders].customer.id_default_group == 2}
   ...code for group #2
{else}
   ...code for other groups
{/if}

The code can be a small part of the template or the whole <body>.

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...