/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


function my_custom_translations( $strings ) 
{
$text = array(
'Quick View' => 'Xem nhanh',
'SHOPPING CART' => 'Giỏ hàng',
'CHECKOUT DETAILS' => 'Thanh toán',
'ORDER COMPLETE' => 'Hoàn thành'
);

$strings = str_ireplace( array_keys( $text ), $text, $strings );
return $strings;
}
add_filter( 'gettext', 'my_custom_translations', 20 );
// // code trang thanh toán
add_filter( 'woocommerce_checkout_fields' , 'custom_checkout_form' );
function custom_checkout_form( $fields ) 
{
unset($fields['billing']['billing_postcode']); //Ẩn postCode
unset($fields['billing']['billing_state']); //Ẩn bang hạt
unset($fields['billing']['billing_country']);// Ẩn quốc gia
unset($fields['billing']['billing_address_2']); //billing_company
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_last_name']);
unset($fields['billing']['order_comments']);// Ẩn quốc gia
unset($fields['billing']['billing_city']); //Ẩn select box chọn thành phố
unset($fields['billing']['billing_email']); //Ẩn select box chọn thành phố
     $fields['billing']['billing_first_name']['placeholder'] = "Họ và tên";
     $fields['billing']['billing_phone']['placeholder'] = "Số điện thoại";
    return $fields;
}

function custom_checkout_field_label( $fields ) 
{
    $fields['address_1']['label'] = 'Địa chỉ giao sản phẩm';
    $fields['first_name']['label'] = 'Họ và Tên';
    return $fields;
}
	
	
	
	
	
}