If your CS-Cart Add To Cart button isn’t working after installation, the problem may be caused by wrong file permissions. Follow these steps to repair the permissions.

The first step is to open your web browser’s error console. Error consoles may have different names and steps to open them, depending on which operating system and web browser you’re using. Use the table below to find out how to open the error console in common browsers

Name To open 
Mac OS X
Chrome  Developer Tools Console Command+Shift+J 
Firefox  Browser Console  Command+Shift+J 
Safari   Error Console  Command+Option+C
Note: In Safari, developer tools must be enabled before you can use the Error Console. Go to Safari > Preferences > Advanced and select Show Develop menu in menu bar. 
Windows
Chrome  Developer Tools Console Ctrl+Shift+J
Firefox  Browser Console  Ctrl+Shift+J 
Internet Explorer 9, 10, 11  Console  F12 
Edge  Console F12

With the error console open, click ADD TO CART on any item in your store. If you see an error in the console, the next step is to check the permissions on the js directory of your CS-Cart installation.

Log in to your HostPapa Dashboard and click My cPanel, then click File Manager.

Hosting Guides, Hosting Learning, Hosting Tutorials and Materials

In the cPanel File Manager directory tree, click the js directory in the root directory of your CS-Cart installation. In the Permissions column, check the permissions for the js directory and all of its files, subdirectories, and the files in the subdirectories. The directories (folders) should be 755 and files should be 644.

Hosting Guides, Hosting Learning, Hosting Tutorials and Materials

For each directory that is not 755, right-click it and select Change Permissions. In the Change Permissions dialog box, select the appropriate check boxes to apply 755 permissions. That is, the User has Read, Write, and Execute permissions, and Group and World both have Read and Execute permissions. After you’ve corrected the permissions on each directory, click Change Permissions.

Hosting Guides, Hosting Learning, Hosting Tutorials and Materials

For each file that is not 644, right-click it and select Change Permissions. In the Change Permissions dialog box, select the appropriate check boxes to apply 644 permissions. that is, the User has Read and Write permissions, and Group and World both have Read permissions. After you’ve corrected the permissions on each directory, click Change Permissions.

Hosting Guides, Hosting Learning, Hosting Tutorials and Materials

When the js directory and all of its subdirectories have 755 permissions and files have 644 permissions, try using the ADD TO CART button again. The problem should be fixed.

0 comments:

Post a Comment

Facebook

Popular Posts

Blog Archive

Total Pageviews