The Custom Math element is great to add custom math to affect the total cost in scenarios that aren't related to what the user (customer) wants. An example could be shipping cost, no matter what the customer wants, they will need to base shipping costs. Currently, it's triggered automatically on each calculator load.
Another feature and element called Variable Math are for users that want to use variables to control a math output, for example, Length X Width X Height, loan or mortgage calculators.
The additional fee charged by this element is applied to the sub-section total instead of the calculator total, so you have more control.
- Base Price - Create a base price for your product or service. Base Price: The most fundamental cost of a good or service to a consumer that does not include common extra fees. In addition to the base price of a product, fees that raise the overall price to buyers are often assessed by sellers for such things as sales tax, shipping charges and extra equipment or supply options.
- Convert to Monthly pricing - If your pricing is set up to show the yearly pricing, but you want to convert it to a monthly cost in the front-end, then you can add "Divide by 12" to give the monthly price. We recommend using the Multiple Totals feature for achieving a 'monthly pricing' result.
- Shipping Cost - If you charge a base fee for shipping, you can use this feature to show that.
- Trigger Fee(s) - Add conditional logic to your custom math element to trigger a charge.
- Trigger Discount(s) - Add conditional logic to your custom math element to trigger a charge.
There are 5 operators you can use with Custom Math.
Addition (+) = This will add whatever value you give it, in a dollar amount.
Minus (-) = This will remove whatever value (a dollar amount) that you choose.
Divide (/) = This will divide the sub-section total by the number given.
Percentage (%) - This will take the sub-section total and apply an additional percentage amount to it.
Multiply (X) - This will multiple the sub-section total by a given amount that you choose.
What it cannot do?
The custom math feature can be set up to automatically add, subtract, multiply or divide a given value (not percentage). It does not have a toggle switch for the frontend, meaning the user cannot click anything to trigger custom math.
Custom math cannot do variable math, commonly found in other complex cost calculator plugins. Keep in mind, the Stylish Cost Calculator plugin was designed for ease of use and not complex situations.
How to use it?
You can choose how the custom math is displayed
- Hidden (affects price in the background) - https://stylishcostcalculator.com/ss/68c2njv3.png
- Show only frontend - https://stylishcostcalculator.com/ss/fd25z1am.png
- Show only invoice & PDF -
- Show in backend & frontend
In this example, we're using conditional logic with custom math to trigger an artwork setup fee if the user selects logo design.