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

    Default class override - Can I?

    Can I override a class instead of having to modify the original? Working on /includes/classes/shipping.php

    THanks
    22 stores and counting! Ive been zenned.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,524
    Plugin Contributions
    127

    Default Re: class override - Can I?

    No, you must modify the core file - there are no overrides for classes. Be sure to keep the original (as shipping.php.orig or something like that) for reference.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: class override - Can I?

    Also consider keeping a copy in a folder for your template ( /includes/classes/YOUR_TEMPLATE/shipping.php). It won't be used as an override, but you'll have a copy of your changes which won't be overwritten by an upgrade/update making it easier to duplicate.

    Quick rule of thumb: If there's no classic folder, there's no override.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

 

 

Similar Threads

  1. Can't override Address Details
    By ebaobao in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Aug 2008, 06:23 PM
  2. Can I override functions/html_output ?
    By Minnie Mouse in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 20 Aug 2008, 06:00 AM
  3. Can my override be overridden? Page 4
    By hambone in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Dec 2007, 06:12 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