Forum Moderators: buckworks

Message Too Old, No Replies

complex payment calculation

not your average shopping cart

         

Mutley2003

5:24 am on May 2, 2005 (gmt 0)

10+ Year Member



Hi
I have not done this before, but I have been asked to .. so, help/guidance would be appreciated.

The site (PHP) will give a customer a quotation - that is based on some complicated formula and the calculation is to be done in PHP. The formula depends on weight, size, material and a couple of other factors in some non linear fashion.. so every quotation is unique. Given the price, the customer should then be able to place an order and pay for it online.

This does not seem to fit well with the shopping cart paradigm which seesm to assume the existence of a catalog of items with fixed prices.

How do I go about this?

grandpa

6:14 am on May 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hi and Welcome to WebmasterWorld

We don't catalog our products in our cart, although the option is there. What you are proposing is to perform all of your calculations on-page, and when completed send the necessary information to the cart. If your cart requires cataloged items you might want to look for a different cart.

Using a php script, and with a little help from javascript, cookies and session info I can perform calculations and determine options from hundreds of available selections. My cart knows nothing of this, it only receives the final totals.

>> How do I go about this?
Set yourself down with a pad of paper and a pencil and begin your script design. Flowcharting your process will make everything a lot clearer from the beginning.

Mutley2003

6:18 am on May 2, 2005 (gmt 0)

10+ Year Member



thanks grandpa, that sounds like what I need. Can you tell me the name of your cart?