[ic] How to display quantity in stock

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


<blockquote>
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>
EOF
    }


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

</blockquote>


Stanley Major
Calgary Ecommerce Services
http://www.calgary-ecommerce-services.com
Phone: 403-255-4701


More information about the interchange-users mailing list