![]() |
Re: Need help creating 2 different out of stock messages
It took a little more thought than needed, but here was my solution to get the message to display in the category products list.
I replaced the code in the customer/main/buy_now.tpl: {if $config.General.unlimited_products ne "Y" && ($product.avail le 0 or $product.avail lt $product.min_amount)} <b>{$lng.txt_out_of_stock}</b> with: {if $config.General.unlimited_products ne "Y" && $product.avail eq 9999} <b>Out of Stock by mail - pickup at nursery only</b> {elseif $config.General.unlimited_products ne "Y" && ($product.avail le 0 or $product.avail lt $product.min_amount)} <b>{$lng.txt_out_of_stock}</b> And to get the same message to display in the customer/mail/product.tpl file I replaced this code: {if $config.General.unlimited_products eq "N" and (($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq '' or $variants ne '' and $product.avail le 0)} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 0; var product_avail = 0; --> </script> <b>{$lng.txt_out_of_stock}</b> with: {if $config.General.unlimited_products ne "Y" && $product.avail eq 9999} <b>Out of Stock by mail - pickup at nursery only</b> {elseif $config.General.unlimited_products eq "N" and (($product.avail le 0 or $product.avail lt $product.min_amount) and $variants eq '' or $variants ne '' and $product.avail le 0)} <script type="text/javascript" language="JavaScript 1.2"> <!-- var min_avail = 1; var avail = 0; var product_avail = 0; --> </script> <b>{$lng.txt_out_of_stock}</b> Thank you all for your help! Chris |
All times are GMT -8. The time now is 06:17 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.