WooCommerce Prices By User Role Plugin provides opportunity to establish different prices for each customer group. Also you can do only product catalog without prices and show custom notification instead price.
There are several requirements for use of Negotiate Prices.
You can install Prices by User Role via the WordPress plugin uploader without unzipping the file:
Log into your WordPress admin panel
Navigate to Plugins -> Add New
Click Upload
Click Choose File and select the woocommerce-prices-by-user-role.zip you downloaded from CodeCanyon
Click Install
Navigate to your Admin Panel -> Plugins
Under WooCommerce Prices By User Role, click Activate
You can also install WooCommerce Prices by User Role via FTP:
Decompress the woocommerce-prices-by-user-role.zip file you downloaded from CodeCanyon
Find the woocommerce-prices-by-user-role folder (this directory is created when you unzip the file)
Upload the woocommerce-prices-by-user-role folder to your wp-content/plugins directory
Activate the plugin through the Plugins menu in WordPress admin panel
General Settings
Navigate to Prices By User Role Section in under WooCommerce, tab “Settings”
Hide Add to Cart Button - hides Add to Cart Button for unregistered users
Tick Option “Show Prices only for Registered Users” if you need to hide prices.
Text for Non-Registered Users – here you can type in text which will be displayed for unregistered users. If you need use links or custom style, type html text
Hide Prices for User Roles - tick the user roles for which you want to hide price
Text for Registered Users with Hidden Price - here you can type in text which will be displayed for user roles with hidden price. If you need to use links or custom style, type in html text
Discount or Markup for all Products - choose discount or markup for all products. This value will be subtracted (discount) or added (markup) to the Regular Price for all products
Pricing Roles - here you can see user groups that will be displayed for each product. To activate new group for individual pricing just check box with user group name.
Display the Regular Price on Product Page - here you can enable displaying discount info for registered users with special price on product page and on cart page. User will see something similar to the following
(Img 1):
Img.1
Watch this video to understand how to add your role prices for WooCommerce product type "Simple":
After you are done with the settings, open your product (Edit Product or Add New), you will see the new price field (Img 2) for all active user roles. Type in your price and save the product:
Img 2
Watch this video to understand how to add your role prices for WooCommerce product type "Variable":
Add new role or check existed one (Img 3)
Go to Product > Edit > Variations tab
Add new role price for each variation (Img 4)
Save product
Img 3
Img 4
You can disable Prices by User Role discount for individual products. Please open Product > Edit >Check box for "Disable Discount" to ignore Price By User Role discount and Update Product
Watch this video to understand how to hide prices for certain roles for separate products:
With Import Products feature you can import Simple, Virtual, Downloadable, External and Variable products from CSV. You can import CSV files with free structure, without header or with dummy columns names, and custom separators. Plugin will automatically determine appropriate WooCommerce product fields to map CSV columns or you will be able to do this manually.
Prices by User Role import CSV hasn’t strict requirements to import file fields. When creating new products, you definitely will include the fields to maximally describe them: name, description, category, feature image, price, SKU, stock, product type, visibility, etc. You will get product created having minimum details in the file, though you should always care about informative product catalog and enrich it with all necessary specifications.
When your Prices by User Role import is dedicated to product renewing, you do not need to import all the related details, only product identifier and fields to be updated, for example SKU (identifier), price and description.
The file uploads the next data:
Images via a URL (Requires allow_url_fopen or cURL on your server)
Featured Image
Attributes, categories and tags with hierarchical (Add new one if they don’t exist)
Import Custom Fields
Map any CSV column to any Product field
If you include a header row, the plugin will attempt to map column values to product fields automatically.
Validationfor multiple-choice fields (fields with a limited set of valid values like yes/no, instock/outofstock, etc.)
Dollar signs, commas, etc. are stripped out of number fields like prices, weight, length, width, height
If SKU already exists, existing product is updated rather than inserting new product.
If SKU already exists and importing images, will skip duplicate image imports.
Locale settings are supported to better handle importing files with special characters and other alphabets.
Also please view samples of CSV file:
To import products into WordPress navigate to Prices By User Role section under WooCommerce, tab “Import Products” and folow the steps:
If uploading data stored locally, you should paste path to it (browse local folder and choose import file). Also you can enter the URL where it’s uploaded
Check “First Row is Header” option if the first row in your file contains columns names
Note: If you include a Header row into the file, the plugin will attempt to map columns to product fields automatically. If you don’t you will need to map all columns manually.
Data in .csv file are detached by delimiters and on this step you should indicate what exactly CSV field separators are used in your case.
Enter characters used in your file to separate categories in a hierarchical structure
Choose the character to use for the decimal separator used in your file.
While importing the decimails will be cut off if you do not choose correct decimal separator
Another precondition of efficient WooCommerce import is field associations determining. To be more precise, file columns must be assigned to proper WooCommerce database fields.
Beside each database table name you will find “source field” dropdown. Having expanded it you will get entire list of import file columns. Select the one to assign it to current database field.
Preview data to be uploaded and confirm procedure pressing “Confirm & Run Import” button below.
Prices by User role import from .csv being completed, you will get import logs, showing what changes have been implemented for each updated product.
Update products notes:
Existing simple product is detected by SKU. If you don’t include the SKU in the file, the new product will be added even if product with such name already exists.
Existing variable product is detected by Parent SKU. If you don’t include the Parent SKU in the file new simple products will be added instead of updating variable product.
The new attribute won’t be created if you import products with the attribute that already exists. New variations will be added to the existing attribute if they are present in the file.
The image won’t be duplicated if the SKU and the image already exist and the option Skip Duplicate Images is checked.
Update prices for all roles
Get all prices for product
Get user price for product
How to change "Savings" text?
To change the text you can by yourself using localization. Please read instructions how to translate contents here http://wplang.org/translate-theme-plugin/ .
Or just use http://poedit.net/ to do this. In this case your steps should be the following:
1) download and install Poedit editor http://poedit.net/
2) run Poedit editor and open the language file with .po extension from /woocommerce-prices-by-user-role/languages
3) click on the string you wish to edit and type the text you'd like to appear instead http://www.screencast.com/t/pmxpPhgQRlfB
4) save new files according to your WP localization https://wpcentral.io/internationalization/
5) go to ftp to the folder yoursite.com/wp-content/plugins/woocommerce-prices-by-user-role/languages and insert here new .po and .mo files
How to add new user?
Import Question: What will happen if I load simple product which already exists?
Simple product will be updated if SKU already exists (if the simple product already exists and SKU is mentioned in the file product data will be updated instead of creating a new product)
Import Question: What will happen if I load variable product which already exists?
Variable product will be updated if Parent SKU already exists (if the variable product already exists and Parent SKU is mentioned in the file product data will be updated instead of creating a new product)
Import Question: What will happen if I load images which already exist?
Duplication of images will be skipped if SKU and the image already exist
Import Question: Which data could be loaded by Import option?
List of Importable Attributes:
post_title (Name)
post_content (Description)
post_excerpt (Short Description)
post_status (Post Status — Publish, Draft, Trash, etc.)
menu_order (Menu Order)
comment_status (Comment/Review Status — Open, Closed)
ping_status (Trackback/Pingback Status — Open, Closed)
_regular_price (Regular Price)
_sale_price (Sale Price)
_prices_by_roles
_tax_status (Tax Status)
_tax_class (Tax Class)
_visibility (Visibility)
_featured (Featured)
_weight (Weight)
_length (Length)
_width (Width)
_height (Height)
_sku (SKU)
_downloadable (Downloadable)
_virtual (Virtual)
_attributes
_variations
_stock (Stock)
_stock_status (Stock Status)
_backorders (Backorders)
_manage_stock (Manage Stock)
product_cat (Categories, by Name or ID)
product_tag (Tags, by Name or ID)
product_shipping_class (Shipping Class, by Name or ID)
Custom Fields
Product Images (By URL or Local File Path)
_button_text (Button Text, for External Products)
_product_url (Product URL, for External Products)
_file_paths (File Paths, for Downloadable Product)
_download_expiry (Download Expiration, in Days)
_download_limit (Download Limit, an integer)