# Integration Code

### PUQ Customization module **[WHMCS](https://puqcloud.com/link.php?id=77)**

#####  [Order now](https://puqcloud.com/whmcs-addon-puq-customization.php) | [Download](https://download.puqcloud.com/WHMCS/addons/PUQ-Customization/) | [FAQ](https://faq.puqcloud.com/)

#### PUQ Customization - OverwriteTaxRules - Integration Code

Add to top "invoicepdf.tpl"

```PHP
# PUQ Customization - OverwriteTaxRules - Integration Code
if(file_exists(ROOTDIR . '/modules/addons/puq_customization/extensions/OverwriteTaxRules/lib/invoicepdf.php')){
    require_once(ROOTDIR . '/modules/addons/puq_customization/extensions/OverwriteTaxRules/lib/invoicepdf.php');
    foreach(puq_customization_overwrite_tax_rules_invoicepdf($tplvars) as $k=>$v) $$k = $v;
}
```

By including this code in your invoice template file, you enable the integration of the OverwriteTaxRules extension with the PDF generation process. It allows the extension to modify and customize the invoice PDF output.

Please make sure to place this code immediately after the` <?php` tag in your invoice template file.

[![image-1687272214461.png](https://doc.puq.info/uploads/images/gallery/2023-06/scaled-1680-/image-1687272214461.png)](https://doc.puq.info/uploads/images/gallery/2023-06/image-1687272214461.png)