Skip to content

Adds the "Bought products" field and filter for the member directory (based on WooCommerce orders)

License

Notifications You must be signed in to change notification settings

umdevelopera/um-woocommerce-bought-product

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ultimate Member - Bought products

Adds the "Bought products" field and filter based on WooCommerce orders.

Key features

  • 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

Installation

Note: This plugin requires the Ultimate Member and WooCommerce plugins to be installed first.

How to install from GitHub

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.

How to install from ZIP archive

You can install the plugin from this ZIP file as any other plugin. Follow this instruction.

How to use

How to add the "Bought products" field to profiles

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. um-woocommerce-bought-product 01-1

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. um-woocommerce-bought-product 01-2

How to add the "Bought products" filter to the member directory

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. um-woocommerce-bought-product 02-1

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. um-woocommerce-bought-product 02-2

How to update data manually

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. UM Dashboard

Image - Update bought products process. UM Dashboard + Update purchased products process

Support

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.

Useful links

Ultimate Member core plugin info and download

Documentation for Ultimate Member

Official extensions for Ultimate Member

Free extensions for Ultimate Member

Code snippets for Ultimate Member

About

Adds the "Bought products" field and filter for the member directory (based on WooCommerce orders)

Topics

Resources

License

Stars

Watchers

Forks