예제 #1
0
                                    </div>
                                </div>

                                <div class="form-row">
                                    <label class="form-label" for=""><?php 
_e('Price', ST_TEXTDOMAIN);
?>
</label>
                                    <div class="controls">
                                        <div id="item-price-wrapper">
                                            <?php 
$price = '';
$car_id = isset($_POST['item_id']) ? $_POST['item_id'] : $order_item_id;
if (intval($car_id) > 0 && get_post_type($car_id) == 'st_cars') {
    $price = floatval(get_post_meta($car_id, 'cars_price', true));
    $price = TravelHelper::format_money($price) . ' / ' . STAdminCars::get_price_unit();
    echo $price;
}
?>
                                        </div>
                                        <span class="spinner"></span>
                                    </div>
                                </div>

                                <div class="form-row">
                                    <label class="form-label" for=""><?php 
_e('Pick Up', ST_TEXTDOMAIN);
?>
</label>
                                    <div class="controls">
                                    <?php 
예제 #2
0
 /**
  *
  *
  *
  * @since 1.1.1
  * */
 static function get_list_value_taxonomy()
 {
     $data_value = array();
     $taxonomy = get_object_taxonomies('st_cars', 'object');
     foreach ($taxonomy as $key => $value) {
         if ($key != 'st_category_cars') {
             if ($key != 'st_cars_pickup_features') {
                 if (is_admin() and !empty($_REQUEST['post'])) {
                     $data_term = get_the_terms($_REQUEST['post'], $key, TRUE);
                     if (!empty($data_term)) {
                         foreach ($data_term as $k => $v) {
                             array_push($data_value, array('value' => $v->term_id, 'label' => $v->name, 'taxonomy' => $v->taxonomy));
                         }
                     }
                 }
             }
         }
     }
     self::$data_term = $data_value;
 }