{"id":179,"date":"2013-09-06T17:19:37","date_gmt":"2013-09-06T15:19:37","guid":{"rendered":"http:\/\/www.marranzano.com\/wordpress\/?p=179"},"modified":"2013-09-06T17:26:46","modified_gmt":"2013-09-06T15:26:46","slug":"oscommerce-metti-il-nome-prodotto-come-titolo-in-ogni-pagina-prodotti","status":"publish","type":"post","link":"https:\/\/www.marranzano.com\/wordpress\/oscommerce-metti-il-nome-prodotto-come-titolo-in-ogni-pagina-prodotti\/","title":{"rendered":"OSCOMMERCE metti il nome prodotto come titolo in ogni pagina prodotti"},"content":{"rendered":"<p>Una semplice modifica da fare al product_info.php per fare apparire il nome del prodotto come titolo della pagina.<br \/>\nRicorda sempre di fare un backup del file prima di modificarlo.<\/p>\n<p>1) VAI A catalog &#8211;&gt; product_info.php<\/p>\n<p>2) Trova questo codice:<br \/>\n&lt;!doctype html public &#8220;-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN&#8221;&gt;<br \/>\n&lt;html &lt;?php echo HTML_PARAMS; ?&gt;&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html; charset=&lt;?php echo CHARSET; ?&gt;&#8221;&gt;<br \/>\n&lt;title&gt;&lt;?php echo TITLE; ?&gt;&lt;\/title&gt;<br \/>\n<meta http-equiv=\"Content-Type\" content=\"text\/html; charset=&lt;?php echo CHARSET; ?&gt;\" \/><\/p>\n<p>3) Sostituiscilo con:<!--more--><br \/>\n&lt;?php<br \/>\n$the_product_info_query = tep_db_query(&#8220;select pd.language_id, p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_retail_price,\u00a0 p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from &#8221; . TABLE_PRODUCTS . &#8221; p, &#8221; . TABLE_PRODUCTS_DESCRIPTION . &#8221; pd where p.products_id = &#8216;&#8221; . (int)$HTTP_GET_VARS[&#8216;products_id&#8217;] . &#8220;&#8216; and pd.products_id = &#8216;&#8221; . (int)$HTTP_GET_VARS[&#8216;products_id&#8217;] . &#8220;&#8216;&#8221; . &#8221; and pd.language_id ='&#8221; .\u00a0 (int)$languages_id . &#8220;&#8216;&#8221;);<br \/>\n$the_product_info = tep_db_fetch_array($the_product_info_query);<br \/>\n$the_product_name = strip_tags ($the_product_info[&#8216;products_name&#8217;], &#8220;&#8221;);<br \/>\n$the_product_description = strip_tags ($the_product_info[&#8216;products_description&#8217;], &#8220;&#8221;);<br \/>\n$the_product_model = strip_tags ($the_product_info[&#8216;products_model&#8217;], &#8220;&#8221;);?&gt;<br \/>\n&lt;!doctype html public &#8220;-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN&#8221;&gt;<br \/>\n&lt;html &lt;?php echo HTML_PARAMS; ?&gt;&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html; charset=&lt;?php echo CHARSET; ?&gt;&#8221;&gt;<br \/>\n&lt;title&gt;&lt;?php echo TITLE; ?&gt; :: &lt;?php echo $the_product_name; ?&gt;&lt;\/title&gt;<\/p>\n<p>Ecco fatto.<\/p>\n<p>Se ti propone un errore nella tabella \u00e8 perch\u00e8 la tua tabella \u00e8 diversa dalla mia. La soluzione \u00e8 semplice, cerca nel tuo product_info e trova un&#8217;altra chiamata &#8220;tep_db_query&#8221;.\u00a0 Copia tutto quello che c&#8217;\u00e8 all&#8217;interno della ( &#8230; );\u00a0 nel tuo tep_db_query e sostituiscilo a quello del codice qui sopra.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Una semplice modifica da fare al product_info.php per fare apparire il nome del prodotto come titolo della pagina. Ricorda sempre di fare un backup del file prima di modificarlo. 1) VAI A catalog &#8211;&gt; product_info.php 2) Trova questo codice: &lt;!doctype html public &#8220;-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN&#8221;&gt; &lt;html &lt;?php echo HTML_PARAMS; ?&gt;&gt; &lt;head&gt; &lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html; &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.marranzano.com\/wordpress\/oscommerce-metti-il-nome-prodotto-come-titolo-in-ogni-pagina-prodotti\/\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;OSCOMMERCE metti il nome prodotto come titolo in ogni pagina prodotti&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-oscommerce"],"_links":{"self":[{"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":5,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":181,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/posts\/179\/revisions\/181"}],"wp:attachment":[{"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marranzano.com\/wordpress\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}