• Resolved jaysonvds

    (@jaysonvds)


    I am having trouble getting the calculation results to display. I need to show 2 prices on all my product page – original price & credit price. Credit price is worked out on checkout process using plugin for gateway fees, but im requried to show this on the product page as well.

    I have built the site using Elementor & WooCommerce, and if I try to use the fields in your plugin to calulate the credit price no results show in any of the field types – text, heading or HTML. I am using the formula {={product_price}*1.035} which works in the Price Caulcation box but if i try to use it in any other field the result does not display but if i check the code your code is there?

    Also is there a way to call this field into Elementor layout with a Shortcode or ACF style call instead?

    Code visible when inspecting field that does not display:

    <table class="variations">
    <input type="hidden" name="_wck_product_id" value="5039">
    <input type="hidden" name="_wck_hash" value="2ea59f3d53642831aa2efe09c60c8310">
    <tbody><tr>
    <td class="value">        Dynmanic Price: <span class="wck-dynamic" data-expr="{product_price}*1.035"></span>    </td>
    </tr>
    </tbody></table>
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Krzysztof Pi?tkowski

    (@wckalkulator)

    @jaysonvds Hi, my plugin was not tested with page builders. I could take a look on your website. Do you have your website online? Can you send me screenshots of Fieldset’s configuration ?

    Thread Starter jaysonvds

    (@jaysonvds)

    Hi,
    The site is online but I had to temporarily remove the plugin to finish other changes.
    But I can setup a testing copy if you need one for experimenting.

    I really want to use the value of the Formula field and call that into the page but need a way to do that.
    https://www.sendformdata.com/screenshots/Value%20Field.png
    If I use the calculation at the bottom then it overwrites the price which is not what I want, but I have no other way to see the price on the screen..

    In Elementor we have a few options for calling in data & custom fields.
    Request Parameeter – https://www.sendformdata.com/screenshots/Request%20Parameter.png
    or Custom Field
    https://www.sendformdata.com/screenshots/Custom%20Field.png – then we select the field from dropdown or enter the field value to look for, but this only works if the field is in the database.

    If I try using the HTML field, but then no result shows no matter what and I thought that could be the alternative way I could get it to display as a workaround for what I need, but the field is always blank.

    Plugin Author Krzysztof Pi?tkowski

    (@wckalkulator)

    @jaysonvds please setup test site and send me access on support[at]wckalkulator.com

    I do not fully understand what you need to achieve. The value of the Formula field is calculated server-side and it won’t render any value on product page. The value can be displayed on cart page and is always available in order details in wp-admin.

    If you turn price calculation, the plugin overrides product price and adds “Total:” on product page.

    You need to calculate value of {product_price}*1.035 and use that value in elementor on product page? But you don’t want to override product price and show “Total:” on product page. Am I right?

    Thread Starter jaysonvds

    (@jaysonvds)

    Yes Correct – I want calculate different price points with the formula and display that on the product page, ideally in the place of my choosing which I why I wanted to use Elementor. I don’t want it by the Add to Cart Button.

    As I said I tried using the HTML field to display this amount but it doesn’t calculate the result. the HTML box is always is blank if I try to use the formula example I gave – and I did include the extra = as per your examples online for putting formulas in the HTML field.

    Plugin Author Krzysztof Pi?tkowski

    (@wckalkulator)

    @jaysonvds try this update: https://github.com/piatkowski/wckalkulator/tree/dev

    It should add missing parameters to HTML field formula, so you can use now {product_price} parameter.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Unable to see Results / How to call result into Elementor’ is closed to new replies.