Page 1 of 1

File Upload - Display filename in customer email.

Posted: Sat Aug 14, 2010 11:16 pm
by norman
If you'd like to display the name of the uploaded file in the customer email do the following:

Edit OrderScript.pl (in your Site folder - back it up first). Look for the pair of lines:

Code: Select all

		#
		# Add other and date info prompts if defined
Insert the following immediately above them:

Code: Select all

# START Norcat File Upload Info
		my $NorcatFile = $CurrentItem{'NORCATFILE'};			# if uploaded file
		if ( $NorcatFile )		
			{
			$NorcatFile =~ s/file-\d+-//;
			MailOrderLine( "",
								"Customer file: " . $NorcatFile,
								"",
								"",
								"",
								$nDescriptionColumnWidth,
								@TableFormat
								);
			}
# END Norcat File Upload Info