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
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
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?
Who is online
Users browsing this forum: Semrush [Bot] and 15 guests