Jump to content

Module Override


Recommended Posts

What is o little funky about this override system is (in my opinion) that we have both the override for the classes and stuff and the hooks system, which in theory should be enough to add, override or erase into oblivion parts of the built in system.

I think that in the long term this hybrid system must be replaced with a better, unitar way of adding/modifying stuff in the core, for both modules and themes.

Maibe the Prestashop team developers should try to make custom themes, good ones without duplicating core modules :rolleyes:, they'll hit the brick wall pretty fast.

I know that they try to do your best under the circumstances, but there comes a time when you need to part with the past.

PS: by the way, how can one specify with precision that a certain module should be displayed in only one certain page/position? This is very much tied with the override system / hooks, and quite a big limitation. I can do that in Magento, CS-Cart, even Opencart (and Opencart has only 2 developers).

Link to comment
Share on other sites

urecheatu007,

 

You can use this method

http://www.prestasho...n-blocktopmenu/

 

I was refering about the interface and the way the system works. Right now you can add a module in a hook in all the pages with eventually defined exceptions. This system can not ensure that that module will be used/displayed in only one page. This is semantics, but it speaks about the philosophy behind the system.

The $page_name global variable is a hack (better said it started as a hack), not a system feature per se.

 

PS: this started as a post in another thread, about the override system :)

Edited by urecheatu007 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...