'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' START: Show Units in Stock (if on, show the stock level here)
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Public Sub pcs_UnitsStock
if scdisplayStock=-1 AND pNoStock=0 then
' COMPANY XYZ EDITS - START
' if pstock > 0 then <<<< ORIGINAL-CODE
if pstock > 0 AND pstock < 41 then
COMPANY XYZ EDITS - END
response.write ""
' COMPANY XYZ EDITS - START
' response.write dictLanguage.Item(Session("language")&"_viewPrd_19") & " " & pStock <<<< ORIGINAL-CODE
response.write dictLanguage.Item(Session("language")&"_viewPrd_19")
' COMPANY XYZ EDITS - END
response.write "
"
end if
end if
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' END: Show Units in Stock (if on, show the stock level here)
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note:
* the removal of the stock level from the message that is written out to the page
* an IF statement limiting the message to being shown when the stock level is between 1 and 40
* of course you can set whatever levels or message you desire.
Also not the use of the "COMPANY XYZ EDITS " comments. It is important to always, clearly comment any code edits, as mentioned in our **[[:developers:editCode|guidelines for editing ProductCart's source code and prepare for future updates]]**.