English (United Kingdom)
Knowledge Base  >  Vik Rent Car  >  Email Messages & PDF Files  >  How to Customize the Contract/Agreement

By default, the second part of the PDF file for the Contract/Agreement, contains a sample content that you can obviously change or remove by using the external plugin LocoTranslate, you can find it on the WordPress repository. Read here information about the text overrides.

At the bottom of the file you will find some comments to help you modify the Contract/Agreement part as well as some code that generates the actual sample content.

By using the special syntax {vrc_add_pdf_page} the system will put all the contents below that line onto a different page. You should use that special syntax whenever you need to split the content onto a different page for a better result. This obviously depends on the length of your contract.

If you don't need the PDF file to have a second page containing the agreement then you can just remove the whole code between the following PHP comments for the BEGIN and END:

<?php
//BEGIN: Contract/Agreement Sample Code
?>
{vrc_add_pdf_page}
<h3><?php echo JText::_('VRCAGREEMENTTITLE'); ?></h3>
<?php echo JText::sprintf('VRCAGREEMENTSAMPLETEXT', '{customfield 2}', '{customfield 3}', '{company_name}', '{order_date}', '{dropoff_date}'); ?>
<?php
//....... you will find more code here..
//END: Contract/Agreement Sample Code
?>
Last Update: 2023-05-12
Helpful?
This site uses cookies. By continuing to browse you accept their use. Further information