• Resolved montyenglish

    (@montyenglish)


    Hi, I need to calculate price based on quantity of words for a proofreading service. The calculator is not multiplying correctly the price, might be a very silly mistake. The price was initially having decimals 0.012/word but I then changed it to see if that was causing the issue in the calculation.

    Could you give me a help?

    this is the formula:
    price {quantity} * {product_price}

    Many thanks,
    Ludovica

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Krzysztof Piątkowski

    (@wckalkulator)

    @montyenglish Hi, please write your whole formula or better send me screen shots of your configuration.

    The result of formula is the product price. You don’t have to multiply it by {quantity}

    Thread Starter montyenglish

    (@montyenglish)

    Thank you Krxystzof, this is the actual whole formula”
    price {quantity} * {product_price}
    How it should be instead?

    Product price is fixed while the quantity is variable.
    Many thanks

    Plugin Author Krzysztof Piątkowski

    (@wckalkulator)

    @montyenglish I see now. You named your field “quantity”, but {quantity} is reserved for default product quantity field (next to “add to basket” button). Use some other name, for example “word_qty” and your formula will be {word_qty}*{product_price}

    Thread Starter montyenglish

    (@montyenglish)

    I updated the field and the formula but now the price keeps being £0 rather then updating depending on the quantity insert. Is there anything else that I am missing?

    Plugin Author Krzysztof Piątkowski

    (@wckalkulator)

    @montyenglish it works. Just enter some number in input field and the price is updating.

    Thread Starter montyenglish

    (@montyenglish)

    The total price updates itself just if I click on it, is supposed to be this way? But it remains £0 regardless of the input.
    https://montyenglish.co.uk/product/proofreading-and-editing

    Thread Starter montyenglish

    (@montyenglish)

    Could you please have a look once you get a chance? Many thanks

    Plugin Author Krzysztof Piątkowski

    (@wckalkulator)

    @montyenglish Hi, I don’t understand what is the problem now. You have one input field on product page, which is default 0. If I type “1” the price is £3,00 and it is updating.

    Thread Starter montyenglish

    (@montyenglish)

    So if I update the input and I type 1 or 3 etc the price stays 0, it updates correctly just if the input is 1 and I press the cursor up (also I didn’t notice there was a cursors before), but the input remains 1… The layout doesn’t seem to be user-friendly and also for the client is not working as should be. Any suggestion how to amend it? Otherwise we will switch to a general “ask for a quote” form.
    Thanks for your support.

    Plugin Author Krzysztof Piątkowski

    (@wckalkulator)

    Now I understand. POST request is sent when you leave field. I can change that behaviour to update price after some delay when user stays in the field.

    You need to change styling by yourself. It is developed based on Storefront theme

    Thread Starter montyenglish

    (@montyenglish)

    Yes please that would be great!

    Thank you

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

The topic ‘Incorrect calculation’ is closed to new replies.