The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WooCommerce Product Archive Customiser
Change "Out of Stock" Text on Archive Products with "Sold" (3 posts)

  1. mattmikulla
    Posted 2 years ago #

    I can easily change the "Out of Stock" text on the individual product page to "Sold" using the following snippet in my functions file:

    add_filter('woocommerce_get_availability', 'availability_filter_func');
    function availability_filter_func($availability)
    	$availability['availability'] = str_ireplace('Out of stock', 'Sold', $availability['availability']);
    	return $availability;

    How would I change the text on each product archive element to "Sold"?


  2. phj123
    Posted 2 years ago #

    I got the same problem over here!

    Can anyone please help us out or did you maybe found a fix?

  3. mattybrown
    Posted 2 years ago #

    I have the same problem too.Any help appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce Product Archive Customiser
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.