Announcement

Collapse
No announcement yet.

other info promt optional help

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

    other info promt optional help

    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
    Treasure Island Sweets

    #2
    The sub InfoValidate is exactly the same in V9, so I'm not sure why you say it's different. Have another look (around line 9950)
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      hi, ok i couldn't see the wood for the trees.
      Working ok now.
      Thanks
      wesley
      Treasure Island Sweets

      Comment

      Working...
      X