Home Forums WoodMart – Premium Template Enable Stock but hide it's display

This topic contains 11 replies, has 2 voices, and was last updated by Elise Noromit Elise Noromit 1 week, 4 days ago.

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #81852

    addy
    Customer

    Hello,

    As the topic says, we want to disable stock number display even though we wish to enable “manage stock” and “stock quantity”.

    This is because we are using some third party countdown timer which also shows the stock number. So we do not want to display same information twice. Hence need to disable the theme display of stocks.

    Let me know how it can be done.

    In summary: I need to hide this display (See screenshot)

    Private Content Hidden
    #81880

    Hello,

    Please disable all the third parties plugins not related to the theme. I cannot enter a product https://gyazo.com/456118de646f51c7c60813f26a5e1f4d Your site trying to search something though I did not press search. It tries on its own.

    Best Reagards

    #82009

    addy
    Customer

    Please check now. The page should load correctly. And help us solve the original issue. Thanks

    #82015

    Hello,

    Please add this code to the Theme Settings > Custom CSS:

    .product-image-summary .out-of-stock,
    .product-image-summary .in-stock{
        display:none;
    }

    Best Regards

    #82053

    addy
    Customer

    Hello,

    I have added that code to the global CSS in Theme settings>Global CSS but the stock number still displays.

    Private Content Hidden
    • This reply was modified 1 week, 4 days ago by  addy.
    #82060

    Hello,

    I have tested the code in my testing environment and it works. Please provide your valid access.

    Best Regards

    #82066

    addy
    Customer

    Access given below.

    As you are already aware that this is a test website. let me know all the changes you make here. So I can replicate on the original website.

    Private Content Hidden
    #82070

    Hello,

    I have added above-provided code and stock is not visible, check this product Vornex Minimalist Wooden Coffee Table
    http://prntscr.com/l4kyw1
    Please clarify your purpose perhaps I have misunderstood you.

    Best reagards

    #82071

    addy
    Customer

    Where have you added that code? Is it specific to that product only? For example, check another product – (Link)

    The stock number is displayed.

    Private Content Hidden
    #82098

    Hello,

    I have also added this code for variation product:

    .variations_form .woocommerce-variation-availability .out-of-stock,
    .variations_form .woocommerce-variation-availability .stock {
     display:none;
    }

    Best Regards

    #82198

    addy
    Customer

    Yes, it works, but I wish to display “out of stock” if the product is marked out of stock. It should not display “in stock” as said. So the correct code would be this?

    .product-image-summary .in-stock{

    display:none;
    }

    .variations_form .woocommerce-variation-availability .stock {

    display:none;

    }

    #82211

    Hello,

    Yes, delete the lines with “out of stock” class

    Best Regards

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

The topic ‘Enable Stock but hide it's display’ is closed to new replies.