Toddlers Diapers – Baby Safe Diapers

🚚 Important Notice: Orders placed from 14-01-2026 onward will be dispatched on Monday. Thank you for your understanding!
[font_personalization_form]



Type Above

Note: This preview is solely for font representation; the color of the font will vary according to each bag.

// Save custom data to cart item add_filter('woocommerce_add_cart_item_data', 'add_custom_font_to_cart_item', 10, 2); function add_custom_font_to_cart_item($cart_item_data, $product_id) { if (isset($_POST['selected_font'])) { $cart_item_data['selected_font'] = sanitize_text_field($_POST['selected_font']); } if (isset($_POST['typed_text'])) { $cart_item_data['typed_text'] = sanitize_text_field($_POST['typed_text']); } return $cart_item_data; } // Display custom data in Cart & Checkout add_filter('woocommerce_get_item_data', 'display_custom_font_cart_item', 10, 2); function display_custom_font_cart_item($item_data, $cart_item) { if (isset($cart_item['selected_font'])) { $item_data[] = array( 'name' => 'Font Style', 'value' => $cart_item['selected_font'] ); } if (isset($cart_item['typed_text'])) { $item_data[] = array( 'name' => 'Personalized Text', 'value' => $cart_item['typed_text'] ); } return $item_data; } // Save custom data to Order Item Meta add_action('woocommerce_add_order_item_meta', 'add_custom_font_to_order_items', 10, 3); function add_custom_font_to_order_items($item_id, $values, $cart_item_key) { if (isset($values['selected_font'])) { wc_add_order_item_meta($item_id, 'Font Style', $values['selected_font']); } if (isset($values['typed_text'])) { wc_add_order_item_meta($item_id, 'Personalized Text', $values['typed_text']); } }
#quiz-EgHZD91
Scroll to Top