Skip to content

Instantly share code, notes, and snippets.

@flug
Created May 27, 2013 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flug/5656116 to your computer and use it in GitHub Desktop.
Save flug/5656116 to your computer and use it in GitHub Desktop.
// /classes/pdf/HTMLTemplate.php
public $id_commande = 0 ;
// Line ~52
$this->smarty->assign(array(
'logo_path' => $path_logo,
'img_ps_dir' => 'http://'.Tools::getMediaServer(_PS_IMG_)._PS_IMG_,
'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'),
'title' => $this->title,
'date' => $this->date,
'shop_name' => $shop_name,
'width_logo' => $width,
'height_logo' => $height,
'id_commande'=>$this->id_commande
));
// /classes/pdf/HTMLTemplateInvoiceCore
// __construct
//after line 45
$this->id_commande = (int)$this->order_invoice->id_order ;
// /pdf/header.tpl
<tr>
<td style="font-size: 14pt; color: #9E9F9E">ID Commande : {$id_commande}</td>
</tr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment