Can I override a class instead of having to modify the original? Working on /includes/classes/shipping.php
THanks
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.
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.
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