The 'Add to cart' button does not work after CS-Cart installation

Check Error Console of your browser. If there are some errors after you click on the Add to cart button:

  1. Check permissions for the classes directory of your CS-Cart installation, all its subdirectories and files. It should have readable permissions in order that JavaScript functions work properly.
    To set up the permissions:
    • On a Unix-based server with terminal access to it use the following command:
      chmod -R 755 classes
    • If you do not have terminal access to your server change file access permissions using an FTP client. Most of them have the Change permissions or Change mode functions. With the help of these functions you are able to set the necessary permissions. The chmod -R 755 classes command means that you must set 755 permissions (in other words, read, write and execute permissions for the file user and read and write ones for the user group and others) for the directory, its subdirectories and all the files under these directories. Refer to your FTP client documentation for more detailed instructions on setting file permissions.
      NOTE: Contact your hosting support team for the information about proper permissions for PHP files and directories.
    • On a WINDOWS-based server give readable permissions for the files and directories to the user with the IUSER_ComputerName account.
  2. Check whether there is a default CS-Cart .htaccess file in the classes directory.
  3. The problem can be caused by that some directives of the CS-Cart .htaccess file are not supported by your web server.
    1. Try to rename the .htaccess file located in the classes directory of your CS-Cart installation to something else. If the Add to cart button works properly after that, contact your server administrator, provide him with the content of the CS-Cart .htaccess file and ask him to let you know what directives are not supported on your server.

Noticed an error in the article or it is not clear enough? Any suggestions to improve it? Please let us know by filling in the feedback form. Click here.