Allow Product Add-ons to be added programatically from a PHP class method or via a URL attribute

At present there’s no way to programatically add a Product add-on. Seems inconsistent with what WC offers out of the box with variants and attributes.

Author

Current Status

Closed

Last updated: August 15, 2022

5 comments

Log in to comment on this feature request.

  1. gevorgbuh says:

    If you are talking about the possibility of switching select in the product card using the url address with an ID, for example http://www.your site? id=street-28, then I fully support and believe that such a function is needed in the near future.
    I have already encountered such a need in my project and I can’t do anything myself, unfortunately, without the help of woocommerce developers

  2. SALITEL says:

    I need this

  3. Andreas Seierup says:

    This is indeed a important feature to come.
    A hook/action for this should be easy to build.

  4. gray says:

    I would as well like to link directly to a specific WooCommerce product with selected add-ons already set up, in a way that uses variables – oursite.com/dynamic-hosting-product/?CPU_Cores=2&GB-RAM=3. We frequently need to send emails to customers directing them buy specific configurations of our hosting products, and it would be helpful to be able to send them directly to a specific variation without them having to enter it in themselves.

  5. Corey Mitchell says:

    Is this still not possible? I just picked up this plugin in order to do this exact thing since the order is being constructed from a mobile application.