• Resolved VForce

    (@visionforce)


    Hello I have a site where customers enter the weight of the brass they wish to sell to the site owner. We used woocommerce and have a seperate site on a subdomain where customers can buy used brass. We would like to combine the two into one site and have the functionality of the main site baked into forminator.

    Currently we use many plugins for the customer to simply enter the weight and bypass checking out as they ship the brass and the site owner weighs it and mails a check. So we just need to figure out how to calculate weight and send a notification of the quote to the sellers email.

    How can we calculate based on weight using only your plugin and not woocommerce so woocommerce can function solely for transactions?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Laura – WPMU DEV Support

    (@wpmudev-support8)

    Hi @visionforce

    I hope you’re well today!

    I took a look at the current form on your page and it seems to be a simple calculation – weight times price – and it would be doable with Formiantor. You just need a number and a calculation type fields on the form.

    The number field needs to have min limit set to 0.01 and format to use two decimals. Then the calculation would be like this

    {number-1}*1.50

    where 1.50 is current price (it needs to be defined either in calculation or another number field.

    I’ve created simple example form for you so you can import it to your site, test, and review how fields are configured. You can find it here (import code to Forminator):

    https://pastebin.com/scxEfFgL

    Note: I noticed that with small amounts there are some small discrepancies between how your current form and Forminator form calculates price to be paid. This is due to how the rounding is done. Apparently your form would round e.g. 0.045 value down so it becomes 0.4 while Forminator would round it up to 0.05 (0-4 fractions rounded down, 5-9 rounded up). Those aren’t, however, differences that would “cumulate” over huge amounts as they only apply to decimal places.

    Kind regards,
    Adam

    Thread Starter VForce

    (@visionforce)

    Awesome thank you, just now seeing this but am looking it over to try it out!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Forminator Weight based pricing’ is closed to new replies.