π️ Day 4 at ENATS
π 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:
-
Download OpenCart 4.0.3 ZIP and extract it.
-
Copy the
uploadfolder intohtdocs, renaming itopencart. -
Create a new database via
localhost/phpMyAdmin. -
Navigate to
localhost/opencartin the browser:-
Follow the installer prompts.
-
Address permission issues by creating/moving folders, deleting unnecessary files, and renaming config files as instructed.
-
-
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_codeinput 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_codefield 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!
Comments
Post a Comment