PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

Duplicating BankWire module

3 replies to this topic
#1
sahabat

    PrestaShop Apprentice

  • Members
  • PipPip
  • 27 posts
Hi! I hope I can get some help from the community.
There are few banks I'm going to use for my shop payments, i use the bankwire module for one bank, and a duplication for another one.

I've tried duplicating the bank wire folder and change each line containing words "bankwire" to the new payment module. After I put it in modules folder, the module tab in BO went blank.

Which files should/shouldn't I modify? thanks

#2
sahabat

    PrestaShop Apprentice

  • Members
  • PipPip
  • 27 posts
The module works after I modify the config file by adding a line in order states, my question is what is the number 1 to 10 refer to? I use 10 for BankWire2, what will effect my shop?

/* Order states */
define('_PS_OS_CHEQUE_', 1);
define('_PS_OS_PAYMENT_', 2);
define('_PS_OS_PREPARATION_', 3);
define('_PS_OS_SHIPPING_', 4);
define('_PS_OS_DELIVERED_', 5);
define('_PS_OS_CANCELED_', 6);
define('_PS_OS_REFUND_', 7);
define('_PS_OS_ERROR_', 8);
define('_PS_OS_OUTOFSTOCK_', 9);
define('_PS_OS_BANKWIRE_', 10);
define('_PS_OS_BANKWIRE2_', 10);


#3
Patric Codron

    PrestaShop Superstar

  • PrestaTeam
  • 9152 posts
The second parameter is the order status ID in the ps_order_state_lang database's table.

first you have to (and may be did) add an order status :
Back Office >> Orders >> Order statuses
and note the status ID.

Next, modify your settings.inc.php file with the corresponding ID:
define(’PS_OS_BANKWIRE2‘, 11);
(11, if the news status' id is 11)
Patric CodronCommunity Manager | Manager de CommunautéPrestaShop

Posted Image Merci de respecter les règles du forum PrestaShop.com :)
Posted Image Please comply with the PrestaShop.com forum rules :)

#4
Ardian Yuli Setyanto

    PrestaShop Fanatic

  • Moderators
  • 1029 posts
some indonesian users have modified bankwire modules, you see in this topic.

http://www.prestasho...angan_dan_modul