walidon Posted August 27, 2014 Share Posted August 27, 2014 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 More sharing options...
vekia Posted August 28, 2014 Share Posted August 28, 2014 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) 1 Link to comment Share on other sites More sharing options...
walidon Posted August 28, 2014 Author Share Posted August 28, 2014 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 More sharing options...
walidon Posted September 1, 2014 Author Share Posted September 1, 2014 any hope Vekia:) Link to comment Share on other sites More sharing options...
HaCos Posted October 2, 2014 Share Posted October 2, 2014 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 More sharing options...
walidon Posted October 3, 2014 Author Share Posted October 3, 2014 nope still waiting:) I didn't understand how to make foreach loop:) am not such an expert so if you know how to do that, plz help:) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now