• Resolved tonywh

    (@tonywh)


    I’m looking for a solution to set a WooCommerce to only virtual products. The site uses a Vendor system so other people will have the ability to create products. I need them only to be able to create virtual products (no shipping etc).

    Essentially, when a user goes on to the ‘Add new product’ page, it will automatically tick the virtual product checkbox and not allow them to uncheck it.

    Any help would be very grateful ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    @tonywh

    You’ll probably need to use some code to remove those options.

    I found this really terrific tutorial on how to do that: https://rudrastyh.com/woocommerce/product-types.html

    Note that I have not tested this and we are not affiliated with that website. ??

    Thread Starter tonywh

    (@tonywh)

    Thank you, that actually helped me solve another solution! However, this just shows how to remove the option of virtual products, I need the ability to set every product that is created to be a virtual product.

    I have tried using JQuery to automatically check the text box but it doesn’t actually set it to a virtual product until the user unchecks it and checks it again.

    Thanks again.

    Hi @tonywh,

    Try this function in your theme’s functions.php file to automatically set any product created to be virutal.

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @tonywh

    I hope Mike’s tip helped point you to a solution.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Setting a fully virtual store’ is closed to new replies.