We are using the javascript laid out in the "Advance User Guide" to include stock levels within the site.
For items that are in stock it displays the message "Delivery 1-3 days"
For other non-stocked items it displays "Usually despatched in 5-7 days." This is fine as the majority of these items are delivered next day by our suppliers, so we will beat this estimate.
However, there are a few non-stocked lines that take a lot longer and 5-7 days is a bit misleading.
Is there a way of separating these non-stocked items within the javascript even though they both share the same value of zero? Ideally it would be best to have a third message "Usually despatched within 10-14 days".
Many thanks in advance.
John
<!--
{
var strIDs = 'Stock Message: '
{
if (pItem >= 1)
{
strIDs = 'Delivery 1-3 days'
}
else
{
strIDs = 'Usually despatched within 5-7 days'
}
}
return strIDs
}
//-->
For items that are in stock it displays the message "Delivery 1-3 days"
For other non-stocked items it displays "Usually despatched in 5-7 days." This is fine as the majority of these items are delivered next day by our suppliers, so we will beat this estimate.
However, there are a few non-stocked lines that take a lot longer and 5-7 days is a bit misleading.
Is there a way of separating these non-stocked items within the javascript even though they both share the same value of zero? Ideally it would be best to have a third message "Usually despatched within 10-14 days".
Many thanks in advance.
John
<!--
{
var strIDs = 'Stock Message: '
{
if (pItem >= 1)
{
strIDs = 'Delivery 1-3 days'
}
else
{
strIDs = 'Usually despatched within 5-7 days'
}
}
return strIDs
}
//-->
Comment