Reputation: 134
I've been creating a theme for prestashop and found out pretty early on that you could override module templates by creating a folder in myTheme/modules/modulename and then put the overriding templates in there, however, when I try and do this for the paypal module the overriden template file does not get used.
Have any other prestashop users had this problem in the past and if so how have you fixed it? Thanks in advance.
Upvotes: 2
Views: 2156
Reputation: 3207
I was having a similar problem because I was copying the files from modules I wanted to override into my theme directory and deleting those I wasn't overriding.
However, PayPal's module is several levels deep. You can't leave the files where they are, they need to be in the root of the override dir.
Para example, to override express_checkout_payment.tpl
:
Copy /app/modules/paypal/views/templates/hook/express_checkout_payment.tpl
to /app/themes/han/modules/paypal/express_checkout_payment.tpl
Upvotes: 2
Reputation: 3775
I have the same problem and found a workaround on prestashop forums.
It implies to modify the paypal module code, it's not a perfect solution, but it works...
Upvotes: 0