News:

Support the VirtueMart project and become a member

Main Menu

How add + 30 days in to invoice?

Started by pkubik, February 06, 2017, 06:39:26 AM

Previous topic - Next topic

pkubik

Hello,
In the: components/com_virtuemart/views/invoice/tmpl/invoice_order.php  https://dev.virtuemart.net/svn/virtuemart/branches/com_virtuemart2.0.14mp/components/com_virtuemart/views/invoice/tmpl/invoice_order.php

Is row: <td align="left"><?php echo vmJsApi::date($this->invoiceDate, 'LC4', true); ?></td> who writes the date in shape 6.2.2017, I need this date attributed to 30 days.

I tried this: <?php $time = vmJsApi::date($this->invoiceDate, 'LC4', true); $final = date("d.m.Y", strtotime("+30 days", strtotime($time))); echo $time . "<br>";echo $final; ?> but only prints date 01-02-1970.

Does anyone know how to continue to make it work? Thanks.