Image 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

Image Upload - Display file-name in customer email

Post by norman »

Tested on V14 but should apply to all versions of SellerDeck.

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 Image Info
		my $NorcatInfo = $CurrentItem{'NORCATINFO'};			# if additional info
		if ( $NorcatInfo )		
			{
			if ( $NorcatInfo =~ /imagedefault/ )			# if only default image there
				{
				$NorcatInfo = 'No image uploaded';		# tell shopowner	
				} 
			$NorcatInfo =~ s/.*\///g;				# lose stuff up to last /
			$NorcatInfo =~ s/icon-/img-/g;				# switch icon-<id>.jpg for full sized img-<id>.jpg
			MailOrderLine( "",
				"Customer image: $NorcatInfo",
				"",
				"",
				"",
				$nDescriptionColumnWidth,
				@TableFormat
				);
			}
# END Norcat Image Info
Note that the file-name has a prefix img-<random number>-. This is so that all files uploaded get unique names and said names cannot be guessed by anyone.
Norman
Post Reply