exiladler Posted December 23, 2005 Share Posted December 23, 2005 Hi, I need a second Print Order Gateway in order to inform customers of 2 different Bank Accounts (depending on Currency) where they have to pay to. I managed it years ago under version 2 but with all these changes I am lost and need a little help. All I want is to be able to configure 2 Print Order Gateways throught the admin section where I configure the different bank details. Surely this requires to copy some records and slightly amend them, but which? Regards Peter Quote Link to comment Share on other sites More sharing options...
Guest aikdo Posted December 23, 2005 Share Posted December 23, 2005 ill see if i can work this out for you im not 100% on the encription but ill see... Quote Link to comment Share on other sites More sharing options...
Guest Posted December 23, 2005 Share Posted December 23, 2005 (edited) Should just be able to copy the print_order_form folders form /modules/shipping & admin/modules/shipping & rename the folders & the reference to the name in the files. so if you do a search & replace in the files to replace print_order_form with print_order_form2 or whatever you've called it Edited December 23, 2005 by micky Quote Link to comment Share on other sites More sharing options...
Guest aikdo Posted December 23, 2005 Share Posted December 23, 2005 (edited) Done ill be attaching files in 5 min... Micky was 1/2 right i was complicating things... Aww well but dont need to make any changes to the files, simply copy moduals/gateways/print_order_form and admin/modual/print_order_form and rename them too print_order_form2 ect... thats it they work :unsure: Edited December 23, 2005 by aikdo Quote Link to comment Share on other sites More sharing options...
Guest Posted December 23, 2005 Share Posted December 23, 2005 (edited) The database will be automatically updated when the parameters are changed ps, congats on the licence I think if you change all the instances of $print_order_form to $print_order_form2 (or whatever) That should do it Edited December 23, 2005 by micky Quote Link to comment Share on other sites More sharing options...
Guest aikdo Posted December 23, 2005 Share Posted December 23, 2005 (edited) No need it calls it from the folder name... No my bad one change to the Transfure.php file needs to be made... In the moduals/gateways/print_order_form2/transfure.inc.php find $formAction = $glob['storeURL']."/modules/gateway/Print_Order_Form/orderForm.php"; Replace with $formAction = $glob['storeURL']."/modules/gateway/Print_Order_Form2/orderForm.php"; the bits in bold being whatever you called the folder... Edited December 23, 2005 by aikdo Quote Link to comment Share on other sites More sharing options...
exiladler Posted December 23, 2005 Author Share Posted December 23, 2005 Nice one. Thanks a lot I am in the middle of installing it. Regards Peter Quote Link to comment Share on other sites More sharing options...
exiladler Posted December 24, 2005 Author Share Posted December 24, 2005 After testing, we forgot another file modules/gateway/new_module_name) orderForm.php Line 42 $module = fetchDbConfig("Print_Order_Form"); needs to be changed to $module = fetchDbConfig("new_module_name"); As otherwise the printout will not contain the correct bank details. Quote Link to comment Share on other sites More sharing options...
Guest aikdo Posted December 25, 2005 Share Posted December 25, 2005 MA BAD!!! and good find as long as it is working for you now :errm: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.