Renaming Zen Cart files for backup

This is a common problem I see in failed mod installs: incorrectly renaming files you wish to keep as backups.   Zen Cart automatically loads all files ending with the extension “.php” in certain directories (such as includes/functions/extra_functions and includes/modules/order_totals), so you must name your backup files in a way such that they do not end with the extension “.php”.

For example: suppose you want to save a backup copy of the file ot_coupon.php

Good names:


Bad Names



One thought on “Renaming Zen Cart files for backup”

  1. Amen to this bit of knowledge! I just spent the better part of a day trying to figure out why a recent addon not only failed and crashed parts of the cart, but then continued to cause problems after it was “removed” — I really didn’t remove it,just renamed some of the files in the incorrect manner.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.