• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    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’.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘changing variable price display’ is closed to new replies.