The General Settings tab allows you to configure essential options that affect the overall functionality of role-based pricing and quantity limits within the B2B plugin.

1. Exclude User Role From Role List

(Dropdown Selection – Multiple Selection Allowed)
This setting allows you to exclude specific user roles from appearing in the role-based pricing list. If selected, the excluded roles will not have access to the role-based pricing system.

  • Usage Example: If you want to restrict role-based pricing from “Subscribers” or “Customers,” you can select those roles from the dropdown.
  • Effect: Selected user roles will not see the role-based pricing options on the product page.

2. Show Role-Based Pricing on Product Page

(Checkbox – Enable/Disable)
When enabled, a role-based pricing table will be displayed on the product page, showing different prices based on the user’s assigned role.

  • Usage Example: If you want wholesale buyers to see their discounted prices directly on the product page, enable this setting.
  • Effect: Displays a structured table with role-based pricing information under the product details.

3. Set Role-Based Pricing Table Title

(Text Field – Customizable Title)
Allows you to set a custom title for the role-based pricing table on the product page.

  • Usage Example: You can set the title as “Wholesale Pricing Table” or “Discounted Rates for B2B Buyers.”
  • Effect: The entered title will be displayed above the role-based pricing table on product pages.

4. Set Title for Min-Max Quantity Table

(Text Field – Customizable Title)
This option allows you to define a custom title for the minimum and maximum quantity requirement table that appears on product pages.

  • Usage Example: You can set the title as “Minimum & Maximum Order Quantity” to clearly communicate order limits to customers.
  • Effect: The entered title will be displayed above the min-max quantity restrictions table.

Error Messages Settings

The Error Messages tab provides options to customize validation messages related to minimum and maximum quantity restrictions, ensuring users receive clear guidance when adding products to their cart.

1. Minimum Quantity Error Messages

(Text Field – Customizable Message)
Allows you to define a custom error message when users try to add a quantity below the required minimum limit.

  • Usage Example: “You must add at least {min_qty} units to your cart.”
  • Effect: Displays this message when a user attempts to add a quantity lower than the allowed minimum.

2. Maximum Quantity Error Messages

(Text Field – Customizable Message)
Allows you to define an error message for when a user exceeds the maximum quantity allowed per order.

  • Usage Example: “You can only purchase up to {max_qty} units for this product.”
  • Effect: Displays this message when users try to exceed the maximum quantity limit.

3. Cart Page Minimum Quantity Error Messages

(Text Field – Customizable Message)
Allows you to set a custom error message that appears if a user attempts to proceed with checkout while having items below the minimum quantity requirement in their cart.

  • Usage Example: “One or more products in your cart require a minimum of {min_qty} units to proceed.”
  • Effect: Prevents checkout until the user meets the minimum quantity requirement.

4. Cart Page Maximum Quantity Error Messages

(Text Field – Customizable Message)
Allows you to set an error message for when users exceed the maximum allowed quantity for items in their cart.

  • Usage Example: “Your cart contains products exceeding the maximum allowed quantity of {max_qty} units.”
  • Effect: Alerts the user to adjust their cart before proceeding with checkout.