Support » Plugin: WooCommerce » Enable Add To Cart for specific products Not for all.

  • Hi there,

    I am sure this might have been asked earlier. I am novice in php and first time building eCommerce website using WooCommerce.

    All the products in my site are not 100% guaranteed to be available (depends upon the supplier and availability). So I would like to enable Add To Cart for those products which i have in my stock.

    Can you please help me to meet my requirement ? Any pointers or reference if it has already been done would be highly appreciated.

    Thanks in advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Roy Ho


    Can you not just use the stock option on your products? The ones in stock enable it as in stock and vice versa?

    thanks I will try and see if it works.

    Thanks Your solution worked like charm.

    I have another question. Is it possible to have different woocommerce product categories listed on different pages ?

    For example, I have Men’s and Women’s products. If User clicks on Men from Menu bar, I would like to display only Men’s category on side bar of that page.

    By default , woocommerce product categories widget displays all categories created in my store.

    Please advise. Thanks in advance.

    Roy Ho


    Yes, go to your menus and simply drag the product category to your menu bar.

    I have already created two menu bars. One for Women and other for Men along with their specific product categories.

    Now how would i associate these two menu bars to their specific pages ? I mean, if i click on Men then i could only see Men’s specific product categories on product catalog table.

    Roy Ho


    I don’t think you’re doing it correctly. What I said for you to do is assuming you already have setup the Men’s category and Women’s category. If you already did that, then in your menus, you just put those categories in. Don’t create your own custom link. The categories is already in your options.

    If you don’t see them, they are hidden. On the top right corner of your screen click the “screen options” and you will reveal all the possible widgets to add.

    Thanks Once again. i have reached up to that level. I see those prodcut categories under my Menu Link.

    On my product catalog page, i have a left sidebar where i display product categories. from Widget, i have added “woocommerce product categories” to product sidebar. But it shows me all the categories for Men and Women on that page.

    If i have clicked on Men’s category, i would like to display only Men’s specific categories NOT ALL.

    Thanks for being so patience with me.

    Roy Ho


    Sorry, my solution was for your main menu, not your sidebar as I thought you’re referring to your main menu.

    Can you please shed some light OR guide me where should i ask this question ? Any help in this regard would be highly apprecaited.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Enable Add To Cart for specific products Not for all.’ is closed to new replies.