By default, customers only have a single line to provide an answer for the 'Other Information' question online. It is possible to edit the product layout and the 'Design | Text' area to provide a 'text area' box instead of a single line
First of all, you just need to edit the 'Other Info' prompt that appears as part of your product layout on the store pages (if you are using a shopping mode of 'Quantity on Product Page') or on the Add to Cart Confirmation page (if your are using a shopping mode of 'Quantity on Confirmation Page').
To do this:
1. Select your product layout in the 'Design' tab and locate the following line:
Code:
<input class="input-border" type="text" name="O_<actinic:variable name="ProductID" />" maxlength="1000" value="" />
Code:
<textarea class="input-border" name="O_<Actinic:Variable Name="ProductID"/>" rows="5" cols="40" maxlength="1000" value="" /></textarea>
3. Go to 'Design | Text'
4. Click 'Go To' and in the ID field enter '2161'.
5. It should display a entry with "Current Value:" set to:
Code:
%s<input type="text" name="%s" size="%d" maxlength="%d" value="%s" %s />
Code:
%s<textarea name="%s" rows="5" cols="40" %d maxlength="%d">%s</textarea>
8. Now go into your 'Site1' folder and locate a file called 'ActinicOrder.pm'. Open it in Notepad.
9. Search for '2161', you should see...
Code:
$sHTML = ACTINIC::GetPhrase(-1, 2161, "", $sIndex, 35, 1000, $sValue, $sStyle);
11. Insert the following immediately after the above line...
Code:
$sHTML = ACTINIC::GetPhrase(-1, 2161); $sHTML =~ s/%d/%s/; $sValue =~ s/%0a//ig; # we seem to need to remove some Line Feeds here $sHTML = sprintf( $sHTML, "", $sIndex, $sStyle, 1000, $sValue);
Code:
$sHTML = $sValue;
Code:
$sValue =~ s/%0a/<br>/ig; # we seem to need to translate some Line Feeds here
13. Now go into your 'Site1' folder and locate a file called 'OrderScript.pl'. Open it in Notepad.
14. Look for:-
Code:
if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0) { MailOrderLine( "", $$pProduct{'OTHER_INFO_PROMPT'} . "\r\n" . $CurrentItem{'INFO'},
Code:
if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0) { my $PatchIt = $CurrentItem{'INFO'}; $PatchIt =~ s/%0a/ /ig; MailOrderLine( "", $$pProduct{'OTHER_INFO_PROMPT'} . "\r\n" . $PatchIt,
SellerDeck is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation. Copy this into your site folder.
Leave a comment: