New Landing How can we help? Atelier Sold out of stock inventory tab question

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Atelier
  • #201536
    janetomlinson
    Member
    Post count: 11

    It’s still early days on my development here http://jtnew.coopa.net (not sure if you’ll be able to see it) and to be honest, I’m not a webdeveloper, I’m an artist, so I’m having a bit of a fight and learning so much that my head hurts!

    I’m trying to use the ‘shop’ as a sort of showcase exhibition area – a ‘gallery/portfolio’ combined – for all my paintings, both sold works and unsold. (I’m not sure this is the right approach but its the only thing I can think of to do.) If you have a better idea, please say!

    My immediate question is, in the inventory tab in each product, as well as (or instead of) a ‘sold’ (out of stock) tag against each product (painting), I’d very much like an additional option, or an alternative, to ‘sold’… a piece of text that says “This painting is no longer available, but is shown here for your viewing pleasure”.

    Is there anyway I can go into the back end somewhere to tweak this, or do I need to find a friendly coder somewhere to do this for me?

    Oh and one more thing, while you’re there: SEO – is this somehow integrated into the theme or should I install Yoast?

    By the way, I love this theme! And I love the way you offer support and documentation that even a simple painter like me can (mostly) follow. Bravo!

    Thank you
    love
    Jane

    #201548
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Jane,

    Yes, do install Yoast SEO – it complements the theme’s built in SEO.

    To change the text ‘Out of stock’, please use this code:

    Please activate the supplied child theme and copy and paste that into the functions.php file.

    //change woocommerce 'out of stock' product status to any text status you want
    add_filter('woocommerce_get_availability', 'custom_get_availability');
    function custom_get_availability($availability)
    {
        $availability['availability'] = str_ireplace('Out of stock', 'This painting is no longer available, but is shown here for your viewing pleasure', $availability['availability']);
        return $availability;
    }

    – Let me know how you get on.

    Thanks,
    David.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register