Zen Cart Logo
Forums / Code Collaboration / NOTIFY_ADMIN_CATEGORIES_EXTRA_INPUT - Populating field when action is insert_category

NOTIFY_ADMIN_CATEGORIES_EXTRA_INPUT - Populating field when action is insert_category

Views: 1,916

Results 1 to 1 of 1
18 Jun 2021, 3:57 PM
#1
rocketsites avatar

rocketsites

New Zenner

Join Date:
Jun 2013
Location:
United Kingdom
Posts:
41
Plugin Contributions:
4

NOTIFY_ADMIN_CATEGORIES_EXTRA_INPUT - Populating field when action is insert_category

Hi,

Having used NOTIFY_ADMIN_CATEGORIES_EXTRA_INPUTS to add an additional input to the category administration page, it is then possible to use NOTIFY_BEGIN_ADMIN_CATEGORIES to update an existing category with the value from the new field (action = update_category).

However, I don't see an obvious way to populate the field when adding a new category (action = insert_category), as NOTIFY_BEGIN_ADMIN_CATEGORIES occurs before insertion of the category, so the categories_id of the new category is not known.

Am I missing something silly!?