First thing is to add CUSTOM ATTRIBUTES to WooCommerce orders
Click on PRODUCTS | ATTRIBUTE – add a new attribute (for example “course name”) and then we will add the values for this attribute:
Once you’ve entered an attribute you can add the values for that attribute. In this case, I wanted to add several course names that would relate to the user roles that I want to assign to users when they buy this product.
For example, if someone buys the PMP MASTERCLASS then I want to assign an extra user role of “PMP Masterclass” to their user roles. So i added attributes for all the various classes I wold be assigning to user roles:
Now – when you look at your products you can update them to add the name of the attribute that we will be using to assign a user class
Now you can select the attribute you added:
You can add multiple attributes.
Remember to deselect “Visible on the product page “
And that’s that 🙂
IBM i Software Developer, Digital Dad, AS400 Anarchist, RPG Modernizer, Alpha Nerd and Passionate Eater of Cheese and Biscuits. Nick Litten Dot Com is a mixture of blog posts that can be sometimes serious, frequently playful and probably down-right pointless all in the space of a day. Enjoy your stay, feel free to comment and in the words of the most interesting man in the world: Stay thirsty my friend.
How to instantly add WooCommerce product to cart and check out
WooCommerce Multicurrency Free – on product pages only
Free alternative to Teamviewer – Cloudberry Remote Assistant is excellent!
How to upgrade from YOAST to Rank Math SEO
Big Brother, Freespeech and the Anti-Intellectual trend
WordPress 5.3 upgrade error with Thrive Architect
How to rename Fresche (BCD) Presto Library – XL_PRESTO
How to increase upload file size limit in WordPress
Thrive Pressive Theme – SQL TITLE SECTION