2

Adding partial payment functionality in ubercart module

http://drupal.org

Hello,
I am trying to create a module for ubercart that will allow partial payments, a kind of, booking a product/ service. Presently with ubercart, one is required to pay the full amount to buy a product or service. There is a recurring fee module but that is not what I am after. In my scenario where the product or service is costing more than 10000USD, customers may prefer to pay a partial amount as booking and pay the rest in person.

Approach:
--------------
The way I am trying to achieve this by a custom module for ubercart which will allow the admin to enter two prices. One is the full product price (already in ubercart) and another one new price box (created by the custom module) that stores the partial payment (booking price) in a new database table. So far I have managed to get an additional button "Make partial payment" on each product besides add to cart button. I have used a form_alter hook in 'add to cart form' to modify the submit handler of add to cart form so that I can detect which button is clicked. ("add to cart" or "make partial payment").

The problem:
------------------

The problem I am not facing is that I cannot add the products to the cart with partial payments. When I call the function Uc_add_to_cart, it reads the original product price (sell price ) and i dont find a way to change the value to my partial payment value.

read more

Read »
Created by Dplanet 2 years 32 weeks ago
Category: Modules   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Best published scoops - Modules

Tags for Adding partial payment functionality in ubercart module

Recent comments