Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2004
    Posts
    14
    Plugin Contributions
    0

    Default orders_total table planned usage

    I am going to write small extension to zc 1.3 and I wonder if I can store any additional information I need in the orders_total table. Is it OK with any next planned Zc releases?

    For example, I would like to generate for each order an unique code (different than order id) which could be used by the customer calling my IVR to get the current information about the order status. The code has to be different from the sequential order ids and known only to the customer. I am going to display it on the checkout pages and in the account history.

    So, the class will be attached to NOTIFY_HEADER_START_CHECKOUT_PAYMENT and NOTIFY_HEADER_START_ACCOUNT_HISTORY_INFO.

    In the same class I am going to give to the customer info from which location products will be skipped (I have more than one).

    So, are there any obstacles for storing such information in orders_total? Can it interfere with planned by the developers orders_total use?

    thanx,
    wdrwc

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

    Default Re: orders_total table planned usage

    You can do that fairly safely; however, if the data you're storing is cross-referenced only to customer and order-number, it would be just as easy to write self-contained code to run from a separate table.

    Either way is fine. I just tend to recommend making things modular so you are adding your stuff on the side and not risking problems, like you suggested.
    .

    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.

 

 

Similar Threads

  1. v150 How does the orders_total table get updated?
    By jaiba in forum General Questions
    Replies: 1
    Last Post: 26 Aug 2014, 06:34 PM
  2. v138a Discount coupon applied but not stored in orders_total table
    By rajoo.sharma in forum General Questions
    Replies: 0
    Last Post: 26 Sep 2013, 07:08 AM
  3. v139h Border Didn't Work As Planned
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 19
    Last Post: 4 Sep 2013, 01:27 AM
  4. Replies: 2
    Last Post: 23 Jul 2009, 12:59 AM

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