Adds the "Bought products" field and filter based on WooCommerce orders.
- Add the "Bought products" field to the profile form builder.
- Add the "Bought products" filter to the member directory (for administrators).
- Adds a widget used to update the
woo_bought_products
user meta manually. - Automatically updates the
woo_bought_products
user meta for all users on the plugin activation. - Automatically updates the
woo_bought_products
user meta for a user on the order status change. - Supports the High-Performance Order Storage feature since 1.2.0
Note: This plugin requires the Ultimate Member and WooCommerce plugins to be installed first.
Open git bash, navigate to the plugins folder and execute this command:
git clone --branch=main git@github.com:umdevelopera/um-woocommerce-bought-product.git um-woocommerce-bought-product
Once the plugin is cloned, enter your site admin dashboard and go to wp-admin > Plugins > Installed Plugins. Find the "Ultimate Member - Bought products" plugin and click the "Activate" link.
You can install this plugin from the ZIP archive as any other plugin. Follow this instruction.
The plugin automatically updates information about bought products for all users on activation. You can use a widget to update information about bought products manually.
Go to wp-admin > Ultimate Member > Dashboard to update information about bought products for members. Find the Bought products widget and click the Start button to run the process. You'll see a progress bar below. Wait until the process will be done.
Image - How to update information about bought products using a widget.
Image - Update bought products process.
Go to wp-admin > Ultimate Member > Forms > Default Profile to add the Bought products field to profiles. Click the "+" icon in the Form Builder. You will see the Fields Manager pop-up. Click the Bought products button. A field will be added to the form. Click the Update button to save changes. See details here.
Note: By default this field is visible for the profile owner and administrators.
Image - How to add a field to the Profile form.
Image - The "Bought products" field in the Profile form.
Go to wp-admin > Ultimate Member > Member Directories > Edit to add the Bought products filter to the member directory. Scroll down to the Search Options section. Turn on the Enable Filters feature setting and you will see the Choose filter(s) meta to enable setting below. Click the Add New Custom Field button to add a new filter. Choose the Bought products in the field that appears. Click the Update button to save the changes. See details here.
Note: By default this filter is visible for administrators.
Image - How to add a filter to the Member Directory.
Image - The "Bought products" filter in the Member Directory.
um_woocommerce_bought_product_can_view_field - allows displaying the "Bought products" filter for everyone.
Example:
add_filter( 'um_woocommerce_bought_product_can_view_field', '__return_true', 10, 1 );
This is a free extension created for the community. The Ultimate Member team does not provide support for this extension. Open new issue if you are facing a problem or have a suggestion.
Ultimate Member home page: https://ultimatemember.com/
Ultimate Member documentation: https://docs.ultimatemember.com/
Ultimate Member on wordpress.org: https://wordpress.org/plugins/ultimate-member