Jump to content

Prestashop 1.7 overriding .tpl files using module


Recommended Posts

I am trying to create a module in prestashop 1.7.* . I have got into a situation which needs me to edit cart.tpl file located in themes/classic/templates/checkout folder. In documentation I came across /themes/[theme_name]/modules which has the description as "Sub-folder for overriding .tpl files and languages files, if necessary." . Unable to find proper explanation I tried creating "MyModule/themes/classic/templates/checkout/cart.tpl" and unfortunately the changes are not reflected in the site. I have no clue what should be done.

 

P.S When I tried creating a hook and placing it by altering the themes/classic/templates/checkout/cart.tpl file it was successful. I am planning to place my hook in my module's overriding cart.tpl file.

Link to comment
Share on other sites

  • 5 months later...

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