Hi
I am trying to add a 3rd option to allow pre-ordering on items
I have a simple in/out of stock but I can't get a 3rd option to work
Whenever I add an extra line, it affects the whole range
No doubt it is very simple, but I can't work it out
This is the code I am using
unction StockLevels(pItem)
<!--
{
var strIDs = 'Stock Message: '
{
if (pItem >= 1)
{
strIDs = '<img src="in.gif"> '
}
else
{
strIDs = '<img src="out.gif"> '
}
}
return strIDs
}
//-->
Thanks very much
Mick
I am trying to add a 3rd option to allow pre-ordering on items
I have a simple in/out of stock but I can't get a 3rd option to work
Whenever I add an extra line, it affects the whole range
No doubt it is very simple, but I can't work it out
This is the code I am using
unction StockLevels(pItem)
<!--
{
var strIDs = 'Stock Message: '
{
if (pItem >= 1)
{
strIDs = '<img src="in.gif"> '
}
else
{
strIDs = '<img src="out.gif"> '
}
}
return strIDs
}
//-->
Thanks very much
Mick
Comment