Developer forum

Forum » Ecommerce - Standard features » Orderline attachment

Orderline attachment

Thomas Larsen
Reply

Hi,

How can i from frontend, in the cart checkout, add an attachment to the orderline (Orderline.Attachment property)?

BR

Thomas


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Thomas,

It's important to know what the Attachment property is, and what its intented use-case is.

This property holds a link to an existing file and that file is then presented on the Order screen in the Administration as a download link. The use case for the property is to link an order with a file that is provided from an external source -- like uploaded by the user or generated by a web service, or even something different from that. The property does not contain binary data, but only a link (relative or absolute) to the resource.

As you can see, the intended usage of the property is in custom code, and therefore, it's not available as a changable parameter in the frontend. You could fill the property using a Razor template or some other custom code like a Template Extender, but it does require code.

- Jeppe

 
Thomas Larsen
Reply

Hi Jeppe,

Thanks fore your reply.

The user must be able to upload a file to each orderline during checkout. This can be done with custom code, but i would like to know if there is som standard functionality to support this?

/Thomas

 

You must be logged in to post in the forum