Documentation for the Add User Products for WooCommerce plugin.

Documentation for Add User Products for WooCommerce Plugin

Author: WPFactory PluginsVersion: 1.4.1Updated: 10 months ago
Requires WordPress version: 5.0Tested up to WordPress version: 6.2

 


Table of Contents

Settings

 

With User Products for WooCommerce Pro plugin you can allow your users to add new WooCommerce products from the frontend.

Frontend

To add product upload form to the frontend, use [wc_user_products_add_new] shortcode:

User Products for WooCommerce - Frontend - Add New Product Form

Backend

Plugin settings are accessible from “WooCommerce > Settings > User Products”.

Fields Options

Title field is always enabled and required.

User Products for WooCommerce - Admin Settings - Fields Options

Description
Default: no
Short Description
Default: no
Image
Default: no
Regular Price
Default: no
Sale Price
Default: no
Product URL
For “External/Affiliate” product type only.
Default: no
Categories
Default: no
Tags
Default: no

General Options

User Products for WooCommerce - Admin Settings - General Options

Price step (number of decimals)
Used for price fields only.
Default: 2
User visibility
If you want for product add form to be visible to selected user roles only, set roles here. Ignored if empty.
Default: None
Product type
Possible values: Simple product; External/Affiliate product.
Default: Simple product
Product status
Possible values: Draft; Pending Review; Private; Published.
Default: Draft
Require unique title
Default: no
Products tab
Adds “Products” tab to user’s “My account” page.
Default: yes

Messages

Placeholder: %product_title%.

User Products for WooCommerce - Admin Settings - Message Options

Product successfully added
Default: %product_title% successfully added!
Product successfully edited
Default: %product_title% successfully edited!

Custom Taxonomies Options

User Products for WooCommerce - Admin Settings - Custom Taxonomies Options

Total custom taxonomies
New settings fields will be displayed if you change this option and save changes.
Default: 1
Custom taxonomy #X: Enabled
Default: no
Custom taxonomy #X: Required
Default: no
Custom taxonomy #X: ID
Default: None
Custom taxonomy #X: Title
Default: None

Custom Fields Options

Custom Fields Options

Total custom fields
New settings fields will be displayed if you change this option and save changes.
Default: 1
Custom field #X: Enabled
Default: no
Custom field #X: Required
Default: no
Custom field #X: Meta key
Default: None
Custom field #X: Title
Default: None

Shortcodes

 

[wc_user_products_list]

Displays user’s products list.

Attributes
user_id
User ID to get products list for.
Default: current user ID
columns
Table columns. Available columns:

  • product_nr – product number in the list.
  • thumbnail – product thumbnail with the link to the product.
  • thumbnail_no_link – product thumbnail without the link.
  • status – product status slug.
  • status_label – product status label.
  • title – product title with the link to the product.
  • title_no_link – product title without the link.
  • actions – actions, e.g. “Edit”, “Delete”, etc.
  • categories – product category list.
  • tags – product tag list.
  • meta=x – product meta field.
  • taxonomy=x – product taxonomy.

Default: thumbnail,status,title,actions
column_titles
Column titles. E.g.: ,Status,Title,Actions.
Default: None
column_styles
Column styles.
Default: None
column_classes
Column classes.
Default: None
column_sep
Applied to columns, column_titles, column_styles and column_classes attributes.
Default: ,
row_styles
Row styles.
Default: None
table_class
Table class.
Default: shop_table shop_table_responsive my_account_orders
table_style
Table style.
Default: None
thumbnail_size
Product thumbnail size. Accepts any registered image size name, or comma separated list of width and height values in pixels (in that order).
Default: post-thumbnail
actions
Actions column content. Available placeholders: %edit%, %delete%, %view%.
Default: %edit% %delete%
template
Shortcode template. Available placeholders: %products_table%, %total_products%.
Default: %products_table%