close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Inventory = 0

Thread began 4/23/2013 4:36 pm by Roz431315 | Last modified 4/24/2013 9:53 am by Roz431315 | 667 views | 1 replies

Roz431315

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

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...