Forums / General Questions / Payment Button in order history

Payment Button in order history

Locked

Views: 2,912

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
28 Aug 2006, 4:25 PM
#1
dmarrero avatar

dmarrero

New Zenner

Join Date:
Mar 2006
Posts:
14
Plugin Contributions:
0

Payment Button in order history

How it’s working right now:
I have installed the Super Orders module. I renamed the module from purchase order to Shipping Quote as the payment module. I added notes in the shopping cart stating that the order will be updated with the shipping total and they will receive an email when the update is complete. The payment module that is being used is check/money order which I renamed to Check/Credit Card. This allows the buyer to confirm order without paying for the order.

When the order is updated with the shipping total, the buyer receives an email and then they can check their order history and view the shipping cost. To pay for the order, the buyer either calls with a credit card or sends a check. Then the seller updates the order to “paid” once payment has been received.

Reason for this method:
The sellers items are very heavy and their shipping carrier is CON-WAY freight. I have tried the zencart module for freight shipping using zones but it is not appropriate for their shipping methods because of the zone issue. For example- NY can be used as a zone but Conway has different freight charges to different areas in NY so the buyer cannot offer a shipping total for all areas in NY because the freight charges vary.

Needed solution:
What we are looking for is a way to add a paypal button to the order history. There currently is a button I added which takes them to paypal but we would like to have some features when they click on it, if possible.

  1. We would like the button only to appear in the order history info if the shipping value is above $0.00.
  2. We would like the button to disappear if the order status is Paid.
  3. We would like the button to populate the buyers information from their account to Paypal.

Not sure if this is impossible but thought I would ask anyway. Any ideas?

28 Aug 2006, 7:55 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Payment Button in order history

dmarrero:

Needed solution:
What we are looking for is a way to add a paypal button to the order history. There currently is a button I added which takes them to paypal but we would like to have some features when they click on it, if possible.

  1. We would like the button only to appear in the order history info if the shipping value is above $0.00.
  2. We would like the button to disappear if the order status is Paid.
  3. We would like the button to populate the buyers information from their account to Paypal.

Not sure if this is impossible but thought I would ask anyway.
Yes, all of that is do-able.

  1. -- just have to check the order_totals record for that order
  2. -- just have to check the most recent orders_status_history record for that order
  3. -- just have to add the right hidden fields to the button. You can see an example of the right fields if you View Source on the checkout-confirmation screen for a paypal order.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Aug 2006, 8:24 PM
#3
dmarrero avatar

dmarrero

New Zenner

Join Date:
Mar 2006
Posts:
14
Plugin Contributions:
0

Re: Payment Button in order history

Yes, all of that is do-able.

  1. -- just have to check the order_totals record for that order
  2. -- just have to check the most recent orders_status_history record for that order
  3. -- just have to add the right hidden fields to the button. You can see an example of the right fields if you View Source on the checkout-confirmation screen for a paypal order.

I am not a PHP expert so i can't really understand how to create the if statements to check the order_totals and the order_status_history to make the button appear on certain conditions and disappear in others. Some examples could really help me.

Also with the butto, how would i add hidden fields that get the customers info and transfers it to the proper paypal fields. The only time i have used hidden fields were on forms with a submit button.

Ideas?