Jump to content

Cloning Bank wire module


archproject

Recommended Posts

Hi all,

I am trying to clone the bank wire module into 3 separate bank module .... with 3 different bank account on 3 different banks. so how can I do this the easy way ... ?

I have copied the bankwire folder and made

bankwirebankA
bankwirebankB
bankwirebankC

and I have changed the php files inside the 3 folders into

bankwirebankA.php
bankwirebankB.php
bankwirebankC.php

and I change every single word in bankwirebankA.php from bankwire to bankwirebankA and did the same to all other 2 files in their recpective directories.
what else I need to do ?

Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...
  • 2 months later...
  • 5 months later...
  • 4 months later...
  • 4 weeks later...
  • 3 months later...

Fixed version, built on an earlier version of the bankwire module.

Tested on 1.4.4.0

Thanks for your share!

 

Can anyone help me by telling how to make a new email for a bankwire2 module?

 

Just copying bankwire.html in /mails folder and adding number 2 to title doesnt helps :)

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 months later...
  • 1 month later...
  • 4 weeks later...

hi

Fixed version, built on an earlier version of the bankwire module. Tested on 1.4.4.0
Fixed version, built on an earlier version of the bankwire module. Tested on 1.4.4.0

 

Hi

is this cloned version work for prestashop 1.5 ?

i try to clone bankwire module but not worked

Link to comment
Share on other sites

  • 1 year later...
  • 5 months later...
  • 3 months later...

Hi there,

 

I'm trying to clone bankwire on Prestashop 1.6.0.14 and the solution of stunomatic works ALMOST perfect. Problem is on the last step of the order process. It is probably caused by some minor change between 1.6.0.9 and 1.6.0.14 but I can not figure it out.

 

When I click on the last step of ther order process (website/module/publicbank/payment) on the confirmation button, 500 SERVER ERROR pops up.

 

So I turned on debugging and it says this:

 

[PrestaShopException]

Can't load Order status
at line 178 in file classes/PaymentModule.php

 

173. 
174. 		$order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id);
175. 		if (!Validate::isLoadedObject($order_status))
176. 		{
177. 			PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int)$id_cart, true);
178. 			throw new PrestaShopException('Can\'t load Order status');
179. 		}
180. 
181. 		if (!$this->active)
182. 		{
183. 			PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true);
122. 
123. 		);
124. 
125. 
126. 
127. 		$this->module->validateOrder($cart->id, Configuration::get('PS_OS_PUBLICBANK'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);
128. 
129. 		Tools::redirect('index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);
130. 
131. 	}
132. 
166. 			// setMedia MUST be called before postProcess
167. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
168. 				$this->setMedia();
169. 
170. 			// postProcess handles ajaxProcess
171. 			$this->postProcess();
172. 
173. 			if (!empty($this->redirect_after))
174. 				$this->redirect();
175. 
176. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
368. 			// Execute hook dispatcher
369. 			if (isset($params_hook_action_dispatcher))
370. 				Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
371. 
372. 			// Running controller
373. 			$controller->run();
374. 		}
375. 		catch (PrestaShopException $e)
376. 		{
377. 			$e->displayMessage();
378. 		}
23. *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
24. *  International Registered Trademark & Property of PrestaShop SA
25. */
26. 
27. require(dirname(__FILE__).'/config/config.inc.php');
28. Dispatcher::getInstance()->dispatch();

I've seen similar problem in other topic and they say the problem is caused by database tables (ps_order_state, ps_order_state_lang) so I've tried to import default tables but it didn't solve anything.

 

 

Will we figure this out together?

Edited by PrestaRob (see edit history)
Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...