Skip to content

Commit

Permalink
// dump PDF data as JSON for selenium testing
Browse files Browse the repository at this point in the history
  • Loading branch information
djfm committed May 14, 2014
1 parent 7e4dcff commit 1cf7f15
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions classes/pdf/HTMLTemplateInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function getContent()

$customer = new Customer((int)$this->order->id_customer);

$this->smarty->assign(array(
$data = array(
'order' => $this->order,
'order_details' => $this->order_invoice->getProducts(),
'cart_rules' => $this->order->getCartRules($this->order_invoice->id),
Expand All @@ -75,7 +75,12 @@ public function getContent()
'tax_excluded_display' => Group::getPriceDisplayMethod($customer->id_default_group),
'tax_tab' => $this->getTaxTabContent(),
'customer' => $customer
));
);

if (Tools::getValue('debug'))
die(json_encode($data));

$this->smarty->assign($data);

return $this->smarty->fetch($this->getTemplateByCountry($country->iso_code));
}
Expand Down

0 comments on commit 1cf7f15

Please sign in to comment.