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.
- Adds a widget used to update information about bought products manually.
- Automatically updates information about bought products for all users on activation.
- Automatically updates information about bought products 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 the plugin from this ZIP file as any other plugin. Follow this instruction.
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.
Image - How to add a field to the Profile form.
The Bought products field is visible for the profile owner and administrators. Change the field's Privacy option if you want to make the field visible to others.
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.
Image - How to add a filter to the Member Directory.
The Bought products filter is visible for administrators and roles that can edit other member accounts. Use the um_woocommerce_bought_product_can_view_field
filter hook if you want to make the filter visible to others.
Image - The "Bought products" filter in the Member Directory.
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, find the Bought products widget and click the Start button to run the process. You'l 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.
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.
Give a star if you think this extension is useful. Thanks.
Ultimate Member core plugin info and download
Documentation for Ultimate Member
Official extensions for Ultimate Member