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.

Change description under quantity field

  1. I am trying to change the description under the quantity field using the code below:

    add_filter("gform_product_quantity_1", "set_quantity_label", 10, 2);
    function set_quantity_label($sublabel, $form_1){
    return "How many:";
    }

    which I found here:
    http://www.gravityhelp.com/documentation/page/Gform_product_quantity

    but it isn't working. I want to remove the text "enter a value greater than 1" and leave it blank under the box.

    It looks like the form id is "_1".

    Of course, now that I've asked this, I'm sure I'll figure it out but...

    Here's a link:
    http://www.focaluprightfurniture.com/store

    Thanks

    Posted 13 years ago on Thursday May 31, 2012 | Permalink
  2. David Peralty

    You've placed this code in your theme's functions.php file?

    Posted 13 years ago on Thursday May 31, 2012 | Permalink
  3. Yes. It's at the bottom of the Theme Functions php. I know because when I forgot the closing } I shut down the site ;-).

    It's there now. It reads as it does above with "gform_product_quantity_1" and "$form_1"

    I don't need to remove it on a per form basis. If it's easier to do it globally, that works. I'm about to create a second form that I want to match the first stylistically so it can be removed from all.

    While I'm at it, I also need to change the text next to the price box that says "price" to "special order pricing". I'm assuming it is a similar situation.

    If it helps, I'm using WP - Genesis theme/eleven40 child theme.

    Also using Yoast SEO plugin which I believe uses minifi. Don't know if that has anything to do with it.

    Thanks.

    Posted 13 years ago on Thursday May 31, 2012 | Permalink
  4. David Peralty

    Minify might create issues, but it shouldn't stop the hook from running. Can you try it without the _1 and see if it works? If not, can you e-mail me your admin user/pass so I can try to help figure it out, that would be appreciated. peralty@rocketgenius.com

    Posted 13 years ago on Thursday May 31, 2012 | Permalink
  5. Yeah. I've tried it with and without. I'm emailing you a log in now.

    Thanks.

    Posted 13 years ago on Thursday May 31, 2012 | Permalink