'.($shipping_h2 ?? 'shipping').' ('.$query_total.')

'.($shipping_p ?? '').'

'; if (isset($success_msg)){ $view .= '

'.$success_msg.'

'; } $view .= '
'.($button_create_shipping ?? 'Create shipping').'
'; if (empty($shipping)){ $view .= ''; } else { foreach ($shipping as $shipment){ $current_date = strtotime((new DateTime())->format('Y-m-d H:i:s')); $shipping_countries = ($shipment['countries'] ? str_replace(',', ', ', $shipment['countries']) : $general_all ?? 'all'); if ($shipping_countries != ($general_all ?? 'all')){ $countryNames = getCountryNamesByIds($countries, $shipping_countries); $shipping_countries = implode(', ', $countryNames); } $view .= ' '; } } $view .= '
'.($shipping_id ?? '#').' '.($shipping_name ?? 'name').' '.($shipping_type ?? 'Type').' '.($shipping_category ?? 'Countries').' '.($shipping_price ?? 'Price Range').' '.($shipping_weight ?? 'Weight Range').' '.($shipping_price_total ?? 'Total price').'
'.($message_no_shipping ?? 'There are no shipping').'
'.$shipment['id'].' '.$shipment['name'].' '.($shipment['type'] == 0 ? ($shipping_type_standard ?? 'Standard' ) : ($shipping_type_express ?? 'Express')).' '.$shipping_countries.' '.number_format($shipment['price_from'], 2).' - '.number_format($shipment['price_to'], 2).' kg '.number_format($shipment['weight_from'], 2).' kg - '.number_format($shipment['weight_to'], 2).' kg '.number_format($shipment['price'], 2).'
'; $view.=''; //OUTPUT echo $view; template_footer(); ?>