Skip to content

Instantly share code, notes, and snippets.

@mjc
Created July 20, 2010 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjc/482695 to your computer and use it in GitHub Desktop.
Save mjc/482695 to your computer and use it in GitHub Desktop.
// THIS IS A HACK
$value_query = tep_db_query("select value from " . TABLE_SESSIONS . " where sesskey = '" . tep_db_input($HTTP_COOKIE_VARS['osCsid']) . "' and expiry > '" . time() . "'");
$fakecart = preg_replace("/^\w+\|(.+)$/","$1",tep_db_fetch_array($value_query));
$cart = new shoppingCart;
$cart->unserialize($fakecart);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment