[ic] How to display quantity in stock

Calgary Ecommerce Services webmaster at calgary-ecommerce-services.com
Tue Jan 25 23:39:41 EST 2005

You should be able to access $q directly for the value. Somethign like
this should work (untested):

if ($q > 0) {
        $record->{stock} = <<EOF;
<span style="color: #008000; font-size:10px; font-family: san-serif;
font-weight: bold;">We have $q of these in stock</span>

[thanks] It works. Thanks for simplifying this, Gary [/thanks]


Stanley Major
Calgary Ecommerce Services
Phone: 403-255-4701

More information about the interchange-users mailing list