Jump to content

Mark1

Members
  • Content count

    236
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Mark Dickson
  • Location
    Atlanta, Ga.
  1. Janet, I setup the database for you. I typed this into the browser: http://jaamor.com/catalog/links_setup.php Vj was kind enough to program the sql file into a page called links_setup.php. by typing that URL into the browser, the database is updated. I would STRONGLY recommend that you now remove that file as tje instructions state. :ph34r: Mark
  2. Thanks for the help VJ. Your suggestion about the upload file was right on. I ran into another problem... Fatal error: Call to undefined function: tep_validate_email() in /usr/local/apache_1.3.20/htdocs/host42/www/web/admin/links.php on line 83 This happens while trying to create a link in admin. Any ideas? Mark
  3. Thanks VJ. I will give this a shot and see what happens. If it works, we can hopefully satisfy those OSC'ers out there needing this for MS1. I will get back to you soon on the status. :D Thanks again! Mark
  4. P.S... I am running this on MS1. :P I dont know if this makes a difference, but it should be able to be modified to work on MS1. Thanks for any help! Mark
  5. I am getting an error after installing this contribution. The error happens when I try to create a new Link Category in Admin. From Admin>Link Categories>New category... When creating a new category, I fill in the appropriate boxes and designate the new icon for the category. Then, I click the save, I get the following: Fatal error: Cannot instantiate non-existent class: upload in /usr/local/apache_1.3.20/htdocs/host42/www/web/admin/link_categories.php on line 83 Here is my /admin/link_categories.php file: <?php /* $Id: link_categories.php,v 1.00 2003/10/02 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'); // define our link functions require(DIR_WS_FUNCTIONS . 'links.php'); $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); $error = false; $processed = false; if (tep_not_null($action)) { switch ($action) { case 'setflag': $status = tep_db_prepare_input($HTTP_GET_VARS['flag']); if ($status == '1') { tep_db_query("update " . TABLE_LINK_CATEGORIES . " set link_categories_status = '1' where link_categories_id = '" . (int)$HTTP_GET_VARS['cID'] . "'"); } elseif ($status == '0') { tep_db_query("update " . TABLE_LINK_CATEGORIES . " set link_categories_status = '0' where link_categories_id = '" . (int)$HTTP_GET_VARS['cID'] . "'"); } tep_redirect(tep_href_link(FILENAME_LINK_CATEGORIES, '&cID=' . $HTTP_GET_VARS['cID'])); break; case 'insert': case 'update': if (isset($HTTP_POST_VARS['link_categories_id'])) $link_categories_id = tep_db_prepare_input($HTTP_POST_VARS['link_categories_id']); $link_categories_sort_order = tep_db_prepare_input($HTTP_POST_VARS['link_categories_sort_order']); $link_categories_status = ((tep_db_prepare_input($HTTP_POST_VARS['link_categories_status']) == 'on') ? '1' : '0'); $sql_data_array = array('link_categories_sort_order' => $link_categories_sort_order, 'link_categories_status' => $link_categories_status); if ($action == 'insert') { $insert_sql_data = array('link_categories_date_added' => 'now()'); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); tep_db_perform(TABLE_LINK_CATEGORIES, $sql_data_array); $link_categories_id = tep_db_insert_id(); } elseif ($action == 'update') { $update_sql_data = array('link_categories_last_modified' => 'now()'); $sql_data_array = array_merge($sql_data_array, $update_sql_data); tep_db_perform(TABLE_LINK_CATEGORIES, $sql_data_array, 'update', "link_categories_id = '" . (int)$link_categories_id . "'"); } $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $link_categories_name_array = $HTTP_POST_VARS['link_categories_name']; $link_categories_description_array = $HTTP_POST_VARS['link_categories_description']; $language_id = $languages[$i]['id']; $sql_data_array = array('link_categories_name' => tep_db_prepare_input($link_categories_name_array[$language_id]), 'link_categories_description' => tep_db_prepare_input($link_categories_description_array[$language_id])); if ($action == 'insert') { $insert_sql_data = array('link_categories_id' => $link_categories_id, 'language_id' => $languages[$i]['id']); $sql_data_array = array_merge($sql_data_array, $insert_sql_data); tep_db_perform(TABLE_LINK_CATEGORIES_DESCRIPTION, $sql_data_array); } elseif ($action == 'update') { tep_db_perform(TABLE_LINK_CATEGORIES_DESCRIPTION, $sql_data_array, 'update', "link_categories_id = '" . (int)$link_categories_id . "' and language_id = '" . (int)$languages[$i]['id'] . "'"); } } if ($link_categories_image = new upload('link_categories_image', DIR_FS_IMAGES)) { tep_db_query("update " . TABLE_LINK_CATEGORIES . " set link_categories_image = '" . tep_db_input($link_categories_image->filename) . "' where link_categories_id = '" . (int)$link_categories_id . "'"); } tep_redirect(tep_href_link(FILENAME_LINK_CATEGORIES, '&cID=' . $link_categories_id)); break; case 'delete_confirm': if (isset($HTTP_POST_VARS['link_categories_id'])) { $link_categories_id = tep_db_prepare_input($HTTP_POST_VARS['link_categories_id']); $link_ids_query = tep_db_query("select links_id from " . TABLE_LINKS_TO_LINK_CATEGORIES . " where link_categories_id = '" . (int)$link_categories_id . "'"); while ($link_ids = tep_db_fetch_array($link_ids_query)) { tep_remove_link($link_ids['links_id']); } tep_remove_link_category($link_categories_id); } tep_redirect(tep_href_link(FILENAME_LINK_CATEGORIES)); break; default: $link_categories_query = tep_db_query("select lc.link_categories_id, lc.link_categories_image, lc.link_categories_status, lc.link_categories_sort_order, lc.link_categories_date_added, lc.link_categories_last_modified, lcd.link_categories_name, lcd.link_categories_description from " . TABLE_LINK_CATEGORIES . " lc left join " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd on lc.link_categories_id = lcd.link_categories_id where lcd.link_categories_id = lc.link_categories_id and lc.link_categories_id = '" . (int)$HTTP_GET_VARS['cID'] . "' and lcd.language_id = '" . (int)$languages_id . "'"); $link_categories = tep_db_fetch_array($link_categories_query); $links_count_query = tep_db_query("select count(*) as link_categories_count from " . TABLE_LINKS_TO_LINK_CATEGORIES . " where link_categories_id = '" . (int)$HTTP_GET_VARS['cID'] . "'"); $links_count = tep_db_fetch_array($links_count_query); $cInfo_array = array_merge($link_categories, $links_count); $cInfo = new objectInfo($cInfo_array); } } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" onload="SetFocus();"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><?php echo tep_draw_form('search', FILENAME_LINK_CATEGORIES, '', 'get'); ?> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td> <td class="smallText" align="right"><?php echo HEADING_TITLE_SEARCH . ' ' . tep_draw_input_field('search'); ?></td> </form></tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_NAME; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_STATUS; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td> </tr> <?php $search = ''; if (isset($HTTP_GET_VARS['search']) && tep_not_null($HTTP_GET_VARS['search'])) { $keywords = tep_db_input(tep_db_prepare_input($HTTP_GET_VARS['search'])); $search = " and lcd.link_categories_name like '%" . $keywords . "%'"; $link_categories_query_raw = "select lc.link_categories_id, lc.link_categories_image, lc.link_categories_status, lc.link_categories_sort_order, lc.link_categories_date_added, lc.link_categories_last_modified, lcd.link_categories_name, lcd.link_categories_description from " . TABLE_LINK_CATEGORIES . " lc left join " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd on lc.link_categories_id = lcd.link_categories_id where lcd.language_id = '" . (int)$languages_id . "'" . $search . " order by lc.link_categories_sort_order, lcd.link_categories_name"; } else { $link_categories_query_raw = "select lc.link_categories_id, lc.link_categories_image, lc.link_categories_status, lc.link_categories_sort_order, lc.link_categories_date_added, lc.link_categories_last_modified, lcd.link_categories_name, lcd.link_categories_description from " . TABLE_LINK_CATEGORIES . " lc left join " . TABLE_LINK_CATEGORIES_DESCRIPTION . " lcd on lc.link_categories_id = lcd.link_categories_id where lcd.language_id = '" . (int)$languages_id . "' order by lc.link_categories_sort_order, lcd.link_categories_name"; } $link_categories_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $link_categories_query_raw, $link_categories_query_numrows); $link_categories_query = tep_db_query($link_categories_query_raw); while ($link_categories = tep_db_fetch_array($link_categories_query)) { if ((!isset($HTTP_GET_VARS['cID']) || (isset($HTTP_GET_VARS['cID']) && ($HTTP_GET_VARS['cID'] == $link_categories['link_categories_id']))) && !isset($cInfo)) { $links_count_query = tep_db_query("select count(*) as link_categories_count from " . TABLE_LINKS_TO_LINK_CATEGORIES . " where link_categories_id = '" . (int)$link_categories['link_categories_id'] . "'"); $links_count = tep_db_fetch_array($links_count_query); $cInfo_array = array_merge($link_categories, $links_count); $cInfo = new objectInfo($cInfo_array); } if (isset($cInfo) && is_object($cInfo) && ($link_categories['link_categories_id'] == $cInfo->link_categories_id)) { echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_LINK_CATEGORIES, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->link_categories_id . '&action=edit') . '\'">' . "\n"; } else { echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_LINK_CATEGORIES, tep_get_all_get_params(array('cID')) . 'cID=' . $link_categories['link_categories_id']) . '\'">' . "\n"; } ?> <td class="dataTableContent"><?php echo $link_categories['link_categories_name']; ?></td> <td class="dataTableContent" align="right"> <?php if ($link_categories['link_categories_status'] == '1') { echo tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . ' <a href="' . tep_href_link(FILENAME_LINK_CATEGORIES, 'action=setflag&flag=0&cID=' . $link_categories['link_categories_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED_LIGHT, 10, 10) . '</a>'; } else { echo '<a href="' . tep_href_link(FILENAME_LINK_CATEGORIES, 'action=setflag&flag=1&cID=' . $link_categories['link_categories_id'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN_LIGHT, 10, 10) . '</a> ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10); } ?></td> <td class="dataTableContent" align="right"><?php if (isset($cInfo) && is_object($cInfo) && ($link_categories['link_categories_id'] == $cInfo->link_categories_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_LINK_CATEGORIES, tep_get_all_get_params(array('cID')) . 'cID=' . $link_categories['link_categories_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td> </tr> <?php } ?> <tr> <td colspan="4"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText" valign="top"><?php echo $link_categories_split->display_count($link_categories_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_LINK_CATEGORIES); ?></td> <td class="smallText" align="right"><?php echo $link_categories_split->display_links($link_categories_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'info', 'x', 'y', 'cID'))); ?></td> </tr> <tr> <?php if (isset($HTTP_GET_VARS['search']) && tep_not_null($HTTP_GET_VARS['search'])) { ?> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_LINK_CATEGORIES) . '">' . tep_image_button('button_reset.gif', IMAGE_RESET) . '</a>'; ?></td> <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_LINK_CATEGORIES, 'page=' . $HTTP_GET_VARS['page'] . '&action=new') . '">' . tep_image_button('button_new_category.gif', IMAGE_NEW_CATEGORY) . '</a>'; ?></td> <?php } else { ?> <td align="right" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_LINK_CATEGORIES, 'page=' . $HTTP_GET_VARS['page'] . '&action=new') . '">' . tep_image_button('button_new_category.gif', IMAGE_NEW_CATEGORY) . '</a>'; ?></td> <?php } ?> </tr> </table></td> </tr> </table></td> <?php $heading = array(); $contents = array(); switch ($action) { case 'new': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_LINK_CATEGORY . '</b>'); $contents = array('form' => tep_draw_form('new_link_categories', FILENAME_LINK_CATEGORIES, 'action=insert', 'post', 'enctype="multipart/form-data"')); $contents[] = array('text' => TEXT_NEW_LINK_CATEGORIES_INTRO); $link_category_inputs_string = ''; $languages = tep_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $link_category_inputs_string .= '<br>' . tep_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('link_categories_name[' . $languages[$i]['id'] . ']'); } $link_category_description_inputs_string = ''; for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $link_category_description_inputs_string .= '<br>' . tep_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' <br>' . tep_draw_textarea_field('link_categories_description[' . $languages[$i]['id'] . ']', 'soft', '40', '5'); } $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_NAME . $link_category_inputs_string); $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_DESCRIPTION . $link_category_description_inputs_string); $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_IMAGE . '<br>' . tep_draw_file_field('link_categories_image')); $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_SORT_ORDER . '<br>' . tep_draw_input_field('link_categories_sort_order', '', 'size="2"')); $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_STATUS . ' ' . tep_draw_radio_field('link_categories_status', 'on', true) . ' ' . TEXT_LINK_CATEGORIES_STATUS_ENABLE . ' ' . tep_draw_radio_field('link_categories_status', 'off') . ' ' . TEXT_LINK_CATEGORIES_STATUS_DISABLE); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_LINK_CATEGORIES) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'edit': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_LINK_CATEGORY . '</b>'); $contents = array('form' => tep_draw_form('edit_link_categories', FILENAME_LINK_CATEGORIES, 'action=update', 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('link_categories_id', $cInfo->link_categories_id)); $contents[] = array('text' => TEXT_EDIT_LINK_CATEGORIES_INTRO); $link_category_inputs_string = ''; $languages = tep_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $link_category_inputs_string .= '<br>' . tep_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('link_categories_name[' . $languages[$i]['id'] . ']', tep_get_link_category_name($cInfo->link_categories_id, $languages[$i]['id'])); } $link_category_description_inputs_string = ''; for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { $link_category_description_inputs_string .= '<br>' . tep_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' <br>' . tep_draw_textarea_field('link_categories_description[' . $languages[$i]['id'] . ']', 'soft', '40', '5', tep_get_link_category_description($cInfo->link_categories_id, $languages[$i]['id'])); } $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_NAME . $link_category_inputs_string); $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_DESCRIPTION . $link_category_description_inputs_string); $contents[] = array('text' => '<br>' . tep_info_image($cInfo->link_categories_image, $cInfo->link_categories_name) . '<br>' . $cInfo->link_categories_image); $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_IMAGE . '<br>' . tep_draw_file_field('link_categories_image')); $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_SORT_ORDER . ' ' . tep_draw_input_field('link_categories_sort_order', $cInfo->link_categories_sort_order, 'size="2"')); $contents[] = array('text' => '<br>' . TEXT_LINK_CATEGORIES_STATUS . ' ' . tep_draw_radio_field('link_categories_status', 'on', ($cInfo->link_categories_status == '1') ? true : false) . ' ' . TEXT_LINK_CATEGORIES_STATUS_ENABLE . ' ' . tep_draw_radio_field('link_categories_status', 'off', ($cInfo->link_categories_status == '0') ? true : false) . ' ' . TEXT_LINK_CATEGORIES_STATUS_DISABLE); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_LINK_CATEGORIES, 'cID=' . $cInfo->link_categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; case 'delete': $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_LINK_CATEGORY . '</b>'); $contents = array('form' => tep_draw_form('delete_link_categories', FILENAME_LINK_CATEGORIES, 'action=delete_confirm') . tep_draw_hidden_field('link_categories_id', $cInfo->link_categories_id)); $contents[] = array('text' => TEXT_DELETE_LINK_CATEGORIES_INTRO); $contents[] = array('text' => '<br><b>' . $cInfo->link_categories_name . '</b>'); if ($cInfo->link_categories_count > 0) $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_LINKS, $cInfo->link_categories_count)); $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_LINK_CATEGORIES, 'cID=' . $cInfo->link_categories_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'); break; default: if (isset($cInfo) && is_object($cInfo)) { $heading[] = array('text' => '<b>' . $cInfo->link_categories_name . '</b>'); $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_LINK_CATEGORIES, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->link_categories_id . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_LINK_CATEGORIES, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->link_categories_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>'); $contents[] = array('text' => '<br>' . tep_info_image($cInfo->link_categories_image, $cInfo->link_categories_name, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '<br>' . $cInfo->link_categories_image); $contents[] = array('text' => '<br>' . TEXT_INFO_LINK_CATEGORY_DESCRIPTION . ' ' . $cInfo->link_categories_description); $contents[] = array('text' => '<br>' . TEXT_DATE_LINK_CATEGORY_CREATED . ' ' . tep_date_short($cInfo->link_categories_date_added)); if (tep_not_null($cInfo->link_categories_last_modified)) { $contents[] = array('text' => '<br>' . TEXT_DATE_LINK_CATEGORY_LAST_MODIFIED . ' ' . tep_date_short($cInfo->link_categories_last_modified)); } $contents[] = array('text' => '<br>' . TEXT_INFO_LINK_CATEGORY_COUNT . ' ' . $cInfo->link_categories_count); $contents[] = array('text' => '<br>' . TEXT_INFO_LINK_CATEGORY_SORT_ORDER . ' ' . $cInfo->link_categories_sort_order); } break; } if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) { echo ' <td width="25%" valign="top">' . "\n"; $box = new box; echo $box->infoBox($heading, $contents); echo ' </td>' . "\n"; } ?> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Can anyone see what the problem is? P.S. I have my store on my root folder, it is not in the catalog folder Any help would be Appreciated!! Mark
  6. Iam not very familiar with this contribution. In fact, I was just browsing through this thread to see what sort of problems people were having with it. You are missing a "defines" statement. If you review the installation procedure, you will likely find that you needed to add at least one "defines" statement at install. Make sure all of them are present and in the correct file or folder. That should take care of your problem. Mark
  7. Mark1

    [Contribution] Ship In Cart

    GEEEZ!! If you put an item in the shopping cart, and are not logged in, you get an error " Please Log In, to display your personal shipping costs." This seems to be working properly. After you Log In, you are sent to the default.php page? Why doesnt it bring you back to the page with all the shipping information? Is this contrib buggy or do I have something installed wrong? Any help would be appreciated! Mark
  8. Mark1

    [Contribution] Ship In Cart

    Also, the update button does not work in the cart. Any help would be appreciated! Mark
  9. Mark1

    [Contribution] Ship In Cart

    I have MS1. I installed this contribution. Everything seems to work EXCEPT when I try to select another shippind mode. Upon pressing the select button, I am redirected to a page www.mydomain.com/_ . Does anyojne have any ideas? Thanks! Mark
  10. Mark1

    [Contribution] Ship In Cart

    Betty-Jo, You have loaded the Old version AND the new version. Here is how to fix it: go to /catalog/shopping_cart.php find: require("includes/application_top.php"); Remove under that line: // shipping cost require('includes/classes/http_client.php'); // shipping in basket if ($cart->count_contents() > 0) { if (!tep_session_is_registered('customer_id')) { $sendto = STORE_COUNTRY; }else{ $sendto = $customer_default_address_id; } require(DIR_WS_CLASSES . 'order.php'); $order = new order; if (!tep_session_is_registered('customer_id')) { $order->delivery['country']['id']=STORE_COUNTRY; } if($order->content_type !== 'virtual'){ $total_weight = $cart->show_weight(); $total_count = $cart->count_contents(); require(DIR_WS_CLASSES . 'shipping.php'); $shipping_modules = new shipping; $quotes = $shipping_modules->quote(); } } // eo shipping cost go to /catalog/shopping_cart.php find: <tr> <td align="right" class="main"> <b><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></b> </td> </tr> Remove under these lines: <!-- shipping cost --> <tr> <td class="main"> <?php if(sizeof($quotes)){ $ShipTxt='<table ><tr><td colspan="2" class="main"><b>'.SHIPPING_OPTIONS.'</b></td></tr>'; if (!tep_session_is_registered('customer_id')) { $ShipTxt.='<tr><td colspan="2" class="main">'.SHIPPING_OPTIONS_LOGIN.'</td></tr>'; } for ($i=0, $n=sizeof($quotes); $i<$n; $i++) { $ShipTxt.= '<tr>'; $ShipTxt.='<td class="main">'.$quotes[$i]['icon'].' </td>'; $ShipTxt.='<td class="main">'.$quotes[$i]['module'].' '; for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) { $ShipTxt.= $quotes[$i]['methods'][$j]['title'].'</td><td align="right" class="main">'.$currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])).'</td>'; } $ShipTxt.= '</tr>'; } $ShipTxt.= '</table>'; echo $ShipTxt; } ?> </td> </tr> <!-- eo shippiing cost --> ***** YOUR CODE MAY LOOK SLIGHTLY DIFFERENT BECAUSE OF UPDATES TO THIS MODULE. go to /catalog/includes/lanuages/english/shopping_cart.php at the end before the final ?> Remove these 2 statements: define('SHIPPING_OPTIONS', 'Shipping Options:'); define('SHIPPING_OPTIONS_LOGIN', '<i>Please log in ,to get your personal shipping costs.</i>'); I found that installing the Version 1.3 and then replacing the catalog/includes/modules/shipping_estimator.php file with the one from the latest version (1.7.2) works. Give this a shot! Mark
  11. Can someone help me with this please? Thank You, Mark
  12. This is not quite a total fix, but it is a big step in the right direction while I get the rest sorted out. I moved the temp file to the catalog/admin folder. Now I can at least Create a Complete tab-delimited .txt file in the temp dir. Then I can ftp it to my desktop for modification. It adds an extra step, but it is far better than adding 300 + items by hand. :P Thanks for the idea Deborah! I will get with my host in the morning to try and sort out the rest. Mark
  13. I am trying to use easy populate after an SSL certificate installation. I installed easy populate before the SSL cert. was installed, and it worked perfectly. Now, when I try to download a Complete tab-delimited .txt file (or any of the other files for that matter) to edit, I get this error: I have tried for a couple of weeks. I dont think waiting will resolve this problem. :lol: I am certain I have the correct path set as the $temp variable in the setup. I have set the permissions to 777 in my catalog/temp folder. Any help on this would be appreciated. I hope I wont have to add items the old fashioned way. Thanks! Mark
  14. Something is not clear to me. Maybe I am a little dense :lol: I have products that range from 1 lb to 200 lbs. I have a UPS account that I use to ship everything up to their maximum. (I think this is 75 lbs, but I know they have a maximum they will handle). I want to use UPS as my primary carrier. I have a module installed that collects shipping charges from UPS and displays them at checkout. I am looking for a module that will allow me to over ride the UPS option and FORCE the customer to choose the alternative shipper for any items over the maximum weight for UPS. I do not mind entering the heavy items manually as there are only about 10 items like this in my store. Can you tell me which contribution will be best suited for this purpose? Thank You! Mark
  15. I am trying to use easy populate after an SSL certificate installation. I installed easy populate before the SSL cert. was installed, and it worked perfectly. Now, when I try to download a Complete tab-delimited .txt file to edit, I get this error: I have tried for a couple of weeks. I dont think waiting will resolve this problem. :shock: I am certain I have the correct path set as the $temp variable in the setup. I have set the permissions to 777 in my catalog/temp folder. Any help on this would be appreciated. I hope I wont have to add items the old fashioned way. :twisted: Thanks! Mark
×