Announcement

Collapse
No announcement yet.

CartOnlineXML

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

    CartOnlineXML

    I am having problems with order confirmation emails which are no longer being sent by the SellerDeck site since Heart Internet made changes to their email system.

    Having experimented with different ports and server settings, I seem to have narrowed the problem down to a SellerDeck variable called CartOnlineXML. This is in the Inner Layout of the customer email directly after customer address details.

    As far as I can tell, CartOnlineXML creates a table within the email which contains all the order details. The problem is that the code that is generated is all on one line and this is throwing up an error message as follows:

    Internal Errors = Error returned from SMTP server (7: maximum allowed line length is 998 octets, got 2341 ) Program = ORDERSCR, Program version = 41694

    This is a fairly common problem and simply means that a line of html must be split into separate lines of 998 characters or less.

    It should be easy to rectify, but there seems no way to edit CartOnlineXML.

    So my two questions are:

    1. Am I missing something and CartOnlineXML can be edited somehow or
    2. Can CartOnlineXML be replaced by the other variables/layouts it no doubt contains so that the code is generated on fewer lines, and is there a way of finding what variables/layouts it does contain.

    I hope I have expressed this clearly and thank you in advance for any help or ideas you might have.

    Rob

    #2
    You can patch Perl script ACTINIC.pm (in your Site folder) to put a newline before any <br> tags in the HTML version of the email.

    Look (around line 1307) for:
    Code:
        $sMessageHTML =~ s/\n/\r\n/g;                    # all LF -> CRLF
    Immediately after it add a line:
    Code:
        $sMessageHTML =~ s/<br/\r\n<br/g; # all <br -> CRLF<br
    You will need to re-do this patch is you upgrade SellerDeck as upgrades invariably replace all Perl scripts.

    N.B. Untested. Report back if it works or not. And try it with "<brown>" in a product name.

    P.S. https://www.emailonacid.com/blog/art...in-html-email/ has a good description of the problem you are having.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thank you Norman - that looks very clever. I'm not sure what you mean by the <brown> bit?

      Comment


        #4
        The code tweak changes all <br into CRLF<br and there's a slight chance it will do this to the name of a product in the unlikely event it contains <br. I've a feeling it won't (these special characters may be replaced by HTML entities) but it's better to check.

        To test for this, create a temporary product (or rename an existing one) to be e.g. The quick <brown> fox.

        Add it to Cart, check out using your own email address, and see if the confirmation email is OK or not.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          All clear - many thanks for your help.

          Comment

          Working...
          X