Author Topic: How to create new response  (Read 27854 times)

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2064
  • Karma: +326/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: How to create new response
« Reply #15 on: July 26, 2014, 09:29:43 AM »
Thanks a lot,i missed that part.  :D

Another question,is it possible to use existing category and product model and copy it into the model folder?

inside hook? yes
just load model that needed via $that->loadModel('catalog/product'); and call $that->model_catalog_product->method();
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

yonghan

  • Guest
Re: How to create new response
« Reply #16 on: July 26, 2014, 09:33:33 AM »
How about from the response controller?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2064
  • Karma: +326/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: How to create new response
« Reply #17 on: July 26, 2014, 09:36:25 AM »
inside extension controllers the same way as in core-controllers
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

yonghan

  • Guest
Re: How to create new response
« Reply #18 on: July 26, 2014, 09:37:30 AM »
Thanks a lot for the help abolabo.I got it working as expected.Once again thanks a lot.

 

Powered by SMFPacks Social Login Mod