If you know me, I have a tendency to find workarounds or creative solutions when I do my sites. I am not a coder or a developer, so I tend to rely on plugins to help me. Here is an example of that.
If you use WooCommerce, you know there are tons of plugins and add-ons that can help you with just about anything. But I seem to be the one that always needs something that does not have an easy solution.
On the account page of my students who take my classes on my other site, I wanted to be able to manually add expiration dates that were specific to each student. I searched high and low for something to do the trick. I even contacted WooThemes and they didn’t know of an add-on that would do this. When I asked others who used WooCommerce, it always came back to this solution.
You will need someone to code something for you.
So I broke down. Asked one developer for a quote, but the price really was more than I wanted to spend on this feature. The point was that this wasn’t a necessary feature, but something to make life a little easier for me and my students. I then put in for a request at Tweaky.com.
In the meantime, I still was determined to figure something out. I began to wonder if there was some kind of plugin that could pull in content from a field in the user profile. The biographical info was a good candidate because that field wasn’t used in my students user profile.
Next it was a matter of finding a plugin that would help me with this. After just a bit of searching, I found the Get User Custom Field Values plugin. The description sounded promising:
Easily retrieve and control the display of any custom field values/meta data for the currently logged in user or any specified user.
I liked that is started with Easily.
So after installing it and reading the docs for the plugin, I went into my accounts page and added the highlighted bit of code. Description would pull in the text from the user bio.
Now I went into the user profile and put the expiration dates I wanted to display.
Now when a user goes into their WooCommerce account page, the expiration dates are nicely displayed.
I’m sure if you are a developer or coder, and you’re reading this, you might want to say that it would have been easier having someone to hardcode this in. But let’s face it, for the average user, if they decide they no longer want to have this displayed, they can easily deactivate the plugin rather than hiring another developer to remove it from the coding.