miketree Posted December 7, 2015 Share Posted December 7, 2015 Is it possible to not show items ibn the shop that are out of stock. I know you can have them displayed as 'out of stock', but for some things I'd like it not to show at all. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 7, 2015 Share Posted December 7, 2015 it should just be a case of modifying the products.tpl orderform template and adding {if $product.qty gt 0} inside the foreach loop... exactly how might differ depending on the choice of orderform template. the following code should hide products that are out of stock... just add the {if} statement after the existing foreach loop, and a closing {/if} before the {/foreach} {foreach $products as $product} {if $product.qty eq '' or $product.qty gt 0} .... {/if} {/foreach} 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.