Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Toasted

Pioneers
  • Posts

    11
  • Joined

  • Last visited

Everything posted by Toasted

  1. Heres my code Line 101 //Having worked out if we have a new or existing user session lets record some details....! if ($existing_session) { //Existing tracked session, so just update relevant existing details $tracking_data = tep_db_fetch_array($result); $tracking_id = $tracking_data['tracking_id']; $products_viewed=$tracking_data['products_viewed']; $added_cart = $tracking_data['added_cart']; $completed_purchase = $tracking_data['completed_purchase']; $num_clicks = $tracking_data['num_clicks']+1; $categories_viewed = unserialize($tracking_data['categories_viewed']); $cart_contents = unserialize($tracking_data['cart_contents']); $cart_total = $tracking_data['cart_total']; $order_id = $tracking_data['order_id']; if (isset($customer_id)) $cust_id=$customer_id; else $cust_id=$tracking_data['customer_id']; $current_page=addslashes(tep_db_input(urldecode($_SERVER['PHP_SELF']))); $last_click = date('Y-m-d H:i:s'); Line 121 //Find out if the customer has added something to their cart for the first time Line 122 if (($added_cart!='true') && ($cart->count_contents()>0)) $added_cart = 'true'; //Has a purchase just been completed? if ((strstr($current_page, 'checkout_success.php'))&& ($completed_purchase!='true')) { $completed_purchase='true'; $order_q = "select orders_id from orders where customers_id = '" . $cust_id . "' ORDER BY date_purchased DESC"; $order_result = tep_db_query($order_q); if (tep_db_num_rows($order_result) > 0) { $order_row = tep_db_fetch_array($order_result); Line 131 $order_id = $order_row['orders_id']; } }
  2. Im getting the following error: Fatal error: Call to a member function count_contents() on a non-object in mysite.com/admin/includes/classes/supertracker.php on line 122 How do I fix this?
  3. I'm getting this error when I click on Catalog on the backend: Parse error: syntax error, unexpected '<', expecting ')' in site/admin/categories.php on line 349. 348 // check if the catalog image directory exists 349 if (is_dir(<td class="main"><?php echo TEXT_PRODUCTS_PRICE_GROSS)) { 350 if (!is_writeable(DIR_FS_CATALOG_IMAGES)) $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE, 'error'); 351 } else { 352 $messageStack->add(ERROR_CATALOG_IMAGE_DIRECTORY_DOES_NOT_EXIST, 'error'); } What seems to be the problem and how do I fix it? Thanks
  4. Thanks for the response. That did the trick. Thank you.
  5. I'm having trouble installing the under construction page to my store. I'm trying to follow this contribution instructions: http://addons.oscommerce.com/info/2424 It says to do the following: :thumbsup: insert to your mysql database with PHPMyADMIN or whatever you prefer this line: INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', '<b>Under Construction Pages</b>', 'UNDER_CONSTRUCTION_PAGES', 'account, advanced_search.php', 'Set the filenames of the files that will be under construction for the public, seperate them by \'<b>, </b>\' (without quotes)<br>Example:<br>checkout, advanced_search.php', 1, 100, NULL, now(), NULL, ''); INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Under Construction Pages<br><b>Admin IP</b>', 'ADMIN_ACCESS_IP', '0.0.0.0', 'This IP gives still access to the Locked Pages. Enter your IP address.', 1, 100, now(), now(), NULL, NULL); <_< I'm familar with how to upload databases using my myphpadmin, but I'm inexperienced when it comes to adding lines to the databases. Can someone do a quick step-by-step on how to insert the above in to my configuration file? I gave it a try, but failed... Basically what i did was logged into myphpadmin, clicked on configuration, clicked SQL, copied and paste the code above, and clicked Go. see attachment this is the error msg i received: Error SQL query: SELECT* FROM`configuration` WHERE 1 INSERTINTO configuration( configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function ) VALUES ( '','<b>Under Construction Pages</b>','UNDER_CONSTRUCTION_PAGES','account, advanced_search.php','Set the filenames of the files that will be under construction for the public, seperate them by \'<b>, </b>\' (without quotes)<br>Example:<br>checkout, advanced_search.php', 1, 100,NULL , now() ,NULL ,'' ); MySQL said: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO configuration (configuration_id, configuration_title, configuration_' at line 2
×
×
  • Create New...