umdevelopera / um-woocommerce-bought-product

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 (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

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 this plugin from the ZIP archive as any other plugin. Follow this instruction.

How to use

How to update data

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

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

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.

Note: By default this field is visible for the profile owner and administrators.

Image - How to add a field to the Profile form. um-woocommerce-bought-product 01-1

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.

Note: By default this filter is visible for administrators.

Image - How to add a filter to the Member Directory. um-woocommerce-bought-product 02-1

Image - The "Bought products" filter in the Member Directory. um-woocommerce-bought-product 02-2

Hooks

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 );

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.

Related links

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

About

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


Languages

Language:PHP 87.3%Language:JavaScript 10.7%Language:CSS 1.9%