ePages 6.11.0 - DE_EPAGES/Tax/API/Shop.pm

Package DE_EPAGES::Tax::API::Shop

This module includes a function to get shop tax method

@EXPORT_OK
GetTaxMethodsFolder
DisableShopTaxMethod
EnableShopTaxMethod

Functions

DisableShopTaxMethod
EnableShopTaxMethod
GetTaxMethodsFolder

DisableShopTaxMethod

Resets the TaxMethod on the shop to undef.

Syntax
DisableShopTaxMethod( $Shop );
Input
$Shop (object)
Shop
Return
none
Hook
API_DisableShopTaxMethod
hook parameter keys :
  • TaxMethod - tax method - object
  • Shop - shop - object

EnableShopTaxMethod

Sets the given TaxMethod on the shop. This can only be done if a customized TaxMatrix is used. Throws TaxMatrixNotCustomized error, if Matrix is not customized.

Syntax
EnableShopTaxMethod( $Shop, $TaxMethod );
Input
$Shop (object)
Shop
$TaxMethod (object)
tax method
Return
none
Hook
API_EnableShopTaxMethod
hook parameter keys :
  • TaxMethod - tax method - object
  • Shop - shop - object

GetTaxMethodsFolder

Returns the folder of tax methods

Syntax
$Folder = GetTaxMethodsFolder( $Shop );
Input
$Shop (object)
shop object
Return
$Folder (object)
folder object for tax methods