• Resolved dazemx

    (@dazemx)


    What I would like is the ability to include dropdown selections of the attribute groups & values against a given product, but without creating a variations for each. I would like to keep the product as a ‘Simple product’.

    I’m aware there is the Product Add-on plugin, but I believe using this would mean re-creating said attribute groups & values for all products?

    I already have the data within my WooCommerce install (saved in attributes). I would just like to show this as selectable dropdown’s to the user for each product. The selection they make would be saved within their basket & saved against their order as well – just like Product Add-On plugin does above.

    I understand there will not be any price changes per-attribute (this is fine for my use-case), as the price is saved against the Product, not a variation/attribute, for a ‘Simple product’.

    Can anyone help point me in the right direction for a plugin, or custom code, that would do this for me?

    Thanks!

    • This topic was modified 6 years ago by dazemx.
    • This topic was modified 6 years ago by dazemx.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @dazemx I don’t know of any plugin that works like that. Normally, for this type of scenario, I’d recommend Product Add-Ons, like you mentioned. However, yes, you would have to recreate the add-on values, as they aren’t taken off of the product attributes.

    I believe you’d need custom coding in order to achieve what you described exactly. I’ll leave this thread open for now, in case there are any other users out there that have any suggestions.

    I believe using this would mean re-creating said attribute groups & values for all products?

    Yes, but some add-on plugins you can create a “group” of attributes and assign many products to it. Its not as though you have to set up the same attributes repetitively for each product. I think some add-on plugins allow you to assign a set of attributes to all products in a category.

    Add-ons are the way to go. Checkout these free plugins:
    https://wordpress.org/plugins/yith-woocommerce-product-add-ons/
    https://en-gb.wordpress.org/plugins/woo-extra-product-options/

    Or read about these premium plugins:
    The WooCommerce one which you have identified.
    http://codecanyon.net/item/woocommerce-extra-product-options/7908619
    https://acowebs.com/woo-custom-product-addons/
    Maybe others.

    Thread Starter dazemx

    (@dazemx)

    Thanks for the replies guys, very appreciated.

    I’ve actually managed to create what I wanted with some custom code added to functions.php within my theme. Didn’t take very long at all (~35 minutes).

    I may release this as a plugin as, it would seem, there is absolutely none that provide functionality quite like this (free or paid!). It’s really useful as a user can select their options & their selection is saved against their order, but without the need of creating variations – thus a lot less data in database & hugely increased product CSV import speed.

    If I ever release this as a plugin, I’ll update this thread (if I can!).

    Thanks again!

    • This reply was modified 6 years ago by dazemx.
    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    @dazemx Thank you for the update!

    It would indeed be very helpful if you were to share that code in the thread, either as a plugin or otherwise. I’m sure other users will appreciate it.

    I’m marking this thread as resolved now. Thank you!

    Thread Starter dazemx

    (@dazemx)

    @fhaps No problem!

    I’ve created a public Gist for the code I wrote to get this working. No doubt there may be some improvements to be made, but it seems to work really well for my requirement! Add/include this file into functions.php & you’re away!

    https://gist.github.com/dazecoop/548b2621e86fb030da8e5adb1bfe484f

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Attributes as dropdown’s without variation’ is closed to new replies.