Announcement

Collapse
No announcement yet.

<BR> Tags in downloaded Orders

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

    <BR> Tags in downloaded Orders

    I am using the extra info box and have made this a text area as in the AUG.

    However on the downloaed order each line break is replaced with a <BR>.

    Is there an easy way to remove this? I never happened under V4 or V5.

    #2
    Fix for <BR> in text box (provided by developers)

    To use text box make the following changes...

    For Quantity on Confirmation Page and in Shopping Cart...

    -Edit ActinicOrder.pm
    -Locate 'sub InfoHTMLGenerate'
    -About 25 lines down you will see..

    $sHTML = "<INPUT TYPE=TEXT SIZE=\"35\" NAME=\"O_$nIndex\"
    VALUE=\"$sValue\" $sStyle>";

    (all one line)

    -Replace the line with...

    $sValue =~ s/%0a/\n/g;
    $sHTML = "<TEXTAREA NAME=\"O_$nIndex\" COLS=60 ROWS=10
    $sStyle>$sValue</TEXTAREA>";

    (2 lines both end with

    For Quantity on Product Page...

    -Design | Text | GoTo Phase=-1 ID=2161
    -Change...
    %s<INPUT TYPE=text NAME="%s" SIZE="%d" MAXLENGTH="%d">

    -to...
    %s<TEXTAREA NAME="%s" COLS=%d ROWS=10 MAXLENGTH="%d"></TEXTAREA>

    Warning, when setting the box size in the script bear in mind that the
    text box is also used when editing the cart.

    Comment


      #3
      Chris,

      Just to confirm, this above patch will prevenmt the <BR> tags being printed with the data entry reports from within Catalog?

      Regards, Gary

      Comment


        #4
        According to the developement team, this will prevent all new orders from having <BR>s appearing in the Data Entry reports.

        The existing orders, of course, will not be affected.

        Comment

        Working...
        X