Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2007
    Posts
    23
    Plugin Contributions
    0

    Default Where do I save changes to orders.php?

    I have made changes to my includes/classes/order.php file to include more information from the database in the order confirmation email. I am not worried about the php or sql changes. However, I have a new zenner terror of saving these changes in the wrong place and mucking up my site when I upgrade (I'm currently at 1.3.8). Should I be saving this in a template file somewhere (please tell me the path if I should!)? Or do I just overwrite the order.php file and remember that I've changed it?

    Thanks very much,

    R. Barnes

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Where do I save changes to orders.php?

    Files in /includes/classes are not overrideable. Just make your edits to the files directly. Then when you're upgrading, be sure to merge your changes into the new version if they're still needed.
    Or, better yet, make your alterations by hooking notifier points instead of editing the class files at all.
    .

    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
    Oct 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: Where do I save changes to orders.php?

    Thanks. I have no idea what "hooking notifier points" means. It sounds like something that could get me arrested.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Where do I save changes to orders.php?

    The basics of coding customizations to use built-in hooks instead of hacking up core code is discussed here: http://www.zen-cart.com/wiki/index.p...Observer_Class
    .

    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.

  5. #5
    Join Date
    Oct 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: Where do I save changes to orders.php?

    Excellent! Thanks.

 

 

Similar Threads

  1. Can't save changes to Configure.php
    By Serious in forum Installing on a Windows Server
    Replies: 6
    Last Post: 16 Feb 2011, 04:57 AM
  2. remove "Save 20% Off" from product_listing.php ? where is this code?
    By edwardtilbury in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 May 2009, 03:51 PM
  3. tpl_modules_create_account.php - cannot find where I saved it to but changes show
    By Elarya in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Mar 2008, 11:03 PM
  4. Cannot save changes to config.php
    By raquelann in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Jul 2007, 04:45 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