Knowledgebase
Portal Home > Knowledgebase > Products do not show up in the cart when i add them to my oscommerce store, how do i fix this?
Products do not show up in the cart when i add them to my oscommerce store, how do i fix this?
| The reason for this is that you store is unable to either set a php session or a cookie for the end user. This can be caused by many reasons, but it is usually caused by the "session directory" setting in your admin panel being set to "/tmp" and your host has you locked into your home directory. Which means your hosting account does not have access to the servers /tmp directory.
To correct this issue:
1. first log into cpanel / Plesk / FTP and make sure a directory in /public_html (Cpanel) or /httpdocs (Plesk) called "sessions" exists. If it does not, create it. Make sure it has read and write permissions.
2. log into your stores admin panel, click "configuration" then click "sessions".
3. edit the "sessions directory" to be /home/"your ftp username"/public_html/sessions (for Cpanel) or /home/"your ftp username"/httpdocs/sessions (for Plesk).
If you are unable to log into your admin panel for the same reason, namely a session not being created, then you will need to modify the "sessions directory" field in the stores "configuration" table using a tool such as phpmyadmin.
You will know this is the case, as if you login and are immediately taken back to your login screen, your likely not having a session created. Though this will usually only affect you if running CRE or oscmax, since stock oscommerce does not use php sessions to store login details.
***Please verify with your host that the paths given are indeed the paths to your home directory as directory paths can be customized during plesk and cpanel installation and the above listed paths are for reference only.***
|
Add to Favourites
Print this Article
|