hi, i am trying to make the other info promt box optional, i have looked in the knowledge base but the info given is not for v9, the scripts look differnt.
Any idea as to how to make it optional, i use the other info promt box on some products but dont need the customer to fill iot in if they do not want to!
code as found in nowledge base
The 'Other Info' prompt can be made optional by editing one of the perl scripts.
- Locate the file ActinicOrder.pm in the site folder.
- Edit the file with a text editor such as Notepad.
- Search for "sub InfoValidate", you should see…
if (length $sInfo == 0)
{
$sMessage .= ACTINIC::GetPhrase(-1, 55, "<B>$sPrompt</B>") . "<P>\n";
}
elsif (length $sInfo > 1000)
- Comment out the first 4 lines (using #) and change the last line so that the code reads as
#if (length $sInfo == 0)
# {
# $sMessage .= ACTINIC::GetPhrase(-1, 55, "<B>$sPrompt</B>") . "<P>\n";
# }
if (length $sInfo > 1000)
- Save and exit.
- Update the site.
Actinic 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.
Thanks
Wesley
Other Information" prompt optional
Any idea as to how to make it optional, i use the other info promt box on some products but dont need the customer to fill iot in if they do not want to!
code as found in nowledge base
The 'Other Info' prompt can be made optional by editing one of the perl scripts.
- Locate the file ActinicOrder.pm in the site folder.
- Edit the file with a text editor such as Notepad.
- Search for "sub InfoValidate", you should see…
if (length $sInfo == 0)
{
$sMessage .= ACTINIC::GetPhrase(-1, 55, "<B>$sPrompt</B>") . "<P>\n";
}
elsif (length $sInfo > 1000)
- Comment out the first 4 lines (using #) and change the last line so that the code reads as
#if (length $sInfo == 0)
# {
# $sMessage .= ACTINIC::GetPhrase(-1, 55, "<B>$sPrompt</B>") . "<P>\n";
# }
if (length $sInfo > 1000)
- Save and exit.
- Update the site.
Actinic 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.
Thanks
Wesley
Other Information" prompt optional
Comment