Custom Math

Everything to know about this feature

How it works

The Custom Math feature 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.

Note: This feature works at the sub-section level. Which gives you greater control.

Table of Contents

What does it look like?

Backend:

Frontend:

What are some Use Cases?

1. 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.

2. Convert to Monthly pricing

If your pricing is set up to show the yearly pricing, but you want to convert it a monthly cost in the front-end, then you can add “Divide by 12” to give the monthly price.

3. Shipping Cost

If you charge a base fee for shipping, you can use this feature to show that.

What it can do?

The custom math feature can is 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.

 

What it cannot do?

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.

Types

There are 5 operators you can use with Custom Math.

This will add whatever value you give it, in a dollar amount.

This will remove whatever value (a dollar amount) that you choose.

This will divide the sub-section total by the number given.

This will take the sub-section total and apply an additional percentage amount to it.

This will multiple the sub-section total by a given amount that you choose.

How to use it?

You can choose how the custom math is displayed

Hidden

 (affects price in the background)

This is the default. For custom math to behave this way, you should make sure that no checkboxes are selected in the settings (the blue gear icon). Nothing will show up in the frontend or detailed list view.

Show in frontend

Frontend view:

Show in backend

Frontend view:

Video: Custom Math + Conitional Logic