Hi all...
I have a number of products which I do not hold in stock and have to order in specially....however I'd like my customers to be able to order these via my shopping cart and to see a message telling them what the approx delivery will be... i.e. Item in stock - shipped within 24 hours.... Item out of stock - shipped within 7-10 days...
I've tried using the solution found in the AUG but have been unable to get it work - message doesn't appear and the look of shopping cart is screwed up (changed typefaces, layout etc.)... here's the code I use:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function StockLevels(pItem)
<!--
{
var strIDs = 'Stock Message: '
{
if (pItem >= 1)
{
strIDs = 'In Stock - Normally Ships within 24 Hours. '
}
else
{
strIDs = 'Normally Ships within 10 days. '
}
}
return strIDs
}
//-->
I'm an absolute beginner and probably being really dense here, but can anyone give me a step by step guide to getting this to work?
Thanks
Phil
I have a number of products which I do not hold in stock and have to order in specially....however I'd like my customers to be able to order these via my shopping cart and to see a message telling them what the approx delivery will be... i.e. Item in stock - shipped within 24 hours.... Item out of stock - shipped within 7-10 days...
I've tried using the solution found in the AUG but have been unable to get it work - message doesn't appear and the look of shopping cart is screwed up (changed typefaces, layout etc.)... here's the code I use:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
function StockLevels(pItem)
<!--
{
var strIDs = 'Stock Message: '
{
if (pItem >= 1)
{
strIDs = 'In Stock - Normally Ships within 24 Hours. '
}
else
{
strIDs = 'Normally Ships within 10 days. '
}
}
return strIDs
}
//-->
I'm an absolute beginner and probably being really dense here, but can anyone give me a step by step guide to getting this to work?
Thanks
Phil
Comment