Admin Site Specific Overrides

How to customize your admin behavior without modifying core files

Starting in Zen Cart 1.5.8, a file called admin/includes/extra_datafiles/dist-site_specific_admin_overrides.php is provided.

Copy this file to

admin/includes/extra_datafiles/site_specific_admin_overrides.php

and customize to taste.

The following behaviors can be enabled or disabled by this file:

  • Enable/disable zcDate debug
  • The order display for images, tax display, etc.

Example: disable product images on packing slip and invoice:

$show_product_images = false;

Example: disable product images on invoice only:

if ($_GET['cmd'] == 'invoice') { 
   $show_product_images = false;
}

Information on the storefront site-specific overrides file is also available.




Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the Zen Cart support forum and ask there in the appropriate subforum. In your post, please include your Zen Cart and PHP versions, and a link to your site.

Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started. You can even PR right here.
Last modified June 4, 2022 by Scott C Wilson (bf75a0f).