• Resolved neal86

    (@neal86)


    Dear support, I created a wholesale site and want to use the calculator to show the estimated profit on the product page. I’m using tiered price on my site(https://prnt.sc/QlEUA99PHuoI), so I use table price on the calculator so that the formula will be “regular price-table price)*quantity”, may I know if i can add WC data like the product regular price, table price and quantity to the field? if yes, how?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @neal86

    I hope you’re well today!

    Currently you can’t use such data “directly” in the calculations.

    The general solution would need to be to somehow “import” that data first to additional form fields and then use those fields in calculation but I’m not quite sure what exact data should be imported. The “regular prices” sounds obvious but I’m not sure how that “price-table price” should be imported in this case as it clearly depends on the quantity.

    If I understand correctly – user would select quantity in Forminator form and then correct price from “pricing table” would be used, right?

    All of that would require additional custom code but this specific part may be a bit tricky as it may require more complex code. So the questions are then:

    – the form should be directly on the product page, right?
    – it has to calculate estimation for that single product only – not multiple products at ones?
    – it’s expected it would take selected quantity from WooCommerce quantity set on that page or could/should be separate (form) field to choose amount?
    – the “tiered pricing” that you are using – is it added using this plugin by any chance?:

    https://www.ads-software.com/plugins/tier-pricing-table/

    I’d rather not make promises at this point but let us know about above, please, and we’ll see if this could be achieved with some custom code.

    Kind regards,
    Adam

    Thread Starter neal86

    (@neal86)

    Hi, Adam, thank you for your reply,

    – the form should be directly on the product page, right?

    Yes, actually, I only need shows the result of the formula(which will be the estimate profit)on the product page.


    – it has to calculate estimation for that single product only – not multiple products at ones?

    Yes,it only shows on single product page.


    – it’s expected it would take selected quantity from WooCommerce quantity set on that page or could/should be separate (form) field to choose amount?

    Yes, it will take the selected quantity from woocommerce quantity set.


    – the “tiered pricing” that you are using – is it added using this plugin by any chance?:

    Yes, the tiered price is added by plugin”Advanced Dynamic Pricing for WooCommerce

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @neal86

    Thank you for the update.

    Unfortunately, this isn’t possible out of the box, as Adam explained we don’t have an easy built-in mode to get the external data to be used in the plugin ( dynamically ).

    This would require some customization which is out of our support scope as to make I happen we need to hook into the fields + keep listening to the Woo quantity changes.

    Best Regards
    Patrick Freitas

    Thread Starter neal86

    (@neal86)

    OK, thank you for let me know

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to use WC value( regular price, quantity) in to the field?’ is closed to new replies.