Jump to content

bankwire


Recommended Posts

Hi

I need to edit the bankwire process, by just adding the name of the product to the step before validation

in the step before validation there is the amount and the currency! I need to add the name of the product as well?

plus in the final step when the customer click ib confirm my purchase it leads him/her to the summary where there is the ammount, the currency and bank details.... but the same it is missing the name of the product! i want that to be added too..

I know it will be the same code added for both but i don't know the code or where exactly to be added:)

 

Thank you in advance...

cheers

Link to comment
Share on other sites

in modules/bankwire/controllers/front/payment.php

it's necessary to add $cart variable to smarty array

		$this->context->smarty->assign(array(
			'nbProducts' => $cart->nbProducts(),
			'cust_currency' => $cart->id_currency,
'cart' => $cart,
			'currencies' => $this->module->getCurrency((int)$cart->id_currency),
			'total' => $cart->getOrderTotal(true, Cart::BOTH),
			'this_path' => $this->module->getPathUri(),
			'this_path_bw' => $this->module->getPathUri(),
			'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/'
		));

then in payment_execution.tpl file you can do foreach loop on $cart->products variable and display procucts list added to cart

 

you can do the same with paymentReturn hook (in this case you have to add $cart to smarty array in hook execution function in bankwire.php)

  • Like 1
Link to comment
Share on other sites

Hi Vekia,

thank you very much for this hand:)

your first solution is cristal clear:) but when arrived to foreach loop i stopped:)

 

can you show me/provide me with the excact codes and where excactly to put them!

am not such an expert in php:)

Your help and time are highly and really appreciated...

Link to comment
Share on other sites

  • 1 month later...

Hi Vekia,

thank you very much for this hand:)

your first solution is cristal clear:) but when arrived to foreach loop i stopped:)

 

can you show me/provide me with the excact codes and where excactly to put them!

am not such an expert in php:)

Your help and time are highly and really appreciated...

Did you manage to resolve this?

Link to comment
Share on other sites

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...