Developer forum

Forum » Ecommerce - Standard features » Attach files to order

Attach files to order

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a project where I need to allow the customer to upload some files in connection with an Order.

The number of files can vary and I want to avoid defining 10 File fields on the order.
What would be the best approach for handling this?

I was thinking about using the FileManager module and create a Folder for each Order where the files will reside.

Is there a better way to handle it?

Thank you,

Adrian

 


Replies

 
Nicolai Pedersen
Reply

Hi Adrian

I have no good ideas. You could create the 10 fields and then in the frontend make the ui so it will add 1 at a time visually....

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you. We will explore some possibilities to handle the files outside of the Order object and connect them through an identifier.

Thank you,

Adrian

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Adrian,

 

Please post your solution. We also have some "ugly" solutions working with order fields. At some point it's a mesh of fields that we need to mentally exclude (when we have orders and ledgers) or sort (because we can't group them to make sense), and sounds like you having some placeholder fields is yet another scenario of making the order hard to read in the backend. Maybe at some point someone will have a bright idea with a simple solution for this ;)

 

Nuno

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nuno,

I will. It will probably be based on some DataList structure where we would save a unique identifier of the order. Cannot use OrderID as this one can change to Cart, Quote or Order.

In our case, the files will only be used in the front-end. And we will use the DataLists functionality because we need to also capture some content for each image.

But I guess with some development, you can make the files available in the back-end as well, in a Ribbon.

Thank you,
Adrian

 

You must be logged in to post in the forum