emagie Posted February 5, 2010 Share Posted February 5, 2010 Hi there.I have a small and big problem in the same time.I want to translate the field “Cash on delivery(COD)” . – see the picture attached to see what i meanI’ve looked in the translations, inside the php files, i can’t do it.Can someone help me? I know it is a simple thing but i can’t figure it out.Thanks. Link to comment Share on other sites More sharing options...
Ciscowrig Posted February 5, 2010 Share Posted February 5, 2010 I had to go into each module, and do a search and replace for all the words I wanted to change and do it manually. IE...modules >> cashondelivery then in your editor (I use Notepad ++) do a find in files cash on delivery and replace all with what you want it to say. Mine now all says "Charge to Account".There may be an easier way, but I'm used to editing files when I need changes so that was easiest for me. Link to comment Share on other sites More sharing options...
emagie Posted February 5, 2010 Author Share Posted February 5, 2010 I've searched in each module, i didn't find it. That is wht i ask for help. It is a small thing but it bothers me for 2 days now. Link to comment Share on other sites More sharing options...
Ciscowrig Posted February 5, 2010 Share Posted February 5, 2010 Did you search in the back office or did you search the physical module files.As I said, you will manually have to go into the the modules folder, within the original prestashop folder you downloaded. Then within the cashondelivery and cheque folders you will manually, through a text editing program have to edit the files. You will not be able to do this through the internet browser in the admin section. You will have to manually edit the files. Link to comment Share on other sites More sharing options...
emagie Posted February 6, 2010 Author Share Posted February 6, 2010 Yes, i translated directly into the tpl files, but i just can't find this field to translate. If you could look inside your code and point me to the exact tpl i would be very thankfull.Thanks for your reply. Link to comment Share on other sites More sharing options...
tomerg3 Posted February 6, 2010 Share Posted February 6, 2010 That value gets picked up from the module's display name./modules/cashondelivery/cashondeliver.php line #15 $this->displayName = $this->l('Cash on delivery (COD)'); It gets stored in the database, so you could do one of two things:1) Change the module display name.2) Change the code that saves it in the database to convert it to whatever you want.Edit: as asjoli pointed out, there is a way to translate the value from Prestashop.... Link to comment Share on other sites More sharing options...
asjoli Posted February 6, 2010 Share Posted February 6, 2010 Have you triedTools >Translations > Modules translations > Prestashop - cashondelivery - 2 expressionsThat is where I can change what to call it. Link to comment Share on other sites More sharing options...
emagie Posted February 6, 2010 Author Share Posted February 6, 2010 It changed now. I moved all files from a subdirectory to root and now it changed. maybe the cookies ware involved...Anyway thank you very much for your answers. Link to comment Share on other sites More sharing options...
dspurlock Posted January 13, 2012 Share Posted January 13, 2012 I edited the cashondelivery module and edited the payment.tpl, confirmation.tpl, and validation.tpl files in the module folder, every where I could find "Cash On Delivery (COD)" I changed to "Charge to Account". During the order process it works great and shows "Charge to Account" every where it should. However, on the order history, Invoice PDF, and Delivery Slip PDF it says "Cash On Delivery (COD)". What files would I need to change to get "Charge on Account in these locations as well? One last question. I saved an unedited copy of the cashondelivery folder, how can I add this module back and not effect the one I have edited. I didn't change the folder name on the edited copy. should I have renamed it or something? Thanks in advance for any assistance Dan 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