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.

Query string (total)

  1. Barbosa
    Member

    Hello,
    I'm working with the following query string:
    action=add&receiverEmail=myemail@email.com.br&currency=BRL&itemId=0011&itemDescription={Product Name (Name):1.1}&itemQuantity=1&itemAmount={Total:4}&itemWeight=8000

    but the generated URL is:
    http://website.com/?action=add&receiverEmail=myemail@email.com.br&currency=BRL&itemId=0011&itemDescription=Product%20Name&itemQuantity=1&itemAmount&itemWeight=8000

    Returns an empty value to the total. I need to return the value in the following structure: '25.00', my final URL would be something like:
    http://website.com/?action=add&receiverEmail=myemail@email.com.br&currency=BRL&itemId=0011&itemDescription=Product%20Name&itemQuantity=1&itemAmount=25.00&itemWeight=8000

    How can I do this?

    Gravity Forms version: 1.6.7
    WP version: 3.3.1

    Thanks!

    Posted 12 years ago on Saturday September 15, 2012 | Permalink
  2. Sounds like there is something misconfigured with your redirect URL query string. Did you edit the form after creating your query string? Maybe one of the form field IDs changed?

    I configured my confirmation like this:

    [php]
    bat={Baseball Bat:1}&length{Length:2}&email={Email:8}&total={Total:4}&thankyou=thankyou

    And this is the URL I was redirected to:

    http://gravity.chrishajer.com/?bat=Nike+Aero+MC2+BBCOR&length32%26quot%3B&email=chrishajer%40gmail.com&total=%24354.99&thankyou=thankyou#gf_158

    You can see the price of $354.99 in the query string.

    Posted 12 years ago on Saturday September 15, 2012 | Permalink
  3. Barbosa
    Member

    Hello Chris,
    I created the form before updating the plugin (sorry) =/

    Now I created another form. The field of total returns:

    itemAmount=R%24+50%2C00

    itemAmount={Total:3}

    (configuration on the form)

    Required product value with the dot ('.'). But the decimal currency of my country is by comma.

    I need the following:

    itemAmount=50.00

    (without currency symbol)
    Is there any way to do this?

    Thanks!

    Posted 12 years ago on Saturday September 15, 2012 | Permalink
  4. Can you edit the incoming value on the other end, where you are receiving this query string? If not, we will have to come up with a way to strip out that currency symbol.

    And you said the decimal currency for your country is a comma, but in the "I need the following" you show it with a decimal? Do you need a decimal or a comma there?

    Posted 12 years ago on Saturday September 15, 2012 | Permalink
  5. Barbosa
    Member

    The problem is that the total value depends on other items (options).

    And you said the decimal currency for your country is a comma, but in the "I need the following" you show it with a decimal? Do you need a decimal or a comma there?

    Need a decimal (eg: 25.00).

    I need to inform the URL only "25.00" to the payment gateway. The currency of my country is informed in another parameter (currency=BRL).

    This product is represented in the store for: R$ 25,00
    (brazilian real)

    Thanks and sorry for my bad english.

    Posted 12 years ago on Saturday September 15, 2012 | Permalink
  6. OK, I think we are getting somewhere. Your string itemAmount=R$+50,00 is translated to R%24+50%2C00 in the query string. Is that correct? And you need to only send 50.00 in the query string? The R$ is for the real? Is that correct?

    Posted 12 years ago on Saturday September 15, 2012 | Permalink
  7. Barbosa
    Member

    Yes Chris (for all questions)! That's right!

    Thanks!

    Posted 12 years ago on Saturday September 15, 2012 | Permalink
  8. OK. Let me see if there is a way to do what you need to do.

    Posted 12 years ago on Saturday September 15, 2012 | Permalink
  9. Barbosa
    Member

    Hi Chris, any news?
    Thanks!

    Posted 12 years ago on Friday September 21, 2012 | Permalink