Adding Extra Info with Price in Woocommerce

price-extra-info

UPDATE: Download Woocommerce Extra Price Info Pro Plugin to show extra info on cart & checkout pages.

There is no way to add extra information with the price of the product in Woocommerce. So I created a small plugin which adds an extra box below the price input in edit product page.

You can use it to show the extra information where you are selling quantity based products or you can use it even with other products which comes in packages , e.g  $10 (10 pencil pack)

This way your customer will know quantity or the number of items they will get just by looking at the price.

Here is how I added the extra box to show info with price in fronted.

First we need to add the extra box to add/edit product page.It will allow user to add extra info while adding price.
We will use woocommerce_product_options_pricing for that

To save the added info , we will use woocommerce_process_product_meta

 

Finally to show the added info with price we will use woocommerce_get_price_html

Thats it !!

You can download the full plugin from wordpress repository or you can check github repo

5 thoughts on “Adding Extra Info with Price in Woocommerce

  1. Any idea how to get this to effect the price of a variable product? Meaning the price that is generated at the bottom after the variable attributes are selected?

  2. Very nice plugin! Congrats!
    How can I have the text below the price, instead of after the price?
    Thanks.

  3. hi,
    how can i display the info UNDER the price ?
    thanks

Leave a Reply

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