stouffer Posted December 21, 2004 Posted December 21, 2004 I'm trying to include a small shopping cart box of every page of my web site. Even those outside of OSC. I've used 'CONTENT OUTSIDE OF OSC V1.1' above the <html> tag <?php $cwd=getcwd(); chdir('/home/stoufer/stoufer-tech.com/diagmed/catalog/'); //need all of application_top's configurations and includes; NO OUTPUT ABOVE THIS POINT! include('includes/application_top.php'); //need the language file require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCTS_NEW); ?> then in the <body> section I have <?php require(DIR_WS_BOXES . 'shopping_cart.php'); chdir($cwd); ?> This seems to work, but always says that I have 0 items in the cart. It appears that the variable $customer_id is either blank or null at this point. How does this variable get populated with the customer ID? Is this the problem? Is there another solution other than what I am trying? --Peter
Recommended Posts
Archived
This topic is now archived and is closed to further replies.