Hi Forum.
I am hoping that there is a clever person out there can tell me how to modify the regular stock level script so that a customvar can be included which would give more range to the out of stock message... an indication of how long it will take for fresh stock to arrive from various suppliers. i.e. 1-3 days, 4-7 days etc.
An example of what I want to do can be found on the overclockers website http://www.overclockers.co.uk. They use images as the stock indicator and unless they manage this manually, I presume that the various lead times are defined as a CUSTOMVAR.
The script I have at the minute (from the AUG) reads:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function StockLevels(pItem)
<!--
{
var strIDs = 'Stock Message: '
{
if (pItem >= 10)
{
strIDs = 'Normally Ships in 24 Hours'
}
else
{
strIDs = 'Normally ships in 1-2 weeks'
}
}
return strIDs
}
//-->
</script>
How, if possible, could I include the CUSTOMVAR in this?
Thanks in advance!
I am hoping that there is a clever person out there can tell me how to modify the regular stock level script so that a customvar can be included which would give more range to the out of stock message... an indication of how long it will take for fresh stock to arrive from various suppliers. i.e. 1-3 days, 4-7 days etc.
An example of what I want to do can be found on the overclockers website http://www.overclockers.co.uk. They use images as the stock indicator and unless they manage this manually, I presume that the various lead times are defined as a CUSTOMVAR.
The script I have at the minute (from the AUG) reads:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function StockLevels(pItem)
<!--
{
var strIDs = 'Stock Message: '
{
if (pItem >= 10)
{
strIDs = 'Normally Ships in 24 Hours'
}
else
{
strIDs = 'Normally ships in 1-2 weeks'
}
}
return strIDs
}
//-->
</script>
How, if possible, could I include the CUSTOMVAR in this?
Thanks in advance!
Comment