Jump to content

[1.7.X] Override an admin template


Bastien Planel

Recommended Posts

Hi everybody !

I'd like to add a field in the reduction's interface (cart_rules), BO side.

The AdminCartRulesController's override was ok, but the informations.tpl's one didn't work at all.

 

So, if anybody has any experience in dealing with this kind of work, here are some little things that I tried:

-> informations.tpl (origin) : [adminfolder]/themes/default/template/controllers/cart_rules/informations.tpl

-> override tried : override/controllers/admin/template/controllers/cart_rules/informations.tpl

-> override tried 2 : override/controllers/admin/template/cart_rules/informations.tpl

 

I noticed that form.tpl, who summons informations.tpl, contains this piece of code :

<div id="cart_rule_informations" class="panel cart_rule_tab">
			{include file='controllers/cart_rules/informations.tpl'}
		</div>

I'm asking myself if this has an impact and, if so, how to fix it.

 

Thanks a lot, I don't find anything relevant on the internet ^^"

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

  • 11 months later...

Simply change form.tpl include file to this

<div id="cart_rule_informations" class="panel cart_rule_tab">
 {include file='cart_rules/informations.tpl'}
</div>

and put your informations.tpl to this directory

 override/controllers/admin/template/controllers/cart_rules/informations.tpl

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