Jump to content

Need to easily edit the Invoice template


Recommended Posts

Is it now possible to easily edit the invoice template?

 

At present it looks half done as it does not have my GST (same as VAT) number or my address and contact details.

 

I understand it used to be extremely difficult but has that changed? Here's an example of why from version 1.3:

 

<?php

/**
 * PDF class, PDF.php
 * PDF invoices and document management
 * @category classes
 *
 * @author PrestaShop <[email protected]>
 * @copyright PrestaShop
 * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
 * @version 1.3
 *
 */

include_once(_PS_FPDF_PATH_.'fpdf.php');

class PDF_PageGroup extends FPDF
{
var $NewPageGroup;   // variable indicating whether a new group was requested
var $PageGroups;	 // variable containing the number of pages of the groups
var $CurrPageGroup;  // variable containing the alias of the current page group

// create a new page group; call this before calling AddPage()
function StartPageGroup()
{
	$this->NewPageGroup=true;
}

 

 

and further down the page another sample.....

 

$pdf->Cell($width, 0, self::l('Total').' '.(self::$_priceDisplayMethod == PS_TAX_EXC ? self::l(' (tax incl.)') : self::l(' (tax excl.)')).' : ', 0, 0, 'R');
  $pdf->Cell(0, 0, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice((self::$_priceDisplayMethod == PS_TAX_EXC ? $priceBreakDown['totalWithTax'] : $priceBreakDown['totalWithoutTax']), self::$currency, true, false)), 0, 0, 'R');

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