If you use the built-in MyCashflow Invoice payment service, you can set the due date in the invoice.html template included in the PDF theme.

To change the due date, you need to make changes to the online store's PDF theme. If you need help making changes, contact your theme designer or our customer service.

First, find the invoice template in the PDF theme. If there is no invoice template in the PDF theme yet or your online store does not have a PDF theme at all, see the instructions for finding and installing the invoice template.

The due date of invoices created using the Invoice payment service is defined in the invoice.html file.

The due date can be specified in the {OrderDueDate(expiry:'14')} command. In the field expiry, enter a payment term that should start from the order creation date. To set a due date that is a week away from the day on which the order was placed, enter 7 in the field.

themes/print/THEME/invoice.html
...
            <tr>
			<td width="10%">{%InvoiceDueDate}</td>
			<td width="25%">{OrderDueDate(expiry:'14')}</td>
			<td width="25%" id="OrderOpenTotal">{OrderOpenTotal}</td>
		</tr>
	</table>
...

After you've made the changes, the next MyCashflow invoice sent to the customer will use the new due date.

If your online store's versions use different themes, make the same changes in any relevant themes to update the due date in all relevant versions.

Adding the invoice template in your online store

  1. Download the default MyCashflow PDF theme
  2. Find out whether the theme used by the online store is built into the system or stored in the file directory.

    You can find this information on the PDF theme line in the version settings.

    Depending on the selected option, act upon one of the following procedures:

    • Use store theme: Instead of using a PDF theme, the online store relies on the legacy implementation, which has printouts stored in the root directory of the store theme. In this case, copy the invoice.html file from the default PDF theme you have downloaded and save it to the root directory of the store theme.

    • Use selected PDF theme (a system theme selected): The online store uses the default PDF theme but its files are not yet in the file directory. In this case, place and extract the entire ZIP archive of the default PDF theme you have downloaded to the themes/print directory in the online store. After this, go to the version settings and select the theme.

      See also the more detailed instructions on how to install PDF themes and the instructions on using the file browser.

    • Use selected PDF theme (a custom theme selected): The online store uses a custom PDF theme. In this case, copy the invoice.html file from the default PDF theme you have downloaded and save it to the root directory of the selected PDF theme.

  3. Check that the invoice looks right.

    For this, you can create a test order with the Invoice payment service and then open the PDF invoice.

    If there are flaws in the appearance of the invoice, make sure that the theme includes the css/printables.css file. If the file is missing, you can download it and add it to the theme.