In case you need to increase or decrease the product price based on the user input on the product page you can do so using this field.
To set price for a field:
- Navigate to the WooCommerce → Extra Product Options → Product Fields page.
- Open the field property form popup.
- Click on the Add Field button to open the popup form if you are setting the price for a new field.
- Click on the Edit Field button to open the popup form if you are setting the price for an existing field.
- Enter the price info such as Price, Price Type, etc. for the field.
- Also, enable or disable the below checkboxes based on where you want to display the price details.
- Once the changes are completed, save the changes made.
Fixed | A predefined price adds to the total. |
Custom | An amount entered by the shopper (for eg: Donations) will be added to the total price. |
Percentage of Product Price |
A specific percentage of the product price adds to the total price. |
Dynamic | A price per unit will be assigned, where the total price as per the units entered by the shopper will be added to the total price. |
Dynamic -Exclude base price | A price per unit excluding the base price will be assigned, where the total price as per the units entered by the shopper will be added to the total price. |
Character count | A price per unit will be assigned based on the number of characters provided in the price field. |
Custom Formula |
An additional price can be added to the product price based on the custom formula you provide. Example: 5*{quantity}, {quantity}+{product_price} Note: Some of the available placeholders for the Custom Formula price field are: {quantity}, {value}, {length}, {product_price}, {thwepo_fieldname_price}, {thwepo_fieldname_value} If the price of a product is dependent on the price of some other product, then you need to choose either Fixed or Percentage of Product Price as the price type of the product that you are comparing with. It is only applicable for field types like text, hidden, password, number, telephone, textarea, and date & time range picker.
|
Note: If the Apply price as Flat fee checkbox is enabled, the extra price will be only added with the subtotal. Else, it will be added with the product price.
Also, when the checkbox is enabled, the extra price won’t get varied based on the quantity of the same product.
Comments
2 comments
How would these forumlas work on the select field type. for individual line by line pricing.
Hi,
Unfortunately, at the moment the Custom Formula is not available for Select Field. The price types available are Fixed and Percentage.
Thank you and have a great day!
Please sign in to leave a comment.