WooCommerce - excelling eCommerce
Add Text After Price (5 posts)

  1. medesis
    Posted 2 years ago #

    I'm sure this has been asked many times, but I want to add "per box" or "per carton" after the price that appears when the customer has chosen the attributes they want.

    So I have a variable product where say the customer may choose 11cm diameter in red and the price appears £10.40. I want it to say £10.40 per box.

    I can't believe its not possible to do this already in standard woocommerce, but I can't find it. If not then I further can't believe that someone hasn't written a plug-in to sort it.

    Anyone point me in the right direction?



  2. Rsavantwp
    Posted 2 years ago #

    Add something like this to your style.css folder.. I'm not a pro at CSS but I'm positive this is similar to what you need.

    regular_price:after {
    content = "per box"


  3. Roy Ho
    Posted 2 years ago #

    Actually the proper way to do it is use a filter.

    You can try this filter -> woocommerce_get_price_html

  4. evanspj
    Posted 2 years ago #

    Thanks for the suggestion smashingpixels.com but could you provide a little more information or a pointer on how to use filters.


  5. Roy Ho
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic