Monday, January 25, 2016

Hiding the Spinner arrow key on Input Type Number on Firefox and Chrome

input[type=number] {-moz-appearance: textfield;}

::-webkit-inner-spin-button { -webkit-appearance: none;margin:0;}

::-webkit-outer-spin-button { -webkit-appearance: none;;margin:0;}

Thursday, January 7, 2016

Display custom fields on order details page in Woocommerce

You can use WordPress function "get_post_meta" to echo out your custom field in "order-details.php" template.

<?php echo get_post_meta( $order->id, 'custom-field-name', true ); ?>