• Resolved Freshspace

    (@freshspace)


    ?

    Hi there,

    We’ve got a woocommerce site and when editing a product our client has asked for the following:

    The following number fields:

    Height: Width: Depth:

    So when they add values to the fields it then converts them into another field as follows

    Height: 118 (this is in CM) -> converts in second field to 46.5 (this is in inches)
    Width: 450 (this is in CM) -> converts in second field to 177.165 (this is in inches)
    Depth: 200 (this is in CM) -> converts in second field to 78.74 (this is in inches)

    The screenshot below is from their current custom website, which hopefully explains the above better.

    Is this possible to do?

    Thanks,
    Darren

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @freshspace

    In the form, if you have two number fields for width and height in cm, I’ll call them fieldname1 and fieldname2, respectively, and you want to get the equivalent values in inches, you should insert two calculated fields with the equations:

    fieldname1/2.54

    and

    fieldname2/2.54

    Best regards.

    Thread Starter Freshspace

    (@freshspace)

    Hey there, thanks for getting back to me.

    So the plugin would work for this? If so would I need the pro version?

    Thanks,
    Darren

    Plugin Author codepeople

    (@codepeople)

    Hello @freshspace

    The mathematical operations and calculated fields are included with every distribution of the plugin including the free one. However, if you want to integrate the form with the WooCommerce products to calculate their prices at the runtime, you will need the “CFF – WooCommerce” add-on included with the Developer and Platinum versions of the plugin.

    More information about the add-on by reading the following post in the plugin’s blog:

    https://cff.dwbooster.com/blog/2018/11/26/woocommerce

    Best regards.

    Thread Starter Freshspace

    (@freshspace)

    OK, if I need help setting this up. Are you able to help at all?

    Plugin Author codepeople

    (@codepeople)

    Hello @freshspace

    Yes, of course. If you need help with the commercial versions of the plugin, you can contact me through my private website: https://cff.dwbooster.com/contact-us

    Best regards.

    Thread Starter Freshspace

    (@freshspace)

    Hi that’s great.

    I’ve installed the plugin to get a better understanding but I’m not sure how it works ?…

    Plugin Author codepeople

    (@codepeople)

    Hello @freshspace

    After installing the plugin, go to the menu option: “Calculated Fields Form”. The plugin is distributed with five predefined forms. You can use them to implement your project or create a new form. Every form has associated the “Settings” button to access the builder, with controls bar at the left and the cardboard at the right to insert the forms controls (https://cff.dwbooster.com/documentation#form-builder).

    Once the form is completed you can insert it on the page of your website using its shortcode (Ex. [CP_CALCULATED_FIELDS id="1"]), or by pressing the plugin’s button or block, depending on the pages builder you use on your WordPress (https://cff.dwbooster.com/documentation#insertion-page).

    Best regards.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Calculate 3 input fields’ is closed to new replies.