Jump to content

[SOLVED] How to override module's tpl file with custom module


Recommended Posts

I want to override blockcart.tpl file.
whose address is

/themes/default-bootstrap/modules/blockcart/blockcart.tpl

I want to override this ONe with my custom module..
I have this address in my module for override

/modules/CustomModule/themes/default-bootstrap/modules/blockcart/blockcart.tpl

This Not works....................
ONe more thing : I have added this file and pata after installation.. 
Is installation is compulsory for working of new added tpl file..???????? 

 

All Suggestions are appreciated.......................
Thanks in advance.........................

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

it's not possible to override module file from other module.

more informations about possible overriding methods you can find here:

http://doc.prestashop.com/display/PS15/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingamodule'sbehavior

Ok , Now i want to override modules tpl file..

what should be the best way...

 

If change it from

 /themes/default-bootstrap/modules/blockcart/blockcart.tpl 

My requirements fullfills,

 

But what if i installed on a new prestashop then May i have to change it again and again for any new installation.?????

Link to comment
Share on other sites

  • 3 weeks later...

Do you mean theme? If so, yes, you'll have to change the tpl again, or you can grab the override one provided that it's compatible with the theme (say, if that uses special identifiers you'll have visual glitches, and so)

  • Like 1
Link to comment
Share on other sites

Do you mean theme? If so, yes, you'll have to change the tpl again, or you can grab the override one provided that it's compatible with the theme (say, if that uses special identifiers you'll have visual glitches, and so)

Ok Thanks Nemo1!!

 

I'll mind it....

Concept cleared Now......

 

I have to change theme's files every time , when installing module on a new Prestashop...

Link to comment
Share on other sites

×
×
  • Create New...