KöveZoli Posted December 21, 2016 Posted December 21, 2016 (edited) Eredendően van ez a funkció: https://www.prestashop.com/forums/topic/573372-%C3%BAj-label-a-term%C3%A9khez/ Kifutó termékek megjelölése egy labellel. Azt hiszem, nagy fába vágtam a fejszémet, de egy próbát megér. A leárazások, illetve az új termékek listájához hasonlóan szeretném megjeleníteni a kifutókat is, vagyis azokat, ahol a $product->condition == 'kifuto' Úgy gondoltam, hogy az új termékek modult kellene duplikálni, átnevezni, és alakítani rajta egyet, hogy ne az újakat listázza. Amit tettem eddig: - A /sajat-theme/modules/- ben létrehoztam a blockkifutoproducts mappát, benne a blocknewproducts file-jaival. - A translations-ban a hu.php-ben kicseréltem a $_MODULE['<{blocknewproducts}sajat-theme>blocknewproducts_ -okat cseréltem blockkifutoproducts...-ra. - blocknewproducts.tpl-ből blockkifutoproducts.tpl lett - /controllers/front-ban KifutoProductsController.php (a NewproductsController alapján), benne class KifutoProductsControllerCore extends FrontController { public $php_self = 'kifuto-products'; és $this->setTemplate(_PS_THEME_DIR_.'kifuto-products.tpl'); - new-products.tpl alapján kifuto-products.tpl Eddig ennyi. Egyáltalán jó az irány? Edited January 2, 2017 by KöveZoli (see edit history) Share this post Link to post Share on other sites More sharing options...
pattila01 Posted December 23, 2016 Posted December 23, 2016 De az új termékek mappájának amit duplikáltál mi lett a neve? "blockkifutoproducts" ? Share this post Link to post Share on other sites More sharing options...
KöveZoli Posted January 2, 2017 Posted January 2, 2017 A téma mappájában igen. Eddig csak a fentieket csináltam, mást nem. Share this post Link to post Share on other sites More sharing options...
pattila01 Posted January 4, 2017 Posted January 4, 2017 Az irány jó, és nem akar működni? Share this post Link to post Share on other sites More sharing options...
KöveZoli Posted January 5, 2017 Posted January 5, 2017 Az elakadás lényege, hogy nem világos a többi, hogy mit és hogyan írjak át a kódban. Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now