zloydemon Posted April 16, 2013 Report Share Posted April 16, 2013 Ребят подскажите как реализовать данную фишку .Благодарю за внимание Quote Link to post Share on other sites
mart Posted April 16, 2013 Report Share Posted April 16, 2013 Для начала в view/PriductsView.php надо "вернуть" товар в нулевым остатком в шаблон (убрать ~150 строка 'in_stock'=>true )Теперь обработать "возвращенный товар" в шаблоне при выводе вариантов товара {if $v->stock}<span class="red">вариант</span>{/if} Quote Link to post Share on other sites
zloydemon Posted April 16, 2013 Author Report Share Posted April 16, 2013 ага ,сейчас попробую Quote Link to post Share on other sites
zloydemon Posted April 16, 2013 Author Report Share Posted April 16, 2013 mart , а шаблон править Products .tpl ? Quote Link to post Share on other sites
mart Posted April 16, 2013 Report Share Posted April 16, 2013 mart , а шаблон править Products .tpl ?Да.Для облегчения понимания структуры:view/ProductsView.php -> design/[шаблон]/html/products.tplview/ProductView.php -> design/[шаблон]/html/product.tplЭти манипуляции надо сделать и для ProductView и далее (карточку товара), чтобы полноценно сделать задачу. Quote Link to post Share on other sites
zloydemon Posted April 16, 2013 Author Report Share Posted April 16, 2013 Да.Для облегчения понимания структуры:view/ProductsView.php -> design/[шаблон]/html/products.tplview/ProductView.php -> design/[шаблон]/html/product.tplЭти манипуляции надо сделать и для ProductView и далее (карточку товара), чтобы полноценно сделать задачу.большое спасибо)))) буду пробовать)) 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.