File Upload - Display file name in customer email.

Miscellaneous Actinic / SellerDeck patches and anything not covered above.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

File Upload - Display file name in customer email.

Post by norman »

Tested on V10 but should apply to all versions of Actinic.

To display the file-name in the customer email do the following.

Edit OrderScript.pl (in your Site folder - back it up first).

Look for the lines:

Code: Select all

		#
		# Add other and date info prompts if defined
		#
Immediately above them add:

Code: Select all

# START Norcat File Upload Info
		my $NorcatFile = $CurrentItem{'NORCATFILE'};			# if uploaded file
		if ( $NorcatFile )		
			{
			if ( $NorcatFile eq '' )				# if no file there
				{
				$NorcatFile = 'No file uploaded';		# tell shopowner	
				} 
			$NorcatFile = "Customer file: $NorcatFile";		# form message line
			MailOrderLine( "",
								$NorcatFile,
								"",
								"",
								"",
								$nDescriptionColumnWidth,
								@TableFormat
								);
			}
# END Norcat File Upload Info
Note that the file-name has a prefix file-<random number>-. This is so that all files uploaded get unique names and said names cannot be guessed by anyone.
Norman
Post Reply