Jump to content

Template de Fatura PDF Prestashop 1.7.7


Recommended Posts

Olá, Tenho uma duvida em relação aos campos do template da fatura.

Editei o arquivo "../classes/pdf/HTMLTemplateInvoice.php" e adicionei:

$data = array(

'customer_firstname' => $customer->firstname,
'customer_lastnamen' => $customer->lastnamen,
'customer_email' => $customer->email,

 

Editei o arquivo "../pdf/invoice.addresses-tab.tpl" e adicionei:

<span>Nome:</span> {$customer->firstname} {$customer->lastname}<br />
<span>Email:</span> {$customer->email}

 

Até ai tudo de certo, consigo exibir o nome, sobrenome, email do cliente.

O que eu queria agora era exibir os campos:

address1, address2, city

tentei colocar 'address_address1' => $address->address1,  e no template {$address->address1}

segui o mesmo exemplo e não consigo exibir nada. alguém pode me ajudar? Att.

Link to comment
Share on other sites

  • 2 weeks later...

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