Spray Dispensers


Cleaning & disinfecting our hands is quite essential for a healthy & hygienic lifestyle. We have a wide range of touch-free automatic spray dispensers that will not only help you in protecting yourself & your loved ones, but will also ensure optimum hygiene at all times.


Spray Dispensers


Cleaning & disinfecting our hands is quite essential for a healthy & hygienic lifestyle. We have a wide range of touch-free automatic spray dispensers that will not only help you in protecting yourself & your loved ones, but will also ensure optimum hygiene at all times.


tags. add_action( 'woocommerce_thankyou', 'custom_datalayer_purchase_event' ); function custom_datalayer_purchase_event( $order_id ) { if ( ! $order_id ) { return; } $order = wc_get_order( $order_id ); if ( ! $order ) { return; } // Get order details $transaction_id = $order->get_order_number(); $value = $order->get_total(); // This gets the order total, which is the purchase value $currency = $order->get_currency(); $items = array(); foreach ( $order->get_items() as $item_id => $item ) { $product = $item->get_product(); if ( $product ) { $item_price = $order->get_item_total( $item, true, true ); // Get item total, including tax // Ensure price is numeric and not empty if ( ! is_numeric( $item_price ) || empty( $item_price ) ) { $item_price = 0; // Default to 0 if price can't be determined } $items[] = array( 'item_id' => $product->get_id(), 'item_name' => $item->get_name(), 'price' => floatval( $item_price ), // Ensure it's a float 'quantity' => intval( $item->get_quantity() ), // Ensure it's an integer // Optional: Add more fields for Enhanced Ecommerce as needed: // 'item_brand' => 'Your Brand', // 'item_category' => implode( ',', wc_get_product_term_names( $product->get_id(), 'product_cat' ) ), // 'item_variant' => '', ); } } // Output the Data Layer push script as JavaScript ?>