WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mattmikulla
    Member
    Posted 8 months 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 1 month 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 1 week ago #

    I have the same problem too.Any help appreciated.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.