What Happened on Day 4 of ENATS

NatureNature
2 min read

👋 Hello everyone, welcome back!

🗓️ Day 4 at ENATS

Date: Thursday, June 19, 2025


📌 Morning Arrival & Task Overview

I arrived at 9:30 AM and began working on OpenCart—an open-source e-commerce platform. It’s equipped with built-in modules, making setup and configuration quite straightforward for online storefronts.


⚙️ OpenCart 4.0.3 Setup

My first mission was to fully install and configure OpenCart 4.0.3. I reviewed the official documentation and got hands-on guidance from colleagues. Here’s the step-by-step process:

  1. Download OpenCart 4.0.3 ZIP and extract it.

  2. Copy the upload folder into htdocs, renaming it opencart.

  3. Create a new database via localhost/phpMyAdmin.

  4. Navigate to localhost/opencart in the browser:

    • Follow the installer prompts.

    • Address permission issues by creating/moving folders, deleting unnecessary files, and renaming config files as instructed.

  5. Once completed, the admin dashboard and storefront went live without errors.


🏷️ Adding manufacturer_code Field

My next task: add a new custom field—manufacturer_code—to the Manufacturers admin list.

Steps undertaken:

  • Modified the database schema to include the new column in the manufacturers table.

  • Updated the manufacturer form:

    • Added manufacturer_code input in the add/edit form template.

    • Ensured it's displayed and saved correctly.

  • Refreshed the admin list to show the new column.

  • Performed thorough testing to verify insertion, editing, display, and saving of the new field.

I wrapped everything up by day’s end—database, forms, controller, and admin listing are all fully integrated and functional.


📝 Summary of Achievements

  • ✅ OpenCart 4.0.3 successfully installed and configured.

  • ✅ Created and assigned a database, resolved file permissions.

  • ✅ Added manufacturer_code field across database, admin form, controller, and list display.

  • ✅ Completed testing—form, save, display, and update all working smoothly.


💬 Reflection & Next Steps

Today’s focus on platform setup and schema extension taught me a lot about:

  • Handling file and config adjustments during E Commerce setups.

  • Extending OpenCart’s core components to add custom data fields.

  • Ensuring end-to-end functionality from database to admin UI.

Tomorrow, I plan to build out front-end integration for the new field, making it visible in product listings and storefront filters.


🔍 Want to Know More?

Curious about how I adjusted the database schema, modified the Twig admin template, or updated the controller logic?
Comment below and I’d be happy to share the code snippets and techniques I used!

0
Subscribe to my newsletter

Read articles from Nature directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Nature
Nature