// Wallmora – always save order phone numbers as 10 digits
function wallmora_clean_phone( $phone ) {
$p = preg_replace( '/\D/', '', (string) $phone );
if ( strlen( $p ) === 12 && substr( $p, 0, 2 ) === '91' ) {
$p = substr( $p, 2 );
} elseif ( strlen( $p ) === 11 && $p[0] === '0' ) {
$p = substr( $p, 1 );
}
return $p;
}
add_action( 'woocommerce_before_order_object_save', function ( $order ) {
$b = $order->get_billing_phone();
if ( $b && wallmora_clean_phone( $b ) !== $b ) {
$order->set_billing_phone( wallmora_clean_phone( $b ) );
}
$s = $order->get_shipping_phone();
if ( $s && wallmora_clean_phone( $s ) !== $s ) {
$order->set_shipping_phone( wallmora_clean_phone( $s ) );
}
} );
FLAT 25% OFF -USE CODE-“FIRST25”-
Your cart is currently empty!
New in store
-
Al-Iman Acrylic WallArt
₹9,995.00
-
Sale
Product on sale
Modern Black RoseGold Honeycomb Center Table
₹14,999.00 – ₹17,999.00Price range: ₹14,999.00 through ₹17,999.00
-
Sale
Product on sale
Modern Metallic Round Coffee Table
₹11,999.00 – ₹13,499.00Price range: ₹11,999.00 through ₹13,499.00
-
Sale
Product on sale
Royal Black Marble Gold Honeycomb Center Table
₹23,999.00 Original price was: ₹23,999.00.₹17,999.00Current price is: ₹17,999.00.
Start typing to see products you are looking for.