Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rajucs/82af5a49eaf30ee6ae6392698808d987 to your computer and use it in GitHub Desktop.

Select an option

Save rajucs/82af5a49eaf30ee6ae6392698808d987 to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_checkout_cart_item_quantity', 'customizing_checkout_item_quantity', 10, 3);
function customizing_checkout_item_quantity( $quantity_html, $cart_item, $cart_item_key ) {
$quantity_html = ' <br>
<span class="product-quantity" style="font-weight:bold;">' . __('Quantity:') . ' <strong>' . $cart_item['quantity'] . '</strong></span>';
return $quantity_html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment