How to Add Comma-separated Input Values to a Drop-down List in Measuring the Product Price?

Adding Comma-separated Input Values to a Drop-down List 

Here’s a step-by-step guide on how to add comma-separated input values to a drop-down list in measuring the product price using the Price Calculator for WooCommerce:

Navigate to WooCommerce > Price Calculator.

Add New Rule:

Once on the Price Calculator page, click on “Add New Rule” to create a new pricing rule.

Title: Provide a unique and descriptive title for the pricing rule to easily identify it in the future.

Select Measurement:

In the “Select Measurement” section:

Unit Text: Enter the text that will display the unit price. Use {unit} as a placeholder for the measurement unit in the displayed text.

Measurement: Choose the desired unit for price calculation from the dropdown. Options include 

  • Weight 
  • Area (L * W)
  • Area (Sq)
  • Surface Area 2 (LW + LH + HW)
  • Volume (L * W * H)
  • Length
  • Box (L * H)

Select Input Field Type: Choose a method to show options for weight to the user:

  • Open Input Field: Allows users to input any value freely.
  • Show Specific Measurement in Dropdown:

If you choose “Show Specific Measurement in Dropdown,” you’ll need to enter intervals for weight separated by a comma “,” in the “Enter Intervals” field.

For example, if you want weight options in the dropdown to be 1, 2, 5, 10, you would enter: 1,2,5,10

Save Draft or Publish:

Once you’ve configured the rule, you can choose to save it as a draft or publish it immediately.

Click on “Save Draft” if you want to save the rule without making it live right away.

Click on “Publish” when you are ready to activate the rule and apply it to the selected products or categories.

By following these steps, you are adding a comma-separated list of input values to a dropdown list, allowing users to select from specific intervals when measuring the product price using the Price Calculator for WooCommerce.