PDA

View Full Version : <BR> Tags in downloaded Orders


smiffy
10-Jun-2003, 03:39 PM
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.

cdicken
12-Jun-2003, 08:02 AM
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.

smiffy
12-Jun-2003, 08:23 AM
Chris,

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

Regards, Gary

cdicken
13-Jun-2003, 03:53 PM
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.