riggerz29 Posted July 2, 2013 Share Posted July 2, 2013 For some reason i cant add a product to my basket when stock reaches 3 or less, now i purchased the template im using so im curious as to wether it could be a glitch within the template as it displays a warning as follows when stock is <= 3 it displays the following warning below twice and removes the add to cart button. Warning: Last items in stock! Warning: Last items in stock! I have attached two images, one with the glitch and another when the stock is at 4 or above any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
safa Posted July 2, 2013 Share Posted July 2, 2013 hi; open this file. /theme/product.tpl and find this code <p class="warning_inline" id="last_quantities"{if ($product->quantity > $last_qties OR $product->quantity <= 0) OR $allow_oosp OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}</p> i think your theme settings in this way $product->quantity <= 3 chance the quantity to "0" i hope your problem will be solve. Link to comment Share on other sites More sharing options...
riggerz29 Posted July 2, 2013 Author Share Posted July 2, 2013 Thanks for the reply safa i really appreciate it, the code is exactly as you have put already which is strange so the glitch must be elsewhere. So i remain stumped at this point. Link to comment Share on other sites More sharing options...
safa Posted July 2, 2013 Share Posted July 2, 2013 can you share your theme product.tpl file, and your shop url. Link to comment Share on other sites More sharing options...
riggerz29 Posted July 2, 2013 Author Share Posted July 2, 2013 Yes no problems at all, it won't allow me to attach my tpl file? but my shop url is Here Link to comment Share on other sites More sharing options...
equalze Posted November 21, 2013 Share Posted November 21, 2013 Guys did you find the resolution for this - I am experiencing exactly the same issue and cannot find the answer? Link to comment Share on other sites More sharing options...
vekia Posted November 22, 2013 Share Posted November 22, 2013 check please preferences > products page, there is an option: Display remaining quantities when the qty is lower than also check quantities tab on product page, there is option to define if you want to allow orders when producti is "out of stock" Link to comment Share on other sites More sharing options...
equalze Posted November 22, 2013 Share Posted November 22, 2013 Hi For a temporary fix I copied the default product.tpl file into my theme and it works so Im assuming its nothing to do with how it has been setup but more how the theme was written - I will compare the two files to find the issue Link to comment Share on other sites More sharing options...
Recommended Posts