Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2730688
Remove 'Availability:In stock' Text
Closed

Comments

  • Zoe Crimes started the conversation

    I am trying to 'hide' the text that says 'availability: In stock' from the front end of my site, but I still want to manage stock in the back end.  I have found code that enables me to hide it from most of my products, but the ones that I have bundled using your plugin are still showing.  I have attached 2 examples to show you.

    The code I have used is:

    /** * Removes the stock / availability HTML from the product variation * since this is added via js the stock HTML filter is ignored * * @param array $data the variation data * @return array updated data */function sww_wc_remove_variation_stock_display( $data ) { unset( $data['availability_html'] ); return $data;}add_filter( 'woocommerce_available_variation', 'sww_wc_remove_variation_stock_display', 99 );


  •  767
    Janilyn replied

    Hi Zoe,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket and assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  153
    Henry replied

    Hi Zoe,

    You can use this CSS code:

    .woosb-availability,.product-type-woosb .stock.in-stock {
        display: none!important;
    }


    Best regards,
    Henry N.