Wojtek Posted January 30, 2013 Share Posted January 30, 2013 I use Prestashop 1.4.4 and I want to make the customer pay 20% deposit upon order with payment on delivery. Is there a module that will calculate 20% of the order and displays the bank account number, which you need to make a transfer? Link to comment Share on other sites More sharing options...
bellini13 Posted January 30, 2013 Share Posted January 30, 2013 I'm not aware of one, I assume you already performed a google search, and did not post on the forum without doing that? If you cannot locate one, then it sounds like you just need to customize the bankwire module to do this. Link to comment Share on other sites More sharing options...
Wojtek Posted January 30, 2013 Author Share Posted January 30, 2013 Of course I was looking on google, but have not found anything on this subject. I do not really know much about programming, so I wrote on the forum. I thought someone has already solved this problem and has a ready-made solution. Link to comment Share on other sites More sharing options...
El Patron Posted January 30, 2013 Share Posted January 30, 2013 you first need to explain what payment method you want to use. from google I found several here is a simple soluton http://www.prestashop.com/forums/topic/48336-solved-down-payment-for-cash-on-delivery/ but there are more options depending on the payment method, i.e. cc etc. Link to comment Share on other sites More sharing options...
Wojtek Posted February 17, 2013 Author Share Posted February 17, 2013 I'm trying to solve the problem by copying the module Bankwire. The problem arose after the approval of the contract, when displaying the amount and data to transfer. I can not set the amount to transfer = 20% value of order. Original fragments of code: in php file: public function hookPaymentReturn($params) { if (!$this->active) return ; global $smarty; $state = $params['objOrder']->getCurrentState(); if ($state == _PS_OS_BANKWIRE_ OR $state == _PS_OS_OUTOFSTOCK_) $smarty->assign(array( 'total_to_pay' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj'], false), 'bankwireDetails' => nl2br2($this->details), 'bankwireAddress' => nl2br2($this->address), 'bankwireOwner' => $this->owner, 'status' => 'ok', 'id_order' => $params['objOrder']->id )); else $smarty->assign('status', 'failed'); return $this->display(__FILE__, 'payment_return.tpl'); } in tpl file - {l s='an amount of' mod='bankwire'} <span class="price">{$total_to_pay}</span> When I change the code in the tpl file to this: - {l s='an amount of' mod='bankwire'} <span class="price">{displayPrice price=$total_to_pay*0.2}</span> Amount displayed is rounded down, for example: value of order: $ 37.68 'total_to_pay': $ 37.00 20% down payment: $ 7.40 What should I change to the value of 'total_to_pay' is equal to the value of the order? Link to comment Share on other sites More sharing options...
sr83 Posted March 5, 2013 Share Posted March 5, 2013 I am also looking for a module/solution to facilitate taking a 20% deposit for orders using Paypal. Link to comment Share on other sites More sharing options...
panoramis Posted April 4, 2013 Share Posted April 4, 2013 Hello, sorry for my English is very bad and I do not understand most modifications, someone can upload the modified full module for version 1.5.3??? Thanks in advance. Link to comment Share on other sites More sharing options...
lovecustomart Posted May 18, 2014 Share Posted May 18, 2014 did you ever find a solution for this? As I am looking too for a 20% or similar deposit and rest payment via PayPal invoice 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