PDA

View Full Version : product refs and availability indicators


mccanm
06-Jun-2003, 09:10 AM
Hi

Can anybody help with the following couple of questions

1. I am displaying the product references in a product template and I currently have a prefix of "ref:" Is there a way of disabling this prefix so that I just have the actual number reference for the product without anything in front?

2. I am using NETQUOTEVAR:STOCKLEVEL to display the stock on hand for each product. However ideally I would like to replace this with some sort of availability indicator e.g . a traffic light system so if the stock level is below x then a red image is displayed, but if it is above x a green image is displayed. Can this be done in actinic V6 Business?

Cheers

Mark

NormanRouxel
06-Jun-2003, 09:35 AM
1) Is easy. In Actinic Design / Text / Go to enter Pahes -1 ID 65 and remove the "Ref: " bit.

2) May need some JavaScript. If you had something like


<script language=JavaScript>
if ( 'NETQUOTEVAR:STOCKLEVEL' < 3 )
{
document.write('<img src="red.gif">');
}
else
{
document.write('<img src="green.gif">');
}
</script>


May do the trick. I've not tested this (I just typed it straight in) so there may be bugs galore but the idea is sound.

Norman




Norman

mccanm
06-Jun-2003, 10:35 AM
Many thanks Norman

That worked a treat

:)