WordPress.org

Forums

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

  1. mattmikulla
    Member
    Posted 1 year 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:

    <?php
    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"?

    http://wordpress.org/plugins/woocommerce-product-archive-customiser/

  2. phj123
    Member
    Posted 10 months ago #

    I got the same problem over here!

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

  3. mattybrown
    Member
    Posted 9 months 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

Tags

No tags yet.