Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2006
    Posts
    66
    Plugin Contributions
    0

    Default Overwriting Salemaker code

    OK, I'll admit up front that I'm not a mod writer! We're currently upgrading to 1.3.9h and I have need to modify at least two core files (plus a couple on the admin side that I haven't even identified yet). One of the reasons we were so hesitant to upgrade was due to the customizations made to core code so I'm trying to eliminate that as much as possible this time.

    The files are function_prices.php and salemaker.php. I need to change a query and the output of that query by one field (to extend functionality of the multiSite mod). Is there a "best-practice" way to handle these changes? I'm very familiar with the way to handle template changes, just not these coding changes.

    Thanks so much in advance!
    Patti - OnlineCatholicStore.com
    ZC 1.3.9h with multisite mod -- ZC ROCKS!

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

    Default Re: Overwriting Salemaker code

    There are no "overrides" for the functions PHP files.
    You'll have to make your customizations in the files directly. Take notes for future upgrades so you can redo whatever's required in the future if you still need that custom functionality.
    .
    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
    Jan 2006
    Posts
    66
    Plugin Contributions
    0

    Default Re: Overwriting Salemaker code

    Quote Originally Posted by DrByte View Post
    There are no "overrides" for the functions PHP files.
    You'll have to make your customizations in the files directly. Take notes for future upgrades so you can redo whatever's required in the future if you still need that custom functionality.
    Thanks, I was afraid of that after reading the Developer's API but thought I would check.....just in case I missed something.
    Patti - OnlineCatholicStore.com
    ZC 1.3.9h with multisite mod -- ZC ROCKS!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Overwriting Salemaker code

    A line of code to alter a query is a very simple change to make. AND it's also a very simple change to "spot" when preparing to do an upgrade, especially if you use the recommended tools such as WinMerge (or a suitable equivalent for whatever O/S you're using).
    .
    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. Overwriting Existing Images?
    By srivats in forum Customization from the Admin
    Replies: 2
    Last Post: 20 Jul 2010, 06:05 AM
  2. images are not overwriting
    By tarynhipp in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 May 2008, 01:54 AM
  3. Text is overwriting logo
    By laplatakid in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 Nov 2006, 04:28 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