Post by tisha56morris » Thu Mar 20, 2025 1:48 pm

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

TalkToFoodLion survey


Newbie

Posts

Joined
Thu Mar 20, 2025 1:44 pm

Post by paulfeakins » Thu Mar 20, 2025 8:26 pm

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.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by ADD Creative » Thu Mar 20, 2025 10:37 pm

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?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: Baidu [Spider] and 27 guests