jumpink Posted July 29, 2012 Share Posted July 29, 2012 I am trying to change the displayed title of a module. I tried going into module translations but I get a server error. I found the tpl files and changed all the language I needed to change except the title. Any idea what file the title would be located in? I would like CLIPBOARD to be FAVORITES Link to comment Share on other sites More sharing options...
bellini13 Posted July 29, 2012 Share Posted July 29, 2012 it would typically be located in one of the .tpl files. open the main module php file, search for a function called rightColumn or leftColumn, which would be used to create the block that you want to change. inside that method see if the word CLIPBOARD appears there. otherwise see what .tpl file those functions reference. Link to comment Share on other sites More sharing options...
jumpink Posted July 29, 2012 Author Share Posted July 29, 2012 Thanks bellini for the pointers. I have changed everything in the .tpl files and searched through the php files. It seems that the title is hidden somewhere but I am unable to locate where. Link to comment Share on other sites More sharing options...
nyinyi Posted July 30, 2012 Share Posted July 30, 2012 I would also like to know the answer to this question. I have been trying to change the title of Pay by Check to be pay by mobile money and pay with Cash on Delivery to be Cash on Collection. I have changed all other parts of the module but the only one I cannot find is the one that changes the text which is displayed for the customer to pick the payment method Link to comment Share on other sites More sharing options...
bellini13 Posted July 30, 2012 Share Posted July 30, 2012 it would be located in the payment.tpl file Link to comment Share on other sites More sharing options...
nyinyi Posted July 31, 2012 Share Posted July 31, 2012 I have changed the payment.tpl file but I still have Cash on Delivery and Pay by Check which I want to change. Link to comment Share on other sites More sharing options...
math_php Posted July 31, 2012 Share Posted July 31, 2012 Hi To force tpl modification to be rendered : - Did you force compilation for smarty ? - You can also dump tools/smarty/compil/ directory (keep index.php) In tpl you can find {l s='Pay by cheque' mod='cheque'} This code will also serve for module translation. Is english the language you want to display ? Modules you want to modify are original ones or modifyed and renamed modules ? If you get errors with modules translations, perhaps first step would be to remove damaged modules. 1 Link to comment Share on other sites More sharing options...
nyinyi Posted July 31, 2012 Share Posted July 31, 2012 I have not touched smarty files. I will do so and let you know if it works. The modules are the originals and have not been modified at all. I have just changed the payment.tpl file where it says Pay By Cheque I have changed that to Pay by Mobile Money. I have not encountered any error at all. Let me try the smarty suggestions and I will get back and inform you of the outcome. Thanks Link to comment Share on other sites More sharing options...
nyinyi Posted July 31, 2012 Share Posted July 31, 2012 FANTASTIC!!! That works now. All I did was force smarty compilation at the performance page and that seems to have solved the issue. Much appreciated for your help. Link to comment Share on other sites More sharing options...
bellini13 Posted July 31, 2012 Share Posted July 31, 2012 anytime you change a template file you must delete the smarty compile cache or force re-compilation. just remember to disable re-compilation when you are done Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now