Jump to content

rumbey

Members
  • Content count

    16
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Dave
  1. rumbey

    Header Tags for novices

    Hi Ken, I've look back at the begining of the thread and I don't have STS installed I do not have the following directory.. catalog/includes/modules/sts_inc/ Not sure where to go from here? Dave
  2. rumbey

    Header Tags for novices

    Hi, Just installing this and I've come to the mods in index.php and product_info.php. I cannot find the code mentioned to add or amend eg this is my product_info.php file: EDIT: I do have a file /catalog/templates/original/main_page.tpl.php that has my title and meta tags already detailed <?php /* $Id: product_info.php,v 1.2 2003/09/24 14:33:16 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); $content = CONTENT_PRODUCT_INFO; $javascript = 'popup_window.js'; require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Can anyone assist me? Regards David
  3. Hi, I have installed this great contribution but I get an error about resetting cart Fatal error: Call to undefined function: resetshoppingcart() in /usr/local/psa/home/vhosts/micros2u.co.uk/httpdocs/catalog/checkout_success.php on line 34 My code for checkout_success.php is below. do I remove the cart reset ($cart->reset(TRUE);) as per instructions even though its not at the top of the file? Other payment methods are fine code is: <?php /* $Id: checkout_success.php,v 1.2 2003/09/24 15:34:26 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); // if the customer is not logged on, redirect them to the shopping cart page if (!tep_session_is_registered('customer_id')) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) { $notify_string = 'action=notify&'; $notify = $HTTP_POST_VARS['notify']; if (!is_array($notify)) $notify = array($notify); for ($i=0, $n=sizeof($notify); $i<$n; $i++) { $notify_string .= 'notify[]=' . $notify[$i] . '&'; } if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1); tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string)); } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS); $breadcrumb->add(NAVBAR_TITLE_1); $paypalipn_query = tep_db_query("select o.orders_status,p.* from " . TABLE_ORDERS . " o LEFT JOIN " . TABLE_PAYPALIPN_TXN . " p on p.item_number = o.orders_id AND o.customers_id = '" . (int)$customer_id . "' order by o.date_purchased desc limit 1"); $paypalipn = tep_db_fetch_array($paypalipn_query); if ($paypalipn['ipn_result']=='VERIFIED') { if ($paypalipn['payment_status']=='Completed') { $NAVBAR_TITLE_2 = PAYPAL_NAVBAR_TITLE_2_OK; $HEADING_TITLE = PAYPAL_HEADING_TITLE_OK; $TEXT_SUCCESS = PAYPAL_TEXT_SUCCESS_OK; } else if ($paypalipn['payment_status']=='Pending') { $NAVBAR_TITLE_2 = PAYPAL_NAVBAR_TITLE_2_PENDING; $HEADING_TITLE = PAYPAL_HEADING_TITLE_PENDING; $TEXT_SUCCESS = PAYPAL_TEXT_SUCCESS_PENDING; }; $cart->reset(TRUE); } else if ($paypalipn['ipn_result']=='INVALID') { $NAVBAR_TITLE_2 = PAYPAL_NAVBAR_TITLE_2_FAILED; $HEADING_TITLE = PAYPAL_HEADING_TITLE_FAILED; $TEXT_SUCCESS = PAYPAL_TEXT_SUCCESS_FAILED; } else if ($paypalipn['orders_status']==99999) { $NAVBAR_TITLE_2 = PAYPAL_NAVBAR_TITLE_2_PENDING; $HEADING_TITLE = PAYPAL_HEADING_TITLE_PENDING; $TEXT_SUCCESS = PAYPAL_TEXT_SUCCESS_PENDING; } else { $NAVBAR_TITLE_2 = NAVBAR_TITLE_2; $HEADING_TITLE = HEADING_TITLE; $TEXT_SUCCESS = TEXT_SUCCESS; }; $breadcrumb->add($NAVBAR_TITLE_2); $global_query = tep_db_query("select global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'"); $global = tep_db_fetch_array($global_query); if ($global['global_product_notifications'] != '1') { $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1"); $orders = tep_db_fetch_array($orders_query); $products_array = array(); $products_query = tep_db_query("select products_id, products_name from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$orders['orders_id'] . "' order by products_name"); while ($products = tep_db_fetch_array($products_query)) { $products_array[] = array('id' => $products['products_id'], 'text' => $products['products_name']); } } $content = CONTENT_CHECKOUT_SUCCESS; $javascript = 'popup_window.js'; require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  4. rumbey

    Ebay auction manager for OSCOMMERCE

    Changed a setting in application_top and the problem has gone but created this error: Fatal error: Class messagestack: Cannot inherit from undefined class tableboxmessagestack in /usr/home/micros2u/public_html/catalog/includes/classes/message_stack.php on line 20 I' think it maybe due to auctionblox rements that I uninstalled? Any ideas? Dave
  5. rumbey

    Ebay auction manager for OSCOMMERCE

    Hi safoo, thanks for your reply. Do you mean check database_tables??? Dave
  6. rumbey

    Ebay auction manager for OSCOMMERCE

    Hi, Just installed Automated Auction Process v1.0. Done the mods and I get this error on main page: 1146 - Table 'micros2u_oscommerce.TABLE_TEMPLATE' doesn't exist select * from TABLE_TEMPLATE where template_name = 'Original' [TEP STOP] Also on Admin page I get this error: Warning: main(includes/classes/split_page_results.php): failed to open stream: No such file or directory in /usr/home/micros2u/public_html/catalog/admin/includes/application_top.php on line 154 Fatal error: main(): Failed opening required 'includes/classes/split_page_results.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /usr/home/micros2u/public_html/catalog/admin/includes/application_top.php on line 154 Can any body help. The sql Database TEMPLATE is definately present! One part of the upgrade that I couldn't do was the following: In /product_info.php. I couldn't find this line "<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;?>"> You are supposed to modify this line Any assistance greatly appreciated Dave
×