• Resolved hanikey

    (@hanikey)


    how can i hide the quantity tab for custom product types in woocommerce. I’ve been trying all code i’ve been getting on forum and none seems to work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @hanikey,

    Thanks for reaching out.

    Helping out with custom coding of this nature is outside the scope of support that our staff can help out with here, although I would recommend the following:

    1. Running the exact question you’re asking, along with the code provided, through an AI platform like ChatGPT for recommendations/changes to your code;
    2. Checking whether there are existing plugins in the WordPress plugin repository that might be doing that already.
    3. Joining our WooCommerce Slack community (it does have a developer channel where you can ask coding questions): https://woo.com/community-slack/

    Hope it helps!

    Plugin Support RK a11n

    (@riaanknoetze)

    Hi @hanikey

    In addition to what my colleague replied, and speaking in general terms, the easiest would be to hide that field with custom CSS (assuming this is on the single product page). The body tag should contain the product type as a classname. You could then use that unique classname to hide the quantity field on the single product page for specific product types.

    Hope it helps.

    Thread Starter hanikey

    (@hanikey)

    @ckadenge thanks for your response, i will try out your third suggestion, which is the slack community. I’ve tried AI but as it is that Gpt only use what’s in it’s archive to answer, so it hasn’t been of help. It seems i’m the first person trying such.

    Thread Starter hanikey

    (@hanikey)

    @riaanknoetze thanks for your feedback, i will also give that a try.

    Thread Starter hanikey

    (@hanikey)

    i’ve finally solved the issue by following another method to recreate the product type

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @hanikey

    I’m glad you were able to find a solution to your inquiry here and thanks for sharing it with the community too! ??

    Should you have further inquiries, kindly create a new topic here.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.