Hi!
First of all i hope you will understand me, english is not my native language.
I'm using this code to change the Quantity label:
<?php add_filter("gform_product_quantity", "set_quantity_label", 10, 2);
function set_quantity_label($sublabel, $form_id){
return "Pour Combien de Personnes?";
}
?>
What I need to do is changing the Quantity label depending which product ID it is. I've a list of product ID which is quite big (50 entries at first), so the greatest thing for me will be to do a "If" in the function to see if the label has to be changed or not. But I don't know Php for now.... Do you guys have a simple solution?
Thanks!