Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add to cart not working


swestcott

Recommended Posts

Posted

I have done a search for similiar problems and tried suggestions but nothing seems to work. I can't add a product to my shopping cart. When I click Add To Cart nothing happens. I've been doing a lot of customization and I thought I broke something. So I installed a fresh oscommerce store and it does not add to cart either.

 

The original store is https://www.kirstendixon.com/shop. There are items in the Kitchen section.

 

The new fresh install is https://www.kirstendixon.com/catalog. This is the store with all the default products and layout.

 

My configure.php file:

define('HTTP_SERVER', 'https://www.kirstendixon.com');

define('HTTPS_SERVER', 'https://www.kirstendixon.com');

define('ENABLE_SSL', 'true');

define('HTTP_COOKIE_DOMAIN', 'www.kirstendixon.com');

define('HTTPS_COOKIE_DOMAIN', 'www.kirstendixon.com');

define('HTTP_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_WS_HTTPS_CATALOG', '/shop/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

define('STORE_SESSIONS', 'mysql');

 

And my sessions settings:

Session Directory /tmp

Force Cookie Use False Info

Check SSL Session ID False Info

Check User Agent False Info

Check IP Address False Info

Prevent Spider Sessions False Info

Recreate Session False Info

 

 

Any help is very much appreciated!

Posted

Set all the 'https' to 'http' and set 'enable_ssl' to 'false', because you haven't got a full ssl cert installed. If you did I would not be seeing a warning pop-up on my screen. This warning pop-up does not give me the name (domain) of an ssl cert, either shared or full, it just gives the name of your control panel 'Plesk'.

 

Even when you have purchased and installed a full ssl you are making it difficult for your customers by placing all of the site behind ssl. Leave the http pathways to http and just set the https pathway. osCommerce then decides which parts of your shop need to be behind the ssl cert and which don't. SSL pages are all encrypted and therefore take longer to load, so by making all of your site ssl you are going to slow it right down. By all means force all of your website's 'admin' folder behind ssl for protection - but you don't need all of your retail site on it.

 

Vger

Posted

OK, I've got my site in my httpdoc directory now and can add an item to my shopping cart but as soon as I go anywhere else on the site my cart is emptied. I've done more research and found that there is/was a problem with oscommerce and php 4.3.2. That is the php version on my server.

 

Has there been a fix for this yet? Anything I can try?

 

Thanks for any advice.

 

Shannon

  • 2 months later...
Posted
I've done more research and found that there is/was a problem with oscommerce and php 4.3.2.  That is the php version on my server.

 

Has there been a fix for this yet?  Anything I can try?

 

 

Shannon:

How did this ever turn out for you? I'm having almost the same problem (can't add items to cart at all) and nothing I've found in the forums have helped - am wondering if my php version my be the culprit.

Brooke

  • 2 weeks later...
Posted

I also can't add a product to my shopping cart. When I click Add To Cart nothing happens. What is the fix??? Have also changed my https: to http: but no change

 

 

My site is www.finecomputersystems.com.au

 

Help....Help...does anyone have a solution???!!! :(

Posted

Malcolm:

I never heard about what may have solved the problem for others in this thread, but ultimately my problem turned out to be simple. It was the problem that is encountered by many during the Osc installation relating to the register globals on or off thing. I do not have my notes and manual pages handy to quote it exactly, and have not the time to search it up real quick, but do a search or ask about it in the installation category on these forums and see if the fix for that helps you with THIS at all. Good Luck!

Brooke

Posted
Malcolm:

I never heard about what may have solved the problem for others in this thread, but ultimately my problem turned out to be simple.  It was the problem that is encountered by many during the Osc installation relating to the register globals on or off thing.  I do not have my notes and manual pages handy to quote it exactly, and have not the time to search it up real quick, but do a search or ask about it in the installation category on these forums and see if the fix for that helps you with THIS at all.  Good Luck!

Brooke

 

[Reply=mal_f, Mar 12 2005, 1:08 AM]

Thanks Brook,

I just couldn't fix it so I did a reinstall which fixed it, luckely my sit eis relativly new and there weren't too many files and folders to replace. I am very new to ohp but am comming along quite well with it - well the html side of it anyway. I have found it quite easy to customise the site, stylesheets etc. however am totaly baffeled by the random disply order thing??!! I'll put a new thread in for that question.

Thanks

Mal

[/Reply]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...