Jump to content

PRashant PUrohit

Members
  • Posts

    4
  • Joined

  • Last visited

2 Followers

About PRashant PUrohit

  • Birthday 09/07/1992

Profile Information

  • Location
    Bengaluru
  • Activity
    Developer

Recent Profile Visitors

168 profile views

PRashant PUrohit's Achievements

Newbie

Newbie (1/14)

4

Reputation

  1. Hello Bellini, In Prestashop 1.6.0.9 it is possible to override core file without following this way of overriding, you can try put any core file in override folder of your module without making any change it will be overriden easily but in version 0.11, 0.12 and 0.13 it will not work in these versions you have to override file like this, class AdminProductsController extends AdminProductsControllerCore { .. ... .. } But problem is that it worked for me once when i installed it, after unintalling i tried to install it again now it is showing that old error. " Unable to install override: Class AdminProductsControllerOverride54ec51e02407e does not exist " One more thing please try to override AdminProductsController without making any change it will throw you an error of bad sql query if it will be installed.
  2. Hello Friends, Finally Some changes in overriding behavior. Overriding a classIn order to override the Product class, your file needs to be called Product.php and must feature a Product class that then extends ProductCore class. The file can be placed in either of these locations: /override/classes/Product.php /modules/my_module/override/classes/Product.php Overriding a controllerIn order to override the ProductController class, your file needs to be called ProductController.php and must feature a ProductController class that then extends ProductControllerCore class. The file can be placed in either of these locations: /override/controllers/front/ProductController.php /modules/my_module/override/controllers/front/ProductController.php Even now you can override .tpl file of nay other module... http://doc.prestashop.com/display/PS16/Overriding+default+behaviors
  3. Actually I am changing a query.... in function getList() of AdminController ** Actual Query $this->_listsql = ' SELECT SQL_CALC_FOUND_ROWS '.($this->_tmpTableFilter ? ' * FROM (SELECT ' : ''); **My Query $this->_listsql = ' SELECT DISTINCT SQL_CALC_FOUND_ROWS '.($this->_tmpTableFilter ? ' * FROM (SELECT ' : ''); This is done to restrict the view of orders in admin login for another user...
  4. I am trying to override core prestashop files in 1.6.0.9 and it was working fine but it is not working 1.6.0.11 or 1.6.0.12 even i have changed the core files now i am using files of new version but still its not working . It is Showing error ... The following module(s) could not be installed properly: marketplace : Unable to install override: Class AdminControllerOverride54ec51e02407e does not exist
×
×
  • Create New...