ZenCart FAQ (11 Articles)

How To Secure Zen Cart

In order to secure Zen Cart please follow these steps: 1. Download all your Zen Cart files 2. Create a backup in case something goes wrong later 3. Scan all the files with an antivirus software and delete the suspicious ones 4. Check manually for suspicious code in your files. If you have doubts about parts of the code, check the original Zen Cart files 5. Make sure there are no .php (.pl, .cgi) files in your images directory. Executable files are not supposed to be there under any circumstances. 6. Prevent access to any files different from  index.php in the main directory. For this purpose create the following .htaccess in the main directory: <Files *.php> deny from all </Files> <Files ~ "^index.php$"> allow from all </Files> 7. Once you perform the above steps upload your files to your webserver. 8. Make sure that your installation is the latest Zen Cart version. If not, upgrade it following the official instructions 10. Password protect your admin directory additionally or limit its access by IP. It's also required to change its name by following this steps on how to rename Zen Cart admin directory . 11. Disable the following functions in PHP: disable_functions =exec,passthru,shell_exec,proc_open,popen,curl_exec,curl_multi_exec Besides that, make sure that register_globals and allow_url_include are turned off. 12. Depending on your host and webserver try to find additional protection in mod_security rules or suhosin rules applicable to Zen Cart. The above steps might not be easy to follow and do not guarantee full protection. That's why it is recommend to seek professional help. If you are interested Siteground will be pleased to offer you its professional Zen Cart web hosting and security services.…

Rename Zen Cart Admin Directory

It is necessary to rename Zen cart admin directory in order to make it more secure. This can be easily done by opening your admin/includes/configure.php file. There find the lines:   define('DIR_WS_ADMIN', '/admin/'); ...   define('DIR_WS_HTTPS_ADMIN', '/admin/'); Change them to:   define('DIR_WS_ADMIN', '/GENERIC_NAME/'); ...   define('DIR_WS_HTTPS_ADMIN', '/GENERIC_NAME/'); Finally, rename your admin directory from 'admin' to GENERIC_NAME. Of course, you can set GENERIC_NAME to anything you'd like but try to avoid special characters. After that your Zen cart admin panel will be accessible at: http://example.org/GENERIC_NAME/ Please note that just renaming your admin directory is not enough to secure your Zen cart. The first place to ask for additional help is your web host. If you are looking for affordable and secure web hosting check Siteground Zen cart hosting offer.…

How to install a Zen Cart template?

In order to install a Zen Cart template, you need to upload the installation template package in the includes/ templates folder inside your Zen Cart installation  directory. Then you need to extract it. The easiest way to complete this is to use cPanel > File Manager . Once the template is uploaded and extracted, you should log in to the Zen Cart admin area. Once there, go to the Tools >Template Selection section. Click on the Edit button and select the new template from the drop-down menu. Click the Update button. Visit your Zen Cart main page, refresh it and check the result.…

How to reset the administrative password of Zen Cart

If you have lost the administrative password of your Zen Cart application and the password reset link is not working, you can directly reset the password in the database of your application. In order to do this, log in to your cPanel and open the phpMyAdmin tool in it. Then select your Zen Cart database and open the zen_admin table (note that the table prefix may be different). Then click the Browse button. On the next page, click on the little pen icon to edit the record for your administrator username. In the " admin_pass " field enter the following string: 351683ea4e19efe34874b501fdbf9792:9b This will reset the administrative password of your application to admin . You can now log in and change the password to a different, more secure one.…

How to optimize Zen Cart for better performance?

Zen Cart is one of the most popular free shopping cart applications currently available. Here are some tips on how to improve the performance of your Zen Cart shopping cart: Optimize your Zen Cart database .  Check your website using this online tool . It will give you valuable information on what modifications can be made in order to improve its performance.  Turn off Category Counts from the Zen Cart admin area > Config > My Store > Show Category Counts .  Install an additional optimization module such as this one .  Reduce the number of products shown on your main page. …

How to configure Zen Cart to work with a new domain?

In order to configure Zen Cart to work properly with another domain, you should modify the two configure.php files in includes/ and admin/includes/ folders to reflect the new domain. The settings that should be changed in includes/configure.php are: HTTP_SERVER - you should change this to your new domain name, e.g. http://newdomain.com: define('HTTP_SERVER', 'http://newdomain.com'); If you are using SSL you should also modify: HTTPS_SERVER - change this to: define('HTTPS_SERVER', 'https://newdomain.com'); In admin/includes/configure.php you should modify: HTTP_SERVER - you should change this to your new domain name, e.g. http://newdomain.com: define('HTTP_SERVER', 'http://newdomain.com'); HTTP_CATALOG_SERVER - again, this should be changed to your new domain name: define('HTTP_CATALOG_SERVER', 'http://newdomain.com'); If you are using SSL, you should also change: HTTPS_SERVER - change this to: define('HTTPS_SERVER', 'https://newdomain.com'); HTTPS_CATALOG_SERVER - change this to: define('HTTPS_CATALOG_SERVER', 'https://newdomain.com');…

How can I see the exact version of my ZenCart?

The version of your ZenCart can be seen from your ZenCart admin area > Tools > Server/Version Info . The data you see there is fetched from the following file, located in your ZenCart installation folder: includes/ version.php …

How to transfer my ZenCart from one host to another?

Transferring your ZenCart application includes copying your files and database and modifying the two configure.php files in includes/ and admin/includes/ folders to work with the new server settings. The most important settings which should be modified in includes/configure.php are: HTTP_SERVER - you should set this to your domain name, e.g. http://yourdomain.com: define('HTTP_SERVER', 'http://yourdomain.com'); DIR_WS_CATALOG - the relative path to your shop: define('DIR_WS_CATALOG', '/shop/'); DIR_FS_CATALOG - the absolute path to your shop, e.g. /home/user/public_html/shop/: define('DIR_FS_CATALOG', '/home/user/public_html/shop'); DB_SERVER - you should set this to localhost : define('DB_SERVER', 'localhost'); DB_SERVER_USERNAME - the username with privileges to access the shop database: define('DB_SERVER_USERNAME', 'user_zc1'); DB_SERVER_PASSWORD - the password for accessing the database: define('DB_SERVER_PASSWORD', 'zcpassword'); DB_DATABASE - the shop database: define('DB_DATABASE', 'user_zc1'); In admin/includes/configure.php , along with the settings above, you should also modify: DIR_WS_ADMIN - the relative path to the admin folder: define('DIR_WS_ADMIN', '/shop/admin/'); DIR_FS_ADMIN - the absolute path to the admin folder, e.g. /home/user/public_html/shop/admin/: define('DIR_FS_ADMIN', '/home/user/public_html/shop/admin/'); …

How to add a banner in Zen Cart?

You can easily add a banner to your Zen Cart shop from the Zen Cart admin area > Tools > Banner Manager > New Banner . The instructions are pretty straight-forward so you should have no problems adding the banner to your shop :)…

How to configure ZenCart to work with SSL?

For configuring ZenCart to work with SSL you have to modify the includes/ configure.php and admin/includes/ configure.php . More information on what changes should be made to these two files can be found in our tutorial .…

ZenCart Modules

Siteground offers tutorials for the installation of the following Zencart modules: PayPal: http://www.siteground.com/tutorials/zencart/zencart_paypal.htm Authorize.net: http://www.siteground.com/tutorials/zencart/zencart-authorize.htm …