RabbitZzZ Posted December 6, 2016 Share Posted December 6, 2016 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 More sharing options...
tuk66 Posted December 7, 2016 Share Posted December 7, 2016 It is quite easy to use different templates (or even parts of them) in different cases - groups, currencies, countries, etc. - in the M4 PDF Extensions module. Link to comment Share on other sites More sharing options...
RabbitZzZ Posted December 13, 2016 Author Share Posted December 13, 2016 I have this module already, but I don't relly see how this can be achieved with it. Link to comment Share on other sites More sharing options...
tuk66 Posted December 13, 2016 Share Posted December 13, 2016 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 More sharing options...
RabbitZzZ Posted December 13, 2016 Author Share Posted December 13, 2016 Ok thanks, I'll try this. Is there a complete documentataion about things like this? Link to comment Share on other sites More sharing options...
tuk66 Posted December 13, 2016 Share Posted December 13, 2016 This is Smarty code used on the data available in templates. You can get the data using the ~Debug template output (HTML is better). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now