Inventory = 0
SOLD OUT: when an inventory item is sold out, it is displays on the add_to_cart page as sold out.
Is the a way to replace the product price with "sold out" that is displayed on the products_results?
http://www.relicvintage.com/products_results.php
if so how would the code below change and where would it be inserted. (code below is from add_to_cart.php)
The code looks like this:
<div id="checkingAvail" style="display:none" > Checking availability. </div>
<div id="notSold" <?php echo(($row_WADAProducts["ProductLive"] == 0)?'':'style="display:none"'); ?> > This item is not available online. </div>
<div id="soldOut" class="alertText" <?php echo(($row_NumLeftRS["NumLeft"] == 0 && $row_WADAProducts["ProductLive"] != 0 && $row_WADAProducts["ProductUnlimited"] == 0)?'':'style="display:none"'); ?>> Sold out! </div>
code in webassist/plugins/catalog/results.php
<h3 class="price">
<?php echo($WAGLOBAL_CurrencySymbol); ?><?php
if($row_MaxMinPrice["MinPrice"] > 0) {
echo number_format($row_MaxMinPrice["MinPrice"],2);
} else {
echo number_format($ProductPrice,2);
}
?>
<?php echo(($row_MaxMinPrice["MaxPrice"] != $row_MaxMinPrice["MinPrice"])?" - " . $WAGLOBAL_CurrencySymbol . number_format($row_MaxMinPrice["MaxPrice"],2):""); ?></h3>
</div>
Thanks Roz