Now there are 3 amended template files, these are:
skin1/customer/main/product.tpl - Just ADD between the {* funkydunk notify mod *} and {* end of funkydunk notify mod *} The rest of the code is to show you where i have placed it the skin1/customer/main/product.tpl
Code:
<TR><TD height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1}
<FONT class="ProductDetailsTitle">{$lng.txt_need_min_amount} {$product.min_amount} {$lng.lbl_items}</FONT>{/if}</TD>
<TD>
{if $config.General.unlimited_products eq "N" and ($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq ''}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
var min_avail = 1;
var avail = 0;
var product_avail = 0;
</SCRIPT>
{$lng.txt_out_of_stock}
{* funkydunk notify mod *}
{if $active_modules.stock_notify ne "0"}
{ include file="modules/stock_notify/notifyme.tpl" product=$product}
{/if}
{* end of funkydunk notify mod *}
{else}
{if $config.General.unlimited_products eq "Y"}
{math equation="x+1" assign="mq" x=$config.Appearance.max_select_quantity}
{else}
{math equation="x/y" x=$config.Appearance.max_select_quantity y=$product.min_amount assign="tmp"}
{if $tmp<2}
{assign var="minamount" value=$product.min_amount}
{else}
skin1/customer/home_main.tpl - Again just add the code between {* funkydunk notify mod *} and {* end of funkydunk mod *} in the skin1/customer/home_main.tpl
Code:
{* funkydunk notify mod *}
{elseif $main eq "notify"}
{include file="modules/stock_notify/stocknotify.tpl"}
{* end of funkydunk mod *}
{include file="customer/main/welcome.tpl" f_products=$f_products newproducts=$newproducts}
{else}
{include file="common_templates.tpl"}
{/if}
skin1/main/product_details.tpl - Again just add the code between {* start funkydunk notify mod and the {* end of funkydunk notify mod
Code:
<TD class="FormButton" nowrap>{$lng.lbl_quantity_in_stock}</TD>
<TD class="ProductDetails">
<INPUT type="text" name="avail" size="18" value="{if $product.productid eq ""}1000{else}{ $product.avail }{/if}">
{if $product.is_variant eq 'Y'} readonly{/if}
{if $top_message.fillerror ne "" and $product.avail eq ""}<FONT class="Star"><<</FONT>{/if}
{if $product.is_variant eq 'Y'}
{$lng.lbl_note}: {$lng.txt_pvariant_avail_note}{/if}
</TD>
</TR>
{* start funkydunk notify mod inserted into shopcart/skin1/main/product_details.tpl NOT shopcart/skin1/main/product_modify.tpl as per instructions for X-Cart 3.4 *}
{if $active_modules.stock_notify ne "" and $product.avail eq 0 and $product.productid ne ""}
<input type="hidden" name="oldavail" value="0">
<input type="hidden" name="notify" value="true">
{/if}
{* end of funkydunk notify mod inserted into shopcart/skin1/main/product_details.tpl NOT shopcart/skin1/main/product_modify.tpl as per instructions for X-Cart 3.4 *}
<TR>
{if $productids ne ''}<TD width="15" class="TableSubHead"><INPUT type="checkbox" value="Y" name="fields[low_avail_limit]"></TD>{/if}
<TD class="FormButton" nowrap>{$lng.lbl_lowlimit_in_stock}</TD>
<TD class="ProductDetails">
<INPUT type="text" name="low_avail_limit" size="18" value="{if $product.productid eq ""}10{else}{ $product.low_avail_limit }{/if}">
{if $top_message.fillerror ne "" and $product.low_avail_limit le 0}<FONT class="Star"><<</FONT>{/if}
</TD>
</TR>