Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Posts
    14
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Payment Button in order history

    Quote Originally Posted by 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.

  3. #3
    Join Date
    Mar 2006
    Posts
    14
    Plugin Contributions
    0

    Default 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?

 

 

Similar Threads

  1. Order history missing but paypal payment sent
    By syrieltiger in forum Managing Customers and Orders
    Replies: 4
    Last Post: 23 Jan 2012, 05:41 PM
  2. Order History "view" button not displaying
    By Soniccc in forum Managing Customers and Orders
    Replies: 5
    Last Post: 25 Nov 2010, 05:21 AM
  3. Download Button Missing in order history v.1.3.6
    By hipgirl in forum General Questions
    Replies: 0
    Last Post: 19 Oct 2010, 10:49 PM
  4. Replies: 0
    Last Post: 15 Aug 2010, 10:06 AM
  5. My Order History and Order History Details - how do I get order comments in both?
    By trisha1581 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Nov 2007, 06:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg