To save key and value in admin setting using Opencart 3, follow the steps below:
- Login to admin panel
- Go to Extensions -> Extensions
- Select "Modules" from the dropdown and click "Install" button for "Settings" module
- After installation, click "Edit" button for "Settings" module
- Click "Add Group" button and give a name for your setting group
- Click "Add Setting" button and fill in the details for your setting:
- Key: this is the name of your setting variable
- Value: this is the value of your setting variable
- Group: select the group you created earlier
- Type: select the type of input field you want to use for your setting (e.g. text, textarea, select, checkbox)
- Sort Order: set the order in which your setting should appear on the page
- Repeat step 6 for each setting you want to add to your group
- Click "Save" button to save your settings.
Your key and value pair are now saved in your Opencart 3 admin settings. You can access and edit these settings at any time by going to System -> Settings -> Your group name.