Jump to content

Override admin template not allowed in prestashop validator


NishantVadgama

Recommended Posts

Hello Prestashop Experts,

 

I want to override view.tpl of order in admin panel so I have place view.tpl file in following path

 

mymodule/override/controllers/admin/templates/orders/helpers/view/view.tpl

 

and it works perfectly but when Im trying to validate my module package on prestashop validator gives following error

 

 Templates should be placed in /views/templates/(admin|hook|front)

 

How can I resolve this please help me.

 

Should I add comment in header part of tpl file and submit with error or is there another way?

Link to comment
Share on other sites

I would suggest ignoring the validation error, add a comment explaining why you have overridden an admin view tpl, and submit the module.  They may reject it based on what you are trying to override (they do not like overrides), but if you have a good reason to do so, and they deem it 'safe', then they may approve it.

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...