[SOLVED] Price label with conditional logic

Home – SaaS Forums Support questions WooPrice Calculator (Pro) [SOLVED] Price label with conditional logic

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #5454
    Victor Donovic

    Good day,
    I have implemented a calculator in our webstore and it is working very well thank you. I am now trying to modify the price to include a suffix label which changes depending on the value of one of the outputs of the calculation. In the easiest scenario I need to check and see if there is a calculator active for a product ID and then, if there is, read the value of the output weight field. This will be my conditional logic. I have successfully implemented a filter for woocommerce_get_price_html but I am unable to access the $woo_price_calculator object to use the calculatorhelper object to find if there is a calculator for my product. It is obviously not a global variable. How can I access it from my functions.php script?

    I can post my function if it would be helpful.

    Many thanks in advance.


    Dear Victor,

    Please send an email to “https://altoswebsolutions.com/contact-us”, with the subject: “AT637” and as body the same message you wrote here (Just copy & paste)

    Because I think we have a betafix version we’re testing in these days, which I think will solve you’re problem.

    After I’ve received you’re email, I will reply to it with link to download it and instructions.

    Kind Regards,

    Victor Donovic

    Thank you so very much Enrico.

    Your time and efforts to customize and integrate this product into our webstore are greatly appreciated.

    I am extremely appreciative of all you have done.

    Many thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.