nBill Community nBill Home Page
22/May/2012, 11:37:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Click Here for the nBill home page, or take a tour.  
 
   Home   Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: How to allow the user to enter the amount to pay  (Read 12361 times)
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #30 on: 17/September/2009, 09:04:07 AM »

Assuming the name of your dropdown field is 'choose_product' (if not, amend the following code accordingly), try this:

$order = array();
$order['net_price'] = format_number(mosGetParam($_POST, 'Payment_Amount'), 2);
$order['tax_amount'] = 0;
$order['tax_rate'] = 0;
$order['product_name'] = "Project Payment";
$order['quantity'] = 1;
$order['product_id'] = intval(mosGetParam($_POST, 'choose_product'));
$orders[] = $order;
Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!