Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dbznss

Pioneers
  • Posts

    8
  • Joined

  • Last visited

Posts posted by dbznss

  1.  

    ^bump?

     

    Heres what I'm seeing.

     

    seo-urls.gif

     

    I did a database restore recently and noticed that there were no options available in the admin panel. I have gone through all the installation instructions and I did have to re-upload some of the files in the upload directory. However, I'm 100% sure that all pages are modified correctly, and all proper files are uploaded. Maybe it's not adding the proper SQL into my database, since it was already implemented and then restored to an earlier version?

  2. I have it installed and I'm not sure if it's actually working. I am able to use the site and admin panel properly, but I don't have any options in the admin panel. Could this be due to the fact that I have renamed my admin directory? If not what could it be?

     

    Thanks, Brandon

     

    ^bump?

     

    Heres what I'm seeing.

     

    seo-urls.gif

  3. I have it installed and I'm not sure if it's actually working. I am able to use the site and admin panel properly, but I don't have any options in the admin panel. Could this be due to the fact that I have renamed my admin directory? If not what could it be?

     

    Thanks, Brandon

  4. I would like to move the Product Attributes into one of the tabs. I have tried using functions and array. Yet it just seems to disappear once I move the code inside of one of the tabs. Here is the code I have selected on the product_info.php page. Any help would be greatly appreciated. Viewable here http://hughesauctions.net/product_info.php/1964-silver-quarter-and-half-dollar-p-35#!tab1

     

    <?php

    $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");

    $products_attributes = tep_db_fetch_array($products_attributes_query);

    if ($products_attributes['total'] > 0) {

     

    echo '<p>' . TEXT_PRODUCT_OPTIONS;

    echo '</p><p>';

     

    $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");

     

    while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {

    $products_options_array = array();

    $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");

     

    while ($products_options = tep_db_fetch_array($products_options_query)) {

    $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);

    if ($products_options['options_values_price'] != '0') {

    $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';

    }

    }

     

    if (is_string($HTTP_GET_VARS['products_id']) && isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {

    $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];

    } else {

    $selected_attribute = false;

    }

     

    echo '<strong>' . $products_options_name['products_options_name'] . ':';

    echo '</strong><br />' . tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute);

    echo '<br />';

     

    }

     

    echo '</p>';

     

    }

     

    echo '<div style="clear: both;"></div>';

     

    if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

     

    echo '<p style="text-align: center;">'. sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])).'</p>';

     

    }

    ?>

  5. Thank you Jack,

     

    I made those changes as suggested, but it caused the following error.

     

    1054 - Unknown column 'c.categories_status' in 'where clause'

     

    select categories_htc_title_tag from categories_description where c.categories_status = '1' and cd.categories_id = '1' and language_id = '1' LIMIT 1

     

    [TEP STOP]

     

     

    Here is the modified code

     

    /*** Begin Header Tags SEO ***/

    // add category names or the manufacturer name to the breadcrumb trail

    if (isset($cPath_array)) {

    for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) {

    $categories_query = tep_db_query("select categories_htc_title_tag from " . TABLE_CATEGORIES_DESCRIPTION . " where c.categories_status = '1' and cd.categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "' LIMIT 1");

    if (tep_db_num_rows($categories_query) > 0) {

    $categories = tep_db_fetch_array($categories_query);

    $breadcrumb->add($categories['categories_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1)))));

    } else {

    break;

    }

    }

    } elseif (isset($_GET['manufacturers_id'])) {

    $manufacturers_query = tep_db_query("select manufacturers_htc_title_tag from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' AND languages_id = '" . (int)$languages_id . "' LIMIT 1");

    if (tep_db_num_rows($manufacturers_query)) {

    $manufacturers = tep_db_fetch_array($manufacturers_query);

    $breadcrumb->add($manufacturers['manufacturers_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $_GET['manufacturers_id']));

    }

    }

     

    // add the products name to the breadcrumb trail

    if (isset($_GET['products_id'])) {

    //$model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . "

    // BOF Enable & Disable Categories

    $products_query = tep_db_query("select pd.products_head_title_tag from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on p.products_id = p2c.products_id left join " . TABLE_CATEGORIES . " c on p2c.categories_id = c.categories_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where c.categories_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_id = pd.products_id");

    // EOF Enable & Disable Categories

    if (tep_db_num_rows($products_query)) {

    $products = tep_db_fetch_array($products_query);

    $breadcrumb->add($products['products_head_title_tag'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));

    }

    }

    /*** End Header Tags SEO ***/

  6. I know there have been a few posts on this topic before, but without prevail. It seems that there has not been an answer to this question.

     

    Header Tags SEO and Enable/Disable Categories have a conflict in includes/application_top.php.

     

    I am an intermediate at PHP, yet I can't seem to figure this one out. I have tried multipe variations, the closest results, stretched the products, distorting the index page, and also showing top category images. I know that there has to be a way to merge the two conflicting queries, either with one MySQL query or a PHP array that merges the two querys. To make it a little easier to read, basically I need to merge the red with the green.

     

    Thank you, Brandon

     

    ************************************************************************************************************************

    // add category names or the manufacturer name to the breadcrumb trail

    if (isset($cPath_array)) {

    for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) {

    // BOF Enable & Disable Categories

    $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " cd left join " . TABLE_CATEGORIES . " c on cd.categories_id = c.categories_id where c.categories_status = '1' and cd.categories_id = '" . (int)$cPath_array[$i] . "' and cd.language_id = '" . (int)$languages_id . "'");

    // EOF Enable & Disable Categories

    if (tep_db_num_rows($categories_query) > 0) {

    $categories = tep_db_fetch_array($categories_query);

    $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1)))));

    } else {

    break;

    }

    }

     

    ***************

    /*** Begin Header Tags SEO ***/

    // add category names or the manufacturer name to the breadcrumb trail

    if (isset($cPath_array)) {

    for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) {

    $categories_query = tep_db_query("select categories_htc_title_tag from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "' LIMIT 1");

    if (tep_db_num_rows($categories_query) > 0) {

    $categories = tep_db_fetch_array($categories_query);

    $breadcrumb->add($categories['categories_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1)))));

    } else {

    break;

    }

    }

    **************************************************************************************************************************

    } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) {

    $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");

    if (tep_db_num_rows($manufacturers_query)) {

    $manufacturers = tep_db_fetch_array($manufacturers_query);

    $breadcrumb->add($manufacturers['manufacturers_name'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id']));

    }

    }

    ***************

    } elseif (isset($_GET['manufacturers_id'])) {

    $manufacturers_query = tep_db_query("select manufacturers_htc_title_tag from " . TABLE_MANUFACTURERS_INFO . " where manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' AND languages_id = '" . (int)$languages_id . "' LIMIT 1");

    if (tep_db_num_rows($manufacturers_query)) {

    $manufacturers = tep_db_fetch_array($manufacturers_query);

    $breadcrumb->add($manufacturers['manufacturers_htc_title_tag'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $_GET['manufacturers_id']));

    }

    }

    ***************************************************************************************************************************

    // add the products model to the breadcrumb trail

    if (isset($HTTP_GET_VARS['products_id'])) {

    // BOF Enable & Disable Categories

    $model_query = tep_db_query("select p.products_model from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on p.products_id = p2c.products_id left join " . TABLE_CATEGORIES . " c on p2c.categories_id = c.categories_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd where c.categories_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.products_id = pd.products_id");

    // EOF Enable & Disable Categories

    if (tep_db_num_rows($model_query)) {

    $model = tep_db_fetch_array($model_query);

    $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id']));

    }

    }

    ****************

    // add the products name to the breadcrumb trail

    if (isset($_GET['products_id'])) {

    $products_query = tep_db_query("select pd.products_head_title_tag from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_id = '" . (int)$_GET['products_id'] . "' and pd.language_id ='" . (int)$languages_id . "' LIMIT 1");

    if (tep_db_num_rows($products_query)) {

    $products = tep_db_fetch_array($products_query);

    $breadcrumb->add($products['products_head_title_tag'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $_GET['products_id']));

    }

    }

    /*** End Header Tags SEO ***/

×
×
  • Create New...