WordPress.org

Ready to get started?Download WordPress

Forums

changing variable price display (3 posts)

  1. Matt Gilbert
    Member
    Posted 1 year ago #

    I have some products that have variations that change the price. I would like to change the display of the price in the archive and single-product views. The default is generated as "From: $X.XX" and I would like it to show as "$X.XX and up".

    I have located the price.php files for the loop and for the single product pages of the templates, but I can't locate the actual code that generates the <span class="from"> and <span class="amount">. Those two items seem to be generated by get_price_html() but I can't seem to locate that function.

    Any help with where I can find that function or how I can override the output through a hook or filter would be greatly appreciated.

    Thanks.

  2. bcworkz
    Member
    Posted 1 year ago #

    I'm guessing that function is from a commerce plugin or theme you're using. You can also filter the content of each post with the filter 'the_content'.

  3. Lara Chelak
    Member
    Posted 1 year ago #

    Matt -- You might have beeter luck posting in a forum specific to the plugin. Which is it?

Topic Closed

This topic has been closed to new replies.

About this Topic