Post by dbots » Sat Jul 11, 2020 2:44 am

Hi all, please your help with the following problem :
I have an opencart e-shop (2.3.0.2).
I want the customer who decides to register, to be prompted to upload a file (from tax).
I added a custom "file" field from opencart administration and it displays fine, but the problem is that when a file is selected it is uploaded instantly when selected and not as part of the whole registration form.
So, when the user who is about to register presses the registration button, the file upload field seems empty (because file has been uploaded independently with a separate process/ajax form) and if the custom file upload field is required, then the form can never be submitted because that field seems always empty.
Do you have some suggestion for this please ?
Thank you in advance.

Newbie

Posts

Joined
Tue Sep 19, 2017 3:10 pm

Post by IP_CAM » Sat Jul 11, 2020 3:41 am

With a little imagination, and some OC Code Experience, you could use one of them,
to make something like this work.
Good Luck! ;)
Ernie

Profil avatar/image upload system for 2.x
https://www.opencart.com/index.php?rout ... n_id=38780

Contact Form - Upload File for 2.x
https://www.opencart.com/index.php?rout ... n_id=30591

OC v.3.x! Contact Form - Upload File (Journal 3 Support)
https://www.opencart.com/index.php?rout ... n_id=37142

Please don't send me OC Forum Personal Messages, just contact: jti@jacob.ch
---
OC 1.5.6.5 LIGHT Test Site: http://www.bigmax.ch/shop/
OC 1.5.6.5 V-PRO Test Site: http://www.jacob.ch/shop/
My Github OC Site: https://github.com/IP-CAM
2'450+ FREE OC Extensions from the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by dbots » Sat Jul 11, 2020 3:57 am

Thanks, I will try these. But is this behavior normal of opencart file upload field normal ?
Wouldn't it be right to submit the file field together with the rest of the form fields ?

Newbie

Posts

Joined
Tue Sep 19, 2017 3:10 pm

Post by johnp » Sat Jul 11, 2020 4:01 am


Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD 2.6.1 lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by IP_CAM » Sat Jul 11, 2020 5:01 am

Wouldn't it be right to submit the file field together with the rest of the form fields ?
Well, a file upload has basically nothing to do with a registration. And the uploaded file needs to be
placed into a specific section, and to be found and 'handled' by Admin. And all this requires different
routines and Code, to make such work as planned. :D
Ernie

Please don't send me OC Forum Personal Messages, just contact: jti@jacob.ch
---
OC 1.5.6.5 LIGHT Test Site: http://www.bigmax.ch/shop/
OC 1.5.6.5 V-PRO Test Site: http://www.jacob.ch/shop/
My Github OC Site: https://github.com/IP-CAM
2'450+ FREE OC Extensions from the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by paulfeakins » Mon Jul 13, 2020 6:18 pm

dbots wrote:
Sat Jul 11, 2020 2:44 am
Do you have some suggestion for this please ?
Find an extension or pay a developer such as ourselves or post a job in the Commercial Support Forum.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom
Who is online

Users browsing this forum: No registered users and 50 guests