WHD profile

Home Forums WHD

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • WHD
    Participant

    This is the html output of the part I’m trying to change:

     

    <span class=”sh-popover-mini sh-popover-mini-dark sh- fadeIn” style=”visibility: visible; animation-name: fadeIn;”>Sold out</span>

    WHD
    Participant

    Sure here it is:

    https://socialsparklingwine.com/buy/

     

    And you’ll see if you click through to a product and look below the description it says “Back in Stock Soon”, which is coming from this:

     

    add_filter( ‘woocommerce_get_availability’, ‘wcs_custom_get_availability’, 1, 2);
    function wcs_custom_get_availability( $availability, $_product ) {

    // Change Out of Stock Text
    if ( ! $_product->is_in_stock() ) {
    $availability[‘availability’] = __(‘Back In Stock Soon!’, ‘woocommerce’);
    }
    return $availability;
    }

    WHD
    Participant

    I’ve already done that and it changes the text within the body on the product page, but does not change the bubble text that overlays on the images.  As mentioned, that doesn’t seem to be using the standard woocommerce availability value.

    Attachments:
    You must be logged in to view attached files.
Viewing 3 posts - 1 through 3 (of 3 total)