Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Add to Cart not working


1 reply to this topic

#1 mrxt10

  • Community Member
  • 1 posts
  • Real Name:Robin

Posted 02 March 2011, 02:46

Hi there,

I've been working on a RC2a installation, with a few contributions already installed. The setup works properly on my WAMP test server at home. However, there is an issue with the live site where I cannot add any items to the shopping cart, both through "Add to Cart" and "Buy Now" buttons.

One thing that I noticed is that in my WAMP installation, whenever I select links to items etc., the osCsid would always be appended to the end of the url (eg. product_info.php?products_id=28&osCsid=gv6dioplp7uvfd91t03f9q82t4). This doesn't occur in the live site.

The correct cookie is being written by the live site.
Name	osCsid
Value	feb0f3c39bd9360db043a55492034beb
Host	.inseam.com.au
Path	/shop/
Secure	No
Expires	At End Of Session

The relevant configure.php sections are as follows:
  define('HTTP_SERVER', 'http://inseam.com.au');
  define('HTTPS_SERVER', 'http://inseam.com.au');
  define('ENABLE_SSL', false);
  define('HTTP_COOKIE_DOMAIN', 'inseam.com.au');
  define('HTTPS_COOKIE_DOMAIN', 'inseam.com.au');
  define('HTTP_COOKIE_PATH', '/shop/');
  define('HTTPS_COOKIE_PATH', '/shop/');
  define('DIR_WS_HTTP_CATALOG', '/shop/');
  define('DIR_WS_HTTPS_CATALOG', '/shop/');

The live site is at http://www.inseam.com.au/shop/

Does anyone have a clue as to what's causing the problem?

Cheers,
Robin

Edited by mrxt10, 02 March 2011, 02:47.


#2 clarocque

  • Community Member
  • 559 posts
  • Real Name:Chris
  • Location:VT/USA

Posted 03 March 2011, 05:12

Try
define('HTTP_COOKIE_DOMAIN', '.inseam.com.au');
define('HTTPS_COOKIE_DOMAIN', '.inseam.com.au');
osC Contributions I have published.

Note: Some I only provided minor changes, updates or additions!