prestashopdave Posted February 19, 2015 Share Posted February 19, 2015 Hello when you want to change or add a new field in OrderDetail that comes from a new field from Product, you need navigate in a lot of codes to achive to work with a new simple field that be stored in OrderDetail, selects, functions, cart.php, order....php, etc by example: Cart::getProducts() is like hard code, so you need to create an overrride with all the code in this function when all you need is to add a field, a manual sql code, i thinks it's not well made..... model MVC in prestashop is not really funny, it's needed a navigate deep inside with no good documentation. So it's good for a developpers that give service, but not really a good things to simple developpers or users that needs to change de model , because for to make to work simple new fields you need to do a lot of work. it's just an opinion.... chers dave 1 Link to comment Share on other sites More sharing options...
Dh42 Posted February 19, 2015 Share Posted February 19, 2015 But doing it this way makes it secure. Its not wordpress you are working with. Link to comment Share on other sites More sharing options...
manonbecle Posted February 19, 2015 Share Posted February 19, 2015 hello; I dont use Wordpress; I use models and controllers that can comunnicate easily; with a global controller, MVC'prestashop is too much unorganized, like hardcode; not really made to add fields in a isoleted way in overrides or events; plenty de sqls manually. I repeat this is good for advanced programmers like me, but not for simple users or programmers. Anyway is one of the best tools made, but I think a lot of work to become simple. I hope to participate in news changes. Regards Link to comment Share on other sites More sharing options...
prestashopdave Posted February 19, 2015 Author Share Posted February 19, 2015 It's not really secure if in order to make chages you need to copy a lot of code on the override class from the parent class; and keep compatibility for futures versions; not really a good commmunications between class and controllers like products; cart_product; order_detail. Link to comment Share on other sites More sharing options...
prestashopdave Posted February 19, 2015 Author Share Posted February 19, 2015 sorry but i dont work with wordpress, I am OOP PHP using MVC. I'm discovering Prestashop's strong and weak sides. Link to comment Share on other sites More sharing options...
Mediacom87 Posted February 28, 2015 Share Posted February 28, 2015 Hi, like other people if you think to do that in a new way, you can do, it's open source and github is your friend if you want. Prestashop is noit perfect like other framework, but he is more simple to learn how to do something. In my vision. Link to comment Share on other sites More sharing options...
Recommended Posts