PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Cart final price, help

  1. Greetings,

    I have a simple one product page. It has an input field with quantity. When it submited, it takes me to another page, let's call it cart.

    The cart page has GF(name, telephone, addresses etc.). It also has a hidden field, populated dynamically. Parameter name: finalprice. I would like to populate this hidden field with a function, which has an input parameter $qty, and output $qty * $price = 1000. Like this:


    function populate_finalprice($qty){
    $price = 1000;
    return ($qty * $price);
    }

    How should I use the add_filter or anything else GF functions, because this one is not working:


    add_filter("gform_field_value_finalprice", "populate_finalprice", 10, 1);

    Thanks for any help.

    Posted 15 years ago on Thursday September 16, 2010 | Permalink
  2. The URL: http://www.piszkosfred.com.datasphere.hu/piszkos-fred-a-kapitany-tarsasjatek/

    "Kosárba" means Add to cart. It's hungarian.

    Thanks for any help.

    Posted 15 years ago on Thursday September 16, 2010 | Permalink