Page 1 of 1

Need Help with Custom Field Integration on Checkout Page - OpenCart v3.0.3.8

Posted: Thu Mar 20, 2025 1:48 pm
by tisha56morris
Hello OpenCart Community,

I hope you’re all doing well! I’m currently working on enhancing the user experience on my OpenCart store by adding a custom field to the checkout page. Here's a bit more detail about the situation:

Project Overview: I’d like to add a "Delivery Instructions" text box on the checkout page for customers to leave specific comments or requests for their orders. This feature will help provide a more personalized shopping experience.

Current Setup:

OpenCart Version: 3.0.3.8

Theme: [Name of your theme, e.g., Default/Journal/etc.]

Extensions Installed: [List any relevant extensions impacting the checkout page, e.g., "Quick Checkout" or "One Page Checkout."]

Challenges Faced: I've tried the following steps but haven’t been able to achieve the desired outcome:

Modified the checkout.twig and checkout.php files to include an additional input field. However, the data isn’t saving to the database.

Checked the OpenCart documentation and a few tutorials, but I’m unsure how to update the database schema to accommodate this new field.

Explored extensions, but they seem to offer more features than I need or don’t quite fit this specific requirement.

Specific Assistance Needed: Could anyone guide me on how to:

Properly save the new field data to the database?

Display the saved data in the admin order details view?

Ensure compatibility with my theme?

I’d greatly appreciate any advice, code snippets, or recommended resources that could help me resolve these issues. Thank you so much in advance for taking the time to assist!

Best regards, Tisha

Re: Need Help with Custom Field Integration on Checkout Page - OpenCart v3.0.3.8

Posted: Thu Mar 20, 2025 8:26 pm
by paulfeakins
Really what you're asking for is someone to do this task for you and tell you exactly how to do it, so if no one does that you might be better off posting a paid job in the Commercial Support forum.

Re: Need Help with Custom Field Integration on Checkout Page - OpenCart v3.0.3.8

Posted: Thu Mar 20, 2025 10:37 pm
by ADD Creative
Have you considered using the builtin Custom Fields option to add a field to the address? Or just changing the current "Add Comments About Your Order" label and textarea?