I have an ajax form like above. How to get IDs?
Because I want it change to this:
name="{$select2_name}[$id]"
So I want to put IDs as array key.
I have an ajax form like above. How to get IDs?
Because I want it change to this:
name="{$select2_name}[$id]"
So I want to put IDs as array key.
Is this in a loop of category id's? Would need more info on the context of this code. Generally the current category id is {$category_id} but this is sometime short-handed to something different like {$catid} or similar....
Look at the template code that generates this id
product_categories_add_6523
You'll see something like
product_categories_add_{$id}
Whatever it is is what you will probably want for your id.