Jump to content

Display Features on Invoices


MrTino

Recommended Posts

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 by MrTino (see edit history)
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...