
/**
 * Enqueue script and styles for child theme
 */
function woort_child_enqueue_styles() {
	wp_enqueue_style(
		'child-styl79900e',
		get_stylesheet_directory_uri() . '/style.css',
		array('woodmart-style'),
		woodmartnfo('Version')
	);
}
add_action('wp_enqueue_scripts', 'woodmart_child_enqueue_styles', 10010);

add_filter('woocommerce_product_add_to_cart_text', 'custom_add_to_cart_text');
add_filter('woocommerce_product_single_add_to_cart_text', 'custom_add_to_cart_text');

function custom_add_to_cart_text() {
    return 'কার্টে যুক্ত করুন';
}


add_filter('gettext', 'translate_buy_now_text', 20, 3);
function translate_buy_now_text($translated_text, $text, $domain) {
    if ($text === 'Buy Now') {
        $translated_text = 'অর্ডার করুন';
    }
    return $translated_text;
}

// Add this to your theme's functions.php or child theme's functions.php

add_filter( 'gettext', 'logiq_translate_woocommerce_strings', 20, 3 );
function logiq_translate_woocommerce_strings( $translated_text, $text, $domain ) {
    
    if ( $domain === 'woocommerce' ) {
        
        // Change "View cart" to "কার্ট দেখুন"
        if ( $text === 'View cart' ) {
            $translated_text = 'কার্ট দেখুন';
        }
        
        // Change "Checkout" to "চেকআউট"
        if ( $text === 'Checkout' ) {
            $translated_text = 'চেকআউট';
        }
    }
    
    return $translated_text;
}

/**
 * Disable email field & make state read-only
 */
add_filter('woocommerce_checkout_fields', function($fields) {
    unset($fields['billing']['billing_email']);
    if (isset($fields['billing']['billing_state'])) {
        $fields['billing']['billing_state']['custom_attributes'] = array('readonly' => 'readonly');
    }
    return $fields;
});

/**
 * Pre-fill state field
 */
add_filter('woocommerce_checkout_get_value', function($value, $input) {
    if ($input === 'billing_state' && empty($value)) {
        return 'Dhaka';
    }
    return $value;
}, 10, 2);
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://dagorbangladesh.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://dagorbangladesh.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://dagorbangladesh.com/wp-sitemap-posts-product-1.xml</loc></sitemap><sitemap><loc>https://dagorbangladesh.com/wp-sitemap-posts-cartflows_step-1.xml</loc></sitemap><sitemap><loc>https://dagorbangladesh.com/wp-sitemap-taxonomies-product_cat-1.xml</loc></sitemap><sitemap><loc>https://dagorbangladesh.com/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
