News:

Support the VirtueMart project and become a member

Main Menu

Calculate shipping date automatically

Started by michel777, July 20, 2018, 08:17:27 AM

Previous topic - Next topic

michel777

HI,

how to calculate and out the shipping date automatically in to the invoice ?

E.G. [shipping_date] = [current_date] + 8 (days) ?

Thanks a lot,

Michel

PRO

this one adds weekdays only to the date


<?php
$daystoship='8';
$ship_date = date('md', strtotime(" + $daystoship  Weekdays"));
$mo = substr($ship_date, 0, 2);
$da = substr($ship_date, 2, 2);
$est = $mo . "/" . $da;
echo $est;
?>