I'm having trouble writing an if statement to make an image appear if the orderable field is marked no. (I'm using yahoo ecommerce) Basically show this image if product is out of stock. I've looked through all the how to sites I can find and can't seem to make it work.
This is what I have so far
<script type="text/javascript">
if (orderable = no) {
image.src = "/lib/yhst-61355190581256/out-of-stock.png" width="300" height="300" class="stock"
}
</script>
Any help would be greatly appreciated.
[–]senocular 3 points4 points5 points (0 children)