Ottimizzare OsCommerce
-
ok.. abbiamo risolto tutto... il problema era nel posizionare questo blocco:
<?php
$product_info_query = tep_db_query("select pd.products_name, p.products_model 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_info = tep_db_fetch_array($product_info_query);
$products_name = $product_info['products_name'];
?>che l'ho messo subito sotto quello originale... non sostituendo niente...
grazie mille ancora!!!!
spero di esserti utile un giorno!!!!Ciao!
-
-
-
-
Ho letto un po' i discorsi.. Posso andare tranquillo con la tua guida?

Sono un neofita in cms, ho appena scoperto ecommerce e quindi vorrei stare tranquillo con la certezza modificare correttamente le pagine php il mio e-shop seguendo la tua guida. (anche perchè due anni sono parecchi e potrebbero essere cambiate alcuine cose)grazie
-
-
a parte i vari aggiornamenti minori che oscommerce ha avuto nel frattempo (bugfix, compatibilità con php5 e mysql5), la guida è ancora attuale, dato che la versione 3.0 è ancora in sviluppo.
resta fermo che quella guida non è bibbia

inoltre, potreste decidere di usare qualche contribution per riscrivere gli url tramite mod_rewrite e per personalizzare il meta description (argomenti non trattati dalla guida).
-
-
ok.. abbiamo risolto tutto... il problema era nel posizionare questo blocco:
<?php
$product_info_query = tep_db_query("select pd.products_name, p.products_model 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_info = tep_db_fetch_array($product_info_query);
$products_name = $product_info['products_name'];
?>che l'ho messo subito sotto quello originale... non sostituendo niente...
grazie mille ancora!!!!
spero di esserti utile un giorno!!!!Ciao!
ciao ho anche io lo stesso problema . Ho provato ad inserire il codice come dici tu ma nei title non appare il nome prodotto ecco come ho fatto
<?php
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);
$product_info_query = tep_db_query("select pd.products_name, p.products_model 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_info = tep_db_fetch_array($product_info_query);
$products_name = $product_info['products_name'];
?>Se puoi mi mandi il tuo? grazie
-
-
Ho capito, avevo messo il codice nel
file product_info.php
che c'è nella cartella languages/italian
invece va messo nel file omonimo
che che c'è nella root.Sostituendo il
pezzo<title><?php echo TITLE; ?></title>
con
<?php [B] $product_info_query = tep_db_query("select pd.products_name, p.products_model 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_info = tep_db_fetch_array($product_info_query); $products_name = $product_info['products_name']; [/B] ?> <!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>[B]<?php echo TITLE . " - " . $products_name; ?>[/B]</title>
Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.
Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.
Con il tuo contributo, questo post potrebbe essere ancora migliore 💗
Registrati Accedi

)