• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Home
  • Blog
  • Sample Page

WordPress Tips

Just another WordPress site

Change WooCommerce Price to be by Weight

September 17, 2017 Leave a Comment

WP Beaches ~

You can change the WooCommerce price to be by weight by appending some text after the actual price such as ‘per kg’, this can be done by manipulating 3 filters that display the price in the shop/product page, cart and checkout pages;

woocommerce_get_price_html
woocommerce_cart_item_price
woocommerce_checkout_cart_item_quantity

If all items were to be classified as ‘per kg‘ you could use the

Filed Under: woocommerce, woocommerce_cart_item_price, woocommerce_checkout_cart_item_quantity, woocommerce_get_price_html, WordPress Tagged With: woocommerce, woocommerce_cart_item_price, woocommerce_checkout_cart_item_quantity, woocommerce_get_price_html, WordPress

Reader Interactions

Related Posts

  • WooCommerce Direct Checkout Review: Add a “Buy Now” Button + More
  • Media Temple Managed WordPress Hosting: Overview and Review
  • Transform Your Gym with a Booking Plugin
  • Hotjar Heatmap Analytics: An Overview and Review

Leave a Reply Cancel reply

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

Primary Sidebar

Copyright ©2019 · WPress.Tips - All Rights Are Reserved · Powered by Genesis Framework