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.

Translate Price: to Precio not working

  1. Hi
    I followed the instructions at:
    http://www.gravityhelp.com/documentation/page/Gform_product_price
    and inserted this code:

    <?php
    add_filter("gform_product_price_1", "set_price_label", 10, 2);
    function set_price_label($sublabel, $form_id){
    return "Precio:";
    }
    ?>

    in the twentyeleven theme -> functions.php
    but nothing is happening, the form has an ID of 1
    http://aprendeenirlanda.com/testform

    Posted 11 years ago on Thursday June 21, 2012 | Permalink
  2. Anyone, please?

    Posted 11 years ago on Friday June 22, 2012 | Permalink
  3. It appears that code is correct. However, when I looked at your form page in Firefox and Chrome, there was nothing there except the page header and page title. Can you please make sure the form works and we'll be happy to check it out for you. Thanks

    Posted 11 years ago on Monday June 25, 2012 | Permalink
  4. Hi Chris
    It's up now,
    Thanks Niall

    Posted 11 years ago on Monday June 25, 2012 | Permalink
  5. Sorry, while I have your attention, the page load & drop-down responsiveness are very slow, I have no plug-ins loaded & the twenty ten theme active, any ideas?
    Thanks Niall

    Posted 11 years ago on Monday June 25, 2012 | Permalink
  6. Niall, I am getting a timeout error when trying to load that page. There is something strange going on with your server. Do pages without Gravity Forms load quickly?

    Posted 11 years ago on Tuesday June 26, 2012 | Permalink
  7. Niall, I checked again today and I am getting a 500 Internal Server Error today

    Posted 11 years ago on Wednesday June 27, 2012 | Permalink
  8. Hi Chris
    Thanks for checking. I have been re-working the form tospeed up the page load time so it might have been down for a while
    http://aprendeenirlanda.com/testform

    My probs/questions are now: my initial question of changing Price to Precio not working & also the form responsiveness seems slow, I'm getting a delay of a second or more each time it's changed.
    There's no other plug-ins active & I've just doctored the twenty eleven theme, the PHP memory is now 128m. I had a good look through the help & forums but could find anything appropriate.
    Thanks in advance, Niall

    Posted 11 years ago on Thursday June 28, 2012 | Permalink
  9. Looks to me like the form has an ID of 3, not 1. Can you please confirm and change your code to match the form ID?

    [php]
    id='gform_3'
    Posted 11 years ago on Thursday June 28, 2012 | Permalink
  10. Hi Chris
    Thanks for the reply. I changed the code to:

    <?php
    add_filter("gform_product_price_3", "set_price_label", 10, 2);
    function set_price_label($sublabel, $form_id){
    return "Precio:";
    }
    ?>

    it's in the functions.php file twenty-eleven theme. Still no joy. No other plugin's installed
    Thanks Niall

    Posted 11 years ago on Friday June 29, 2012 | Permalink
  11. Hi
    I'll close this one myself, I did it through the changing the common.php file
    Thanks Niall

    Posted 11 years ago on Friday June 29, 2012 | Permalink
  12. You edited the common.php file in the plugin? That's not recommended, but if that's what you did and it works for you, be sure you carry that change forward when you update the plugin in the future.

    Posted 11 years ago on Friday June 29, 2012 | Permalink
  13. Hey
    My bad, wasn't pasting the code into the functions file properly.
    De-fin-ite-ly solved now :)
    Thank you for the help
    Niall

    Posted 11 years ago on Friday June 29, 2012 | Permalink
  14. David Peralty

    Glad to hear you figured it out the "right" way. :) Enjoy!

    Posted 11 years ago on Friday June 29, 2012 | Permalink

This topic has been resolved and has been closed to new replies.