Skip to content

Instantly share code, notes, and snippets.

View smtylmz89's full-sized avatar
Good things happens in Time by an order

Samet Yılmaz smtylmz89

Good things happens in Time by an order
View GitHub Profile
@liranop
liranop / expend shipping row
Last active August 11, 2023 05:58
Make shipping row in woocommerce cart and checkout to full width
/**
* @snippet Expend WooCommerce Shipping Row in Cart and Checkout
*/
add_action( 'wp_footer', 'expend_shipping_row_jscript', 9999 );
function expend_shipping_row_jscript() {
if ( is_cart() || is_checkout() && empty( $wp->query_vars['order-pay'] ) && ! isset( $wp->query_vars['order-received'] ) ) {
?>
<script type="text/javascript">