byrzyi Posted April 28 Report Share Posted April 28 Есть такой код на главной в шаблоне main.tpl: <div class="items productList tabs__content active"> {* Новинки *} {get_new_products var=new_products limit=20} {if $new_products} {foreach $new_products as $product} {include file='product_block.tpl'} {/foreach} {/if} <div class="clear"></div> </div> Пробывал разные варианты всандалить "$filter['in_stock'] = 1" - ни в какую. Сам же каталог товаров по категориям коректно не показывает товары, которых нет в наличии используя этот же шаблон product_block.tpl Есть MainView.php: require_once('View.php'); class MainView extends View { function fetch() { if($this->page) { $this->design->assign('meta_title', $this->page->meta_title); $this->design->assign('meta_keywords', $this->page->meta_keywords); $this->design->assign('meta_description', $this->page->meta_description); } return $this->design->fetch('main.tpl'); } } Подскажите пожалуйста. Спасибо! Quote Link to post Share on other sites
Kosjak76 Posted April 28 Report Share Posted April 28 {get_new_products var=new_products limit=20 in_stock=1} Quote Link to post Share on other sites
byrzyi Posted April 29 Author Report Share Posted April 29 14 часов назад, Kosjak76 сказал: {get_new_products var=new_products limit=20 in_stock=1} СПАСИБО! Все как надо! Не туда пытался тулить Quote Link to post Share on other sites
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.