Thread: Date of payment

Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Date of payment

    i have 3 payment modules: paypal, credit card and moneyorder.
    the order status of paypal and credit card are automaticly set to "Processing" after the orders placed, the default order status of moneyorder is "Pendding".

    i need add to database table a field date_of_payment,
    i want the date of payment field of modules paypal and credit card be automaticly filled, and i can manually added date of payment for moneyorder module.

    since i don't want to alert default zencart tables,
    i created a new table "payment" with the fields orders_id, date_of_payment,
    what do i do next? is there anyone could help?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Date of payment

    Why do you feel the need to make this unnecessarily complicated?

    As you know, when an order is paid via PayPal, the order is marked as Processing. You can see the date/time of that in the Order Status history, along with the authorization details from PayPal.
    When you update an order paid with MoneyOrder to Processing after receiving the money, THAT date (when you update the order status) is added to the order's status history as well.

    Just use it as it's designed, and you'll have what you desire without having to change any database structure or programming code.
    .

    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
    Jun 2011
    Posts
    63
    Plugin Contributions
    0

    Default Re: Date of payment

    i need a field date_of_payment for each order because i have some customized fields which are calculated according to the date_of_payment, this date is very important for me, it should be exact.
    for the date info which is input to the field comments of table order_status_history, i don't know how to call this date, i don't have an idea to find it and use it for calculation by php code

 

 

Similar Threads

  1. v151 Nochex Payment Module - Errors in [Subject / Order] and [Date]
    By PetleyJ in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Jul 2013, 07:57 PM
  2. order delivery date display in payment page
    By Nkin in forum Addon Shipping Modules
    Replies: 0
    Last Post: 2 Jul 2011, 05:23 PM
  3. Paypal Payment Date = 11/30/1999 00:00:00
    By karazy in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 11 May 2009, 10:11 PM
  4. IDEAL payment - Certificate out of date
    By gandalf in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 17 Sep 2007, 06:59 PM
  5. Payment date never validates for any CC mod
    By kelvyn in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 1 Dec 2006, 05:46 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR