Avoiding coding will not allow you to display Out of Stock since none of the built in templates do that.
You would need to modify the template for either the Product more information page or the section used for the product on regular store pages if you want to display the out of stock message.
Here is some code that I found in a forum post about just what you are wanting to do, that shows how to do it.
http://support.shopsite.com/forums/viewtopic.php?f=1&t=8961&p=23551&hilit=+Out+of+Stock+template#p23553
- Code: Select all
[-- if PRODUCT.QuantityOnHand "0" --]
<img src="[-- OUTPUT_DIRECTORY_URL --]/media/design/outofstock.jpg">
[-- else --]
<input type="submit" value="[-- ADDTEXT --]">
[-- end_if --]
You would need to find the section of code that is outputting the Add to Cart button (or text in the above example) and put the If statements in like the example has. The code would probably be different depending on the template you are using. Here is the code from the INCLUDE file Product-AddToCartButton
- Code: Select all
[-- IF VAR.AddButtonGraphic --]
<input type="image" class="add" src="[-- OUTPUT_DIRECTORY_URL --]/[-- VAR.Media --]/[-- VAR.AddButtonGraphic --]" name="Add to Cart" alt="Add to Cart">
[-- ELSE_IF ADDIMAGE? --]
<input type="image" [--ADDIMAGE--]>
[-- ELSE --]
<input class="add" type="submit" value="[-- ADDTEXT --]">
[-- END_IF --]
In this code it determines if the Add to Cart is a button or a link, it then displays the appropriate image or text. To change this code you would simply enclose that text in the ELSE part of the [-- IF PRODUCT.QuantityOnHand "0" --] conditional statement .
- Code: Select all
# I added the next 3 lines to the above code
[-- IF PRODUCT.QuantityOnHand "0" --]
<img src="[-- OUTPUT_DIRECTORY_URL --]/media/design/outofstock.jpg">
[-- ELSE --]
# start original code
[-- IF VAR.AddButtonGraphic --]
<input type="image" class="add" src="[-- OUTPUT_DIRECTORY_URL --]/[-- VAR.Media --]/[-- VAR.AddButtonGraphic --]" name="Add to Cart" alt="Add to Cart">
[-- ELSE_IF ADDIMAGE? --]
<input type="image" [--ADDIMAGE--]>
[-- ELSE --]
<input class="add" type="submit" value="[-- ADDTEXT --]">
[-- END_IF --]
# end original code.
# I added the next line to the code
[-- END_IF --]
It really isn't that difficult to make the modiification, you just need to find where the add to cart button/link are out put and change each of those places. It can be in the Define Product section, Define MoreInformationPage section and in the Define Subproduct section or in all of them. So be sure your change each location.