Announcement

Collapse
No announcement yet.

Embedded HTML in customer email confirming order

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Embedded HTML in customer email confirming order

    Hi,

    I have embedded HTML in the many of my short product descriptions, which are downloaded as order lines in Actinic.

    The embedded HTML is showing up in this (which is not a problem), but it is also in the order description line on the confirmatory email the customer receives to show the order is being processed (one customer was very confused by this and thought it was not a genuine product!) - he wanted to cancel until I explained.

    Is there any way round this problem, please??

    Thanks

    #2
    This would probably need some Perl patching in Orderscript.pl. It may already be covered here or in the Knowledge Base. Try searching.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      I found a similar post I'd done earlier. Here it is modified to remove all embedded html tags.
      Code:
      Edit OrderScript.pl (back it up first - use a text editor, not a word processor).
      
      Look for the line
      
      		$objOrderBlob->AddString($$pProduct{"NAME"});					# the product description
      
      Replace with
      
      		my $sNameTemp = $$pProduct{"NAME"};					# the product description
      		$sNameTemp =~ s/!!<|>!!//g;						# strip HTML escapes
      		$sNameTemp =~ s/<.*?>//g;						# replace everything between < and > (minimally)
      		$objOrderBlob->AddString($sNameTemp);					# the tidied product description
      
      
      Look for the 2 lines
      
      			MailOrderLine( $$pProduct{REFERENCE},
      								$$pProduct{NAME},
      
      Replace these 2 lines with
      
      			my $sNameTemp = $$pProduct{"NAME"};					# the product description
      			$sNameTemp =~ s/!!<|>!!//g;						# strip HTML escapes
      			$sNameTemp =~ s/<.*?>//g;						# replace everything between < and > (minimally)
      			MailOrderLine( $$pProduct{REFERENCE},
      								$sNameTemp,			# the tidied name
      This will also tidy up the Description in the Order and Printed Reports.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment

      Working...
      X