Save woocommerce order fields in uppercase

add_filter('woocommerce_checkout_posted_data', 'my_custom_woocommerce_checkout_posted_data'); function my_custom_woocommerce_checkout_posted_data($data){ if($data['billing_first_name']){ $data['billing_first_name'] = strtoupper($data['billing_first_name']); } if($data['billing_last_name']){ $data['billing_last_name'] = strtoupper($data['billing_last_name']); } //shipping fields too if($data['shipping_first_name']){ $data['shipping_first_name'] = strtoupper($data['shipping_first_name']); } if($data['shipping_last_name']){ $data['shipping_last_name'] = strtoupper($data['shipping_last_name']); } return $data; }

Continue ReadingSave woocommerce order fields in uppercase

Woocommerce price prefix/suffix

add_filter( 'woocommerce_get_price_html', 'custom_change_product_price_display' ); add_filter( 'woocommerce_cart_item_price', 'custom_change_product_price_display' ); function custom_change_product_price_display( $price ) { // Your additional text in a translatable string $text = __('Starting from'); // returning the text before…

Continue ReadingWoocommerce price prefix/suffix