MrTino Posted May 3, 2021 Share Posted May 3, 2021 (edited) Hi all, So, I want to display some features on invoices. I found some other threads with examples on how to do so. But, when I tried it, I am always getting an empty array. Here is my code: {assign var="features" value=Product::getFrontFeaturesStatic($conf.pdf_id_lang, $order_detail.product_id)} {$features|@debug_print_var} All I get is "Array (0)" So, I noticed "$conf.pdf_id_lang" is no set. It returns NULL. If I manually enter 1 or 2 it works. Any idea in which variable I can get the language of the invoice? Thanks! Prestashop 1.7.7.2 Edited May 3, 2021 by MrTino (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted May 4, 2021 Share Posted May 4, 2021 Where and how have you used that snippet? It looks like a M4 PDF Extensions code. https://www.prestashop.com/forums/topic/270613-module-m4-pdf-extensions-with-online-editor/page/2/?tab=comments#comment-1668332 Link to comment Share on other sites More sharing options...
MrTino Posted May 11, 2021 Author Share Posted May 11, 2021 Thanks for the answer. I think you are right, used the code without reading the thread and didn't notice it was from an addon. I'll have a look at your addon! Thanks, 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