I have a fairly basic question I think. I've written a module that uses hook_form_alter
to alter the fields in a product form.
But now I'd like to change the fields in the form for a different product and I was thinking of using my custom module to do so.
However, when I use the Devel module to try and find the specific $form_id
for each of my created product forms I see they ALL have the SAME name: commerce_checkout_form_checkout
. Soooo, I'm not sure how to target a specific form.
Moreover, I've used dpm()
to check the variables in the forms and they all have the exact same values for everything. Even across product types. The only value that is different is #build_id
but this changes for every form load so it can't be targeted.
Anyone know how to do this?