Pagina 1 di 1

Seo header tags 4 su Os Wai

Inviato: 16/04/2009, 15:27
da LaCate
Ciao a tutti !
Come "minacciato" stamattina eccomi qua con qualche domanda da imbranata.
Sto installando la contrib in oggetto e ho per il momento due problemi:
1) quando le istruzioni dicono "Now, go to your osCommerce Home page, click a category or product. This will add 3 new fields to the tables of products_description and categories_description in the database." L'unica differenza che noto è che nel menu di sinistra, sotto la voce catalogo sono apparse due nove voci "BOX_CATALOG_HEADER_TAGS_EDIT
BOX_CATALOG_HEADER_TAGS_CATEGORY_EDIT"
e se ci clicco sopra mi vien fuori un errore che dice: "The requested URL /admin/FILENAME_HEADER_TAGS_CATEGORY_EDIT was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."
RISOLTO ! :D

2) il secondo problema riguarda una modifica a index.php che non riesco a fare perchè non trovo il testo nel file. Le istruzioni dicono di trovare <title><?php echo TITLE; ?></title> (che non trovo) e di sostituire con il testo che mi indicano. Ho lo stesso problema per il file product_info.php.

che ho combinato ? :oops: intanto mi riguardo tutti i passaggio che ho fatto... devo aver certamente cannato qualcosa.
grazie in anticipo a quanti vorranno aiutarmi.

EDIT: ho notato che il file application_top che ho ha $_GET anzichè HTTP_GET_VARS. Il pezzo di codice che ho inserito come da istruzioni ha quel comando. va bene lo stesso o devo fare un "cerca e sostituisci" ?
RISOLTO :D

Re: Seo header tags 4 su Os Wai

Inviato: 16/04/2009, 16:10
da LaCate
Allora..
ho sistemato le cretinate che avevo fatto durante l'installazione. :?
adesso le voci nel menu a sinistra appaiono in modo corretto e cliccandoci sopra l'errore che compare è diverso :shock: mi dice:
Accesso Negato
Permessi di Accesso non giusti
Contatta il tuo Amministratore WEB per chiedere
accesso o per risolvere ogni problema.


Rimane il problema che non trovo <title><?php echo TITLE; ?></title> nè in index.php nè in products_info.php

io continuo a smanettare... :mrgreen:

Re: Seo header tags 4 su Os Wai

Inviato: 16/04/2009, 16:27
da dynamo
il primo problema lo devi risolvere "abilitando" il tuo admin a visionare quei file e lo risolvi andando su Amministratore (cmq la prima voce) --> File di Accesso --> Header_tags_seo (si dovrebbe essere creata da sola --> poi dal menu a tendina selezioni i vari file e fai salva, li devi salvare tutti.

mentre il secondo prova a cercare solo <title> e vedi com'è la struttura html e una volta trovato procedi con l'installazione

Re: Seo header tags 4 su Os Wai

Inviato: 16/04/2009, 16:35
da LaCate
Ciao !! Grazie per esser qui a sopportarmi !!
oh ok...
sotto Admin "boxes" menu
non ci sono le voci di header tags...
le voci sono:
Administrator
Catalog
Configuration
Customers
Gv_admin
Information
Localization
Modules
Reports
Taxes
Tools
RISOLTO :mrgreen:

Per il secondo problema ho provato a fare la ricerca ma proprio quel testo non c'e'.... :?:

Re: Seo header tags 4 su Os Wai

Inviato: 16/04/2009, 18:51
da LaCate
duuunque
ho scoperto che l'unico file index.php che aveva il testo:
<title><?php echo TITLE; ?></title>
stava nella directory /admin
(e l'ho modificato come da istruzioni)
e in teoria nella stessa directory dovrebbe esserci il file products_info.php ma non c'e' :evil:
in realtà non esiste alcun file productS_info ma ce ne sono 3 che si chiamano product_info.php (errore di battitura nelle istruzioni ?)
ho verificato tutti e tre i file e quel testo da sostituire proprio non c'e'.
ora sono in panne.
credo che questo sia l'unico problema non risolto.... :|

Re: Seo header tags 4 su Os Wai

Inviato: 16/04/2009, 19:48
da dynamo
non ho sotto mano la contributions poi guardo meglio ma nelle istruzioni ti dice dove devi modificare se non c'è scritto admin/index.php ma solo index.php è quello lato catalogo

Re: Seo header tags 4 su Os Wai

Inviato: 17/04/2009, 13:28
da LaCate
niente da fare..
ho cercato ovunque ma proprio l'ultima modifica prevista nelle istruzioni non riesco a farla...
non c'e' traccia della stringa <title><?php echo TITLE; ?></title>
in product_info.php
:?:
qualcuno può darmi qualche dritta ? (diversa da quella di lasciar fare a chi ne capisce di più :lol: )
assieee

Re: Seo header tags 4 su Os Wai

Inviato: 17/04/2009, 17:59
da dynamo
ti passo il mio codice magari ti è d'aiuto

product_info.php

Codice: Seleziona tutto

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?php
//begin dynamic meta tags query -->
?>
<title><?php echo $the_product_name; ?> - <?php echo TITLE ?></title>
<meta name="keywords" content="<?php echo TITLE ?>, <?php echo $the_product_name; ?>, <?php echo $the_product_model; ?>, <?php echo $the_manufacturers['manufacturers_name']; ?>">
<meta name="description" content="<?php echo $the_product_description . "," . $the_product_name; ?>">
<?php
//end dynamic meta tags query -->
?>
<link rel="stylesheet" type="text/css" href="stylesheet.css">

index.php

Codice: Seleziona tutto

<!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; ?>"> 
<?php
ob_start();
if($page_title == strip_tags(TITLE, ""))  { 
?>
<title><?php echo $page_title; ?></title>
<?php  
} else {
?>
<title><?php echo $page_title . ' - ' . strip_tags(TITLE, ""); ?></title>
<?php
}
$preventDuplicates->checkTarget(ob_get_clean());
echo $preventDuplicates->finalMeta . "\n";
?>

Re: Seo header tags 4 su Os Wai

Inviato: 17/04/2009, 19:55
da LaCate
:shock:
io non capisco niente di niente ma non vedo grosse somiglianze tra i nostri index.php
il mio index.php:

Codice: Seleziona tutto

<?php
/*
  $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2007 osCommerce

  Released under the GNU General Public License
*/

require('includes/application_top.php');

// the following cPath references come from application_top.php
  $category_depth = 'top';
  if (isset($cPath) && tep_not_null($cPath)) {
    $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
    $cateqories_products = tep_db_fetch_array($categories_products_query);
    if ($cateqories_products['total'] > 0) {
      $category_depth = 'products'; // display products
    } else {
      $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");
      $category_parent = tep_db_fetch_array($category_parent_query);
      if ($category_parent['total'] > 0) {
        $category_depth = 'nested'; // navigate through the categories
            } else {
        $category_depth = 'products'; // category has no products, but display the 'no products' message
      }
    }
//get current category tags when a category is selected
    $cat_tags_query = tep_db_query("SELECT categories_name, title_tag, desc_tag, keywords_tag FROM " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$current_category_id . "' AND language_id = '" . (int)$languages_id . "'");
    $cat_tags = tep_db_fetch_array($cat_tags_query);
    $categories_name = $cat_tags['categories_name'];
    $_tag = $cat_tags['title_tag'];
    $desc_tag = $cat_tags['desc_tag'];
    $keywords_tag = $cat_tags['keywords_tag'];
//set default
    $kws_home_default = $categories_name;
    $desc_home_default = $categories_name;
    $title_home_default = $categories_name;
  } else {
    //no category is selected: randomly select category names as keywords
      $cat_names_query = tep_db_query("SELECT categories_name FROM " . TABLE_CATEGORIES_DESCRIPTION . " WHERE language_id = '" . (int)$languages_id . "'" . " ORDER BY RAND()");
      $kws_home_default = "";
      $num_rows = tep_db_num_rows($cat_names_query);
      if ($num_rows > 20){
        $i = rand(1,$num_rows);
        for ($count = $i; $count < $i + 20; $count++) {
            $cat_names = tep_db_fetch_array($cat_names_query);
            $kws_home_default .= $cat_names['categories_name'] . ', ';
        }
      } else {
          while ($cat_names = tep_db_fetch_array($cat_names_query)){
            $kws_home_default .= $cat_names['categories_name'] . ', ';
          }
      }
//default title tag for the index (home) page
    $title_home_default = "Karitè per caso by Etnolove";
//default keywords for the index (home) page
    $kws_home_default .= STORE_NAME;
//default Description for the index (home) page
    $desc_home_default = "Cosmesi ed artigianato eco-equo-bio-solidale dal mondo";
  }


  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);


  if ($category_depth == 'nested') {
    $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
    $category = tep_db_fetch_array($category_query);


    $content = basename($_SERVER['PHP_SELF']);
    while (strstr($content, '.php')) $content = str_replace('.php', '', $content);
    $content .= '_nested';
   // $content = CONTENT_INDEX_NESTED;

  } elseif ($category_depth == 'products' || isset($_GET['manufacturers_id'])) {
// create column list
    $define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
                         'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
                         'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
                         'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
                         'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
                         'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
                         'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,
                         'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);

    asort($define_list);

    $column_list = array();
    reset($define_list);
    while (list($key, $value) = each($define_list)) {
      if ($value > 0) $column_list[] = $key;
    }

    $select_column_list = '';

    for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
      switch ($column_list[$i]) {
        case 'PRODUCT_LIST_MODEL':
          $select_column_list .= 'p.products_model, ';
          break;
        case 'PRODUCT_LIST_NAME':
          $select_column_list .= 'pd.products_name, ';
          break;
        case 'PRODUCT_LIST_MANUFACTURER':
          $select_column_list .= 'm.manufacturers_name, ';
          break;
        case 'PRODUCT_LIST_QUANTITY':
          $select_column_list .= 'p.products_quantity, ';
          break;
        case 'PRODUCT_LIST_IMAGE':
          $select_column_list .= 'p.products_image, ';
          break;
        case 'PRODUCT_LIST_WEIGHT':
          $select_column_list .= 'p.products_weight, ';
          break;
      }
    }

    //TotalB2B start
// show the products of a specified manufacturer
    if (isset($_GET['manufacturers_id'])) {
      if (isset($_GET['filter_id']) && tep_not_null($_GET['filter_id'])) {
// We are asked to show only a specific category
// ################## Added Enable Disable Categorie #################
//      $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from  " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on (p.products_id = s.products_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c                                                                                 where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$_GET['filter_id'] . "'";
// b2b  $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from  " . TABLE_PRODUCTS . " p                                                                      , " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c   left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id           where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$_GET['filter_id'] . "' group by p.products_id";
        $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from (" . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on (p.products_id = s.products_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c ) left join " . TABLE_CATEGORIES . " c on (p2c.categories_id = c.categories_id) where c.categories_status = '1' and p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$_GET['filter_id'] . "' group by p.products_id";
      } else {
// We show them all
// ################## Added Enable Disable Categorie #################
//      $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m                                                                     where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "'";
// b2b  $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p                                                                    , " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' group by p.products_id";
        $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from (" . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on (p.products_id = s.products_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m ) 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) where c.categories_status = '1' and p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['manufacturers_id'] . "' group by p.products_id";
      }
    } else {
// show the products in a given categorie
      if (isset($_GET['filter_id']) && tep_not_null($_GET['filter_id'])) {
// We are asked to show only specific catgeory
// ################## Added Enable Disable Categorie #################
//      $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c                                                                     where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
// b2b  $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p                                                                    , " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "' group by p.products_id";
        $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from (" . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on (p.products_id = s.products_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c ) left join " . TABLE_CATEGORIES . " c on (c.categories_id = p2c.categories_id) where c.categories_status = '1' and p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$_GET['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "' group by p.products_id";
      } else {
// We show them all
// ################## Added Enable Disable Categorie #################
//      $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c                                                                     where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
// b2b  $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id                                                                    , " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "' group by p.products_id";
        $listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from (" . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on (p.manufacturers_id = m.manufacturers_id) left join " . TABLE_SPECIALS . " s on (p.products_id = s.products_id), " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c) left join " . TABLE_CATEGORIES . " c on (c.categories_id = p2c.categories_id) where c.categories_status = '1' and p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "' group by p.products_id";
      }
    }
    //TotalB2B end


    if ( (!isset($_GET['sort'])) || (!ereg('^[1-8][ad]$', $_GET['sort'])) || (substr($_GET['sort'], 0, 1) > sizeof($column_list)) ) {
      for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
        if ($column_list[$i] == 'PRODUCT_LIST_NAME') {
          $_GET['sort'] = $i+1 . 'a';
          $listing_sql .= " order by pd.products_name";
          break;
        }
      }
    } else {
      $sort_col = substr($_GET['sort'], 0 , 1);
      $sort_order = substr($_GET['sort'], 1);

      switch ($column_list[$sort_col-1]) {
        case 'PRODUCT_LIST_MODEL':
          $listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
          break;
        case 'PRODUCT_LIST_NAME':
          $listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
          break;
        case 'PRODUCT_LIST_MANUFACTURER':
          $listing_sql .= " order by m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
          break;
        case 'PRODUCT_LIST_QUANTITY':
          $listing_sql .= " order by p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
          break;
        case 'PRODUCT_LIST_IMAGE':
          $listing_sql .= " order by pd.products_name";
          break;
        case 'PRODUCT_LIST_WEIGHT':
          $listing_sql .= " order by p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
          break;

		//TotalB2B start
		//this is a know bug
        case 'PRODUCT_LIST_PRICE':
//        $listing_sql .= " order by final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
          $listing_sql .= " order by p.products_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
          break;
		//TotalB2B end

      }
    }

    $content = basename($_SERVER['PHP_SELF']);
    while (strstr($content, '.php')) $content = str_replace('.php', '', $content);
    $content .= '_products';
   // $content = CONTENT_INDEX_PRODUCTS;

  } else { // default page
    $content = basename($_SERVER['PHP_SELF']);
    while (strstr($content, '.php')) $content = str_replace('.php', '', $content);
    $content .= '_default';
   // $content = CONTENT_INDEX_DEFAULT;

  }

  $javascript = 'remove_label.js';
  include (bts_select('main', $content_template)); // BTSv1.5

  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
e product_info.php

Codice: Seleziona tutto

<?php
/*
  $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2007 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

//################## Added Enable / Disable Categories #################
//  $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)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
  $product_check_query = tep_db_query("select count(*) as total 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_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
//################## End Added Enable / Disable Categories #################
  $product_check = tep_db_fetch_array($product_check_query);

  $content = basename($_SERVER['PHP_SELF']);
  while (strstr($content, '.php')) $content = str_replace('.php', '', $content);

 // $javascript = 'popup_window.js';

  $javascript = 'remove_label.js';
  include (bts_select('main', $content_template)); // BTSv1.5

  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
questi file sono quelli che stanno nella root (si dice così?)
e come dicevo, l'unico accenno a quella stringa <title> ...etc l'ho trovata nell'index.php sotto admin.
a questo punto alzo le mani e mi arrendo.... :cry:
sarà il caso si riportare tutto a come stava ?

Re: Seo header tags 4 su Os Wai

Inviato: 21/04/2009, 8:07
da LaCate
Ciao !
nessuno sa darmi una dritta ? :oops:
grazie

Re: Seo header tags 4 su Os Wai

Inviato: 21/04/2009, 8:56
da dynamo
prova a leggere questo topic viewtopic.php?f=3&t=5683

magari ne hanno già parlato...


il fatto è che osc wai è pesantemente modificato per rientrare negli standard e quindi delle porzioni di codice sono diverse

Re: Seo header tags 4 su Os Wai

Inviato: 21/04/2009, 8:58
da LaCate
grazie mille :D
Ora leggo !