Jump to content

Override is not useful when the MVC is not agile


Recommended Posts

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

  • Like 1
Link to comment
Share on other sites

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

  • 2 weeks later...
×
×
  • Create New...