Skip to content

Latest commit

 

History

History
423 lines (205 loc) · 9.23 KB

class.HTMLTemplateOrderSlipCore.md

File metadata and controls

423 lines (205 loc) · 9.23 KB

Class HTMLTemplateOrderSlipCore

Contents

Properties

Methods

Properties

$order

public mixed $order

$order_slip

public mixed $order_slip

$available_in_your_account

public mixed $available_in_your_account = false

$date

public mixed $date

$shop

public mixed $shop

$smarty

public mixed $smarty

$title

public mixed $title

Methods

__construct

mixed HTMLTemplateOrderSlipCore::__construct(\OrderSlip $order_slip, $smarty)

Arguments

assignHookData

mixed HTMLTemplateCore::assignHookData($object)

Assign hook data

Arguments

  • $object mixed - generally the object used in the constructor

getBulkFilename

string HTMLTemplateOrderSlipCore::getBulkFilename()

Returns the template filename when using bulk rendering

getContent

string HTMLTemplateOrderSlipCore::getContent()

Returns the template's HTML content

getFilename

string HTMLTemplateOrderSlipCore::getFilename()

Returns the template filename

getFooter

string HTMLTemplateCore::getFooter()

Returns the template's HTML footer

getHeader

string HTMLTemplateCore::getHeader()

Returns the template's HTML header

getLogo

mixed HTMLTemplateCore::getLogo()

Returns the invoice logo

getProductTaxesBreakdown

mixed HTMLTemplateOrderSlipCore::getProductTaxesBreakdown()

getShippingTaxesBreakdown

mixed HTMLTemplateOrderSlipCore::getShippingTaxesBreakdown()

getShopAddress

string HTMLTemplateCore::getShopAddress()

Returns the shop address

getTaxTabContent

mixed HTMLTemplateOrderSlipCore::getTaxTabContent()

Returns the tax tab content

getTemplate

string HTMLTemplateCore::getTemplate($template_name)

If the template is not present in the theme directory, it will return the default template in PS_PDF_DIR directory

Arguments

  • $template_name mixed

getTemplateByCountry

mixed HTMLTemplateInvoiceCore::getTemplateByCountry(string $iso_country)

Returns the invoice template associated to the country iso_code

Arguments

  • $iso_country string

l

string HTMLTemplateCore::l(string $string)

Translatation method

Arguments

  • $string string