<?php /** * @package WordPress * @subpackage Traveler * @since 1.0 * * Cars cart item html * * Created by ShineTheme * */ if (isset($item_id) and $item_id) { $item = STCart::find_item($item_id); $data_price_cars = $item['data']['data_price_cars']; $selected_equipments = isset($item['data']['selected_equipments']) ? $item['data']['selected_equipments'] : false; $pick_up_date = $data_price_cars->date_time->pick_up_date; $pick_up_time = $data_price_cars->date_time->pick_up_time; $drop_off_date = $data_price_cars->date_time->drop_off_date; $drop_off_time = $data_price_cars->date_time->drop_off_time; $total_time = $data_price_cars->date_time->total_time; $date = new DateTime($pick_up_date); $start = $date->format('m/d/Y') . ' ' . $pick_up_time; $start = strtotime($start); $date = new DateTime($drop_off_date); $end = $date->format('m/d/Y') . ' ' . $drop_off_time; $end = strtotime($end); $day = STCars::get_date_diff($start, $end); if (!empty($item['data']['discount'])) { $count_sale = $item['data']['discount']; $price_old = $item['data']['price_old'];