Announcement

Collapse
No announcement yet.

BUG: Characters stripped from long words in confirmation email

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

    BUG: Characters stripped from long words in confirmation email

    Scenario:

    Someone uses the Other Info field to capture very long words (like someones email address). The info arrives safely in the Order but the customers confirmation email omits some characters.

    E.g. customer enters:

    Code:
    extremelylongemail@incrediblylongdomain.nowhere.special.atall.com
    And the confirmation email contains:

    extremelylongemail@incredibly-
    ongdomain.nowhere.special.ata-
    l.com

    Now the customer can probably work out that hyphens have been added but will panic when they see the missing characters and think that they made a typo. Especially if this information is critical in any way.

    I'd have expected to see:

    extremelylongemail@incredibly-
    longdomain.nowhere.special.ata-
    ll.com

    The bug seems to be in routine WrapText within ActinicOrder.pm - I had a look there but the GOTO scared me and I ran away shivering.

    WrapText was written in 2000 so it's possible that this bug has lurked for 9 years!
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    #2
    Originally posted by NormanRouxel View Post
    The bug seems to be in routine WrapText within ActinicOrder.pm - I had a look there but the GOTO scared me and I ran away shivering
    jees..what hope IS there?
    Tracey

    Comment


      #3
      Hi Norman

      I can confirm this is happening, will pass it onto to development. I'll touch base when I hear back from them again.
      Kiran Chandran
      Technical Support - SellerDeck
      http://www.sellerdeck.co.uk/

      Further help can also be found at http://community.sellerdeck.com/forumdisplay.php?f=27

      Comment


        #4
        Hi

        I'm afraid it's been classified as a bug, unfortunately I dont have a timescale for a fix.
        Kiran Chandran
        Technical Support - SellerDeck
        http://www.sellerdeck.co.uk/

        Further help can also be found at http://community.sellerdeck.com/forumdisplay.php?f=27

        Comment


          #5
          A quick fix (if it's really affecting anyone) would be to edit OrderScript.pl and look for the lines:
          Code:
          		#
          		# Add other and date info prompts if defined
          		#
          		if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0)
          			{
          			MailOrderLine( "",
          								$$pProduct{'OTHER_INFO_PROMPT'} . "\r\n  " . $CurrentItem{'INFO'},
          								"",
          								"",
          								"",
          								$nDescriptionColumnWidth,
          								@TableFormat
          								);
          			}
          And in that code replace $nDescriptionColumnWidth with 70 so the code is as follows:
          Code:
          		#
          		# Add other and date info prompts if defined
          		#
          		if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0)
          			{
          			MailOrderLine( "",
          								$$pProduct{'OTHER_INFO_PROMPT'} . "\r\n  " . $CurrentItem{'INFO'},
          								"",
          								"",
          								"",
          								70,
          								@TableFormat
          								);
          			}
          This will mean that the Other Info in the customer email won't be broken unless there are 70 unspaced characters. Long enough for most I hope.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment

          Working...
          X