Jump to content

addtional Print Gateway needed


exiladler

Recommended Posts

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

Link to comment
Share on other sites

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 by micky
Link to comment
Share on other sites

Done ill be attaching files in 5 min... Micky was 1/2 right i was complicating things... Aww well :D

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 by aikdo
Link to comment
Share on other sites

The database will be automatically updated when the parameters are changed :D

ps, congats on the licence :unsure:

I think if you change all the instances of

$print_order_form

to

$print_order_form2 (or whatever)

That should do it

Edited by micky
Link to comment
Share on other sites

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 by aikdo
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...