Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To save key and value in admin setting using Opencart 3, follow the steps below:

  1. Login to admin panel
  2. Go to Extensions -> Extensions
  3. Select "Modules" from the dropdown and click "Install" button for "Settings" module
  4. After installation, click "Edit" button for "Settings" module
  5. Click "Add Group" button and give a name for your setting group
  6. Click "Add Setting" button and fill in the details for your setting:
  7. Key: this is the name of your setting variable
  8. Value: this is the value of your setting variable
  9. Group: select the group you created earlier
  10. Type: select the type of input field you want to use for your setting (e.g. text, textarea, select, checkbox)
  11. Sort Order: set the order in which your setting should appear on the page
  12. Repeat step 6 for each setting you want to add to your group
  13. 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.