Price display is an important area of the WooCommerce product page. Customers check out the prices and carry out price and product comparison before buying the products. Thus, the request to change WooCommerce price display is a common store alteration.

Changing WooCommerce price display involves two important filters:

  • woocommerce_get_price_html: changes the way price is shown on the product and shop pages.
  • woocommerce_cart_item_price: changes the way product prices are shown in the cart table.

Change WooCommerce Price Display for All Products

function wbcom_change_product_price_display( $price ) {
  $price .= ' At Each Item Product';
  return $price;
}
add_filter( 'woocommerce_get_price_html', 'wbcom_change_product_price_display' );// Changes on shop and single product page
add_filter( 'woocommerce_cart_item_price', 'wbcom_change_product_price_display' );// Changes on cart

The woocommerce_get_price_html filter will change this on the shop pages:

Change WooCommerce Price Display

Change WooCommerce Price Display

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Welcome to Wbcom Designs!  - Get 10% off on all plugins & themes
Coupon : HELLO10