WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. medesis
    Member
    Posted 1 year 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?

    Jess

    http://wordpress.org/extend/plugins/woocommerce/

  2. Rsavantwp
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

    You can try this filter -> woocommerce_get_price_html

  4. evanspj
    Member
    Posted 1 year ago #

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

    Peter

  5. Roy Ho
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags