Jump to content

Agregar datos de los clientes en un pdf


Ana22

Recommended Posts

Hola, estoy usando el módulo Cart Quotation Wizard Module y quisiera añadir los datos del cliente en el pdf que se genera con la cotización, probé añadiendo <p>Nombre: {$customer.firstname}</p> en el tpl que tiene el diseño del pdf pero me sale lo siguiente:

Nombre:
Notice: Undefined index: customer in
/var/www/html/var/cache/prod/smarty/compile/ad/3a/f1/ad3af1141f586e8bba89a81d9a93587e733c7392_2.file.pdf_cart.tpl.php
on line 31
Notice: Trying to get property 'value' of non-object in
/var/www/html/var/cache/prod/smarty/compile/ad/3a/f1/ad3af1141f586e8bba89a81d9a93587e733c7392_2.file.pdf_cart.tpl.php
on line 31

obtuve esa variable del blog https://victor-rodenas.com/variables-globales-en-prestashop-1-7/

Alguien me podría orientar para solucionarlo, gracias.

Link to comment
Share on other sites

Hola @Gerardo Martinez G intenté hacer lo que me dices pero me sale lo siguiente:

Nombre:
Notice: Undefined index: customer in
/var/www/html/var/cache/prod/smarty/compile/ad/3a/f1/ad3af1141f586e8bba89a81d9a93587e733c7392_2.file.pdf_cart.tpl.php
on line 33
Notice: Trying to get property 'value' of non-object in
/var/www/html/var/cache/prod/smarty/compile/ad/3a/f1/ad3af1141f586e8bba89a81d9a93587e733c7392_2.file.pdf_cart.tpl.php
on line 33
Notice: Trying to get property 'firstname' of non-object in
/var/www/html/var/cache/prod/smarty/compile/ad/3a/f1/ad3af1141f586e8bba89a81d9a93587e733c7392_2.file.pdf_cart.tpl.php
on line 33

:(

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