Schedule installation #49

Merged
bilal.catic merged 21 commits from schedule-installation-new into master 2018-11-03 11:24:43 +01:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 2a3f2f8245 - Show all commits

View File

@@ -29,7 +29,6 @@ class Wiaas_Admin_Order_Process_Flow {
public static function add_custom_fields_after_order_details($order){
$global_estimated_delivery_date = Wiaas_Order::get_global_estimated_date($order->id);
$formated_global_estimated_delivery_date = $global_estimated_delivery_date ? date("Y-m-d", $global_estimated_delivery_date) : "";
$order_id = $order->id;
require 'views/html-order-global-delivery-date.php';

View File

@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<p class="form-field form-field-wide">
<label for="estimated-delivery-date">Estimated delivery date:</label>
<input id="estimated-delivery-date" name="estimated-delivery-date"
type="date" value="<?php echo $formated_global_estimated_delivery_date ?>"
type="date" value="<?php echo $global_estimated_delivery_date ? date("Y-m-d", $global_estimated_delivery_date) : ""; ?>"
onChange="onGlobalEstimatedDeliveryDateChange(this.value)"/>
</p>