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:
<input type="text" name="O_ProductID" size="40" maxlength="1000" value="" />
2. Replace this line with the following code:
<textarea name="O_<Actinic:Variable Name="ProductID"/>" rows="5" cols="40" maxlength="1000" value="" /></textarea>
You now need to edit the code for the other info prompt that appears in the shopping cart. To do this:
3. Go to 'Design | Text'
4. Click 'Go To' and in the ID field enter '2161'.
5. It should highlight a line that says find a line that says:
%s<input type="text" name="%s" size="%d" maxlength="%d" value="%s" %s />
6. Change the prompt to read:
%s<textarea name="%s" rows="5" cols="40" %d maxlength="%d">%s</textarea>
7. Click 'OK' to save your changes.
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...
$sHTML = ACTINIC::GetPhrase(-1, 2161, "", $sIndex, 35, 1000, $sValue, $sStyle);
10. Comment out this line by preceding it with a #.
11. Insert the following immediately after the above line...
$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);
12. Save the file.
13. Now go into your 'Site1' folder and locate a file called 'OrderScript.pl'. Open it in Notepad.
14. Look for:-
if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0)
{
MailOrderLine( "",
$$pProduct{'OTHER_INFO_PROMPT'} . "\r\n" . $CurrentItem{'INFO'},
15. Change to:-
if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0)
{
my $PatchIt = $CurrentItem{'INFO'};
$PatchIt =~ s/%0a/\r\n /ig;
MailOrderLine( "",
$$pProduct{'OTHER_INFO_PROMPT'} . "\r\n" . $PatchIt,
16. Save the file and then upload your SellerDeck store.
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.
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:
<input type="text" name="O_ProductID" size="40" maxlength="1000" value="" />
2. Replace this line with the following code:
<textarea name="O_<Actinic:Variable Name="ProductID"/>" rows="5" cols="40" maxlength="1000" value="" /></textarea>
You now need to edit the code for the other info prompt that appears in the shopping cart. To do this:
3. Go to 'Design | Text'
4. Click 'Go To' and in the ID field enter '2161'.
5. It should highlight a line that says find a line that says:
%s<input type="text" name="%s" size="%d" maxlength="%d" value="%s" %s />
6. Change the prompt to read:
%s<textarea name="%s" rows="5" cols="40" %d maxlength="%d">%s</textarea>
7. Click 'OK' to save your changes.
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...
$sHTML = ACTINIC::GetPhrase(-1, 2161, "", $sIndex, 35, 1000, $sValue, $sStyle);
10. Comment out this line by preceding it with a #.
11. Insert the following immediately after the above line...
$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);
12. Save the file.
13. Now go into your 'Site1' folder and locate a file called 'OrderScript.pl'. Open it in Notepad.
14. Look for:-
if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0)
{
MailOrderLine( "",
$$pProduct{'OTHER_INFO_PROMPT'} . "\r\n" . $CurrentItem{'INFO'},
15. Change to:-
if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0)
{
my $PatchIt = $CurrentItem{'INFO'};
$PatchIt =~ s/%0a/\r\n /ig;
MailOrderLine( "",
$$pProduct{'OTHER_INFO_PROMPT'} . "\r\n" . $PatchIt,
16. Save the file and then upload your SellerDeck store.
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.
Comment