Ciao a tutti, traducendo un template con il linguaggio italiano ho riscontrato questo problema insolito:
Carrello spesa 0 0 prodotti ...è vuoto
Quando metto un oggetto nel carrello il messaggio è:
Carrello spesa 1 0 prodotti ...è vuoto
Con le pagine in Inglese il problema non si presenta
Chi sa darmi una mano?
Grazie mille!!
PROBLEMA CON CARRELLO
Moderatore: mod Generali
Re: PROBLEMA CON CARRELLO
prova a controllare semplicemnte la traduzione della pagina
VHosting Solution
Web Hosting Da 26 Euro Annuo
OsCommerce Hosting 144 Euro Annuo
15% di sconto con il codice: OSC-Member su WebHosting - OSC Hosting
http://www.vhosting-it.com
info@vhosting-it.com
Web Hosting Da 26 Euro Annuo
OsCommerce Hosting 144 Euro Annuo
15% di sconto con il codice: OSC-Member su WebHosting - OSC Hosting
http://www.vhosting-it.com
info@vhosting-it.com
-
- membro Junior
- Messaggi: 8
- Iscritto il: 17/02/2009, 22:08
Re: PROBLEMA CON CARRELLO
Il template era nativo in inglese , ho istallato il contr. italiano successivamente.
controllando il file shopping_cart.php nella directory catalog\includes\languages\italian con lo stesso nella directory catalog\includes\languages\english sembrano uguali a parte la lingua text:
INGLESE FUNZIONANTE
<?php
/*
$Id: shopping_cart.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2007 osCommerce
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'Cart Contents');
define('HEADING_TITLE', 'What\'s In My Cart?');
define('TABLE_HEADING_REMOVE', 'Remove');
define('TABLE_HEADING_QUANTITY', 'Qty.');
define('TABLE_HEADING_MODEL', 'Model');
define('TABLE_HEADING_PRODUCTS', 'Product(s)');
define('TABLE_HEADING_TOTAL', 'Total');
define('TEXT_CART_EMPTY', 'Your Shopping Cart is empty!');
define('SUB_TITLE_SUB_TOTAL', 'Sub-Total:');
define('SUB_TITLE_TOTAL', 'Total:');
define('OUT_OF_STOCK_CANT_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' dont exist in desired quantity in our stock.<br>Please alter the quantity of products marked with (' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '), Thank you');
define('OUT_OF_STOCK_CAN_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' dont exist in desired quantity in our stock.<br>You can buy them anyway and check the quantity we have in stock for immediate deliver in the checkout process.');
define('TEXT_ALTERNATIVE_CHECKOUT_METHODS', '- OR -');
?>
ITALIANO NON FUNZIONANTE
<?php
/*
$Id: shopping_cart.php,v 1.13 2002/04/05 20:24:02 project3000 Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 osCommerce
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'Contenuto carrello');
define('HEADING_TITLE', 'Cosa c\'è nel mio carrello?');
define('TABLE_HEADING_REMOVE', 'Cancella');
define('TABLE_HEADING_QUANTITY', 'Quantità');
define('TABLE_HEADING_MODEL', 'Modello');
define('TABLE_HEADING_PRODUCTS', 'Prodotto(i)');
define('TABLE_HEADING_TOTAL', 'Totale');
define('TEXT_CART_EMPTY', 'Il tuo carrello è vuoto!');
define('SUB_TITLE_SUB_TOTAL', 'Sub-Totale:');
define('SUB_TITLE_TOTAL', 'Totale:');
define('OUT_OF_STOCK_CANT_CHECKOUT', 'I prodotti contrassegnati con ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' non sono presenti nel nostro magazzino nella quantità desiderata.<br>Cambia la quantità del prodotto contrassegnato con (' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '), Grazie');
define('OUT_OF_STOCK_CAN_CHECKOUT', 'I prodotti contrassegnati con ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' non sono presenti nel nostro magazzino nella quantità desiderata.<br>Puoi acquistare questo prodotto in ogni momento controllando la disponibilità per l\'immediata spedizione nel procedimento di acquisto.');
define('TEXT_ALTERNATIVE_CHECKOUT_METHODS', '- O -');
?>
GRAZIE PER L'ATTENZIONE
controllando il file shopping_cart.php nella directory catalog\includes\languages\italian con lo stesso nella directory catalog\includes\languages\english sembrano uguali a parte la lingua text:
INGLESE FUNZIONANTE
<?php
/*
$Id: shopping_cart.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2007 osCommerce
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'Cart Contents');
define('HEADING_TITLE', 'What\'s In My Cart?');
define('TABLE_HEADING_REMOVE', 'Remove');
define('TABLE_HEADING_QUANTITY', 'Qty.');
define('TABLE_HEADING_MODEL', 'Model');
define('TABLE_HEADING_PRODUCTS', 'Product(s)');
define('TABLE_HEADING_TOTAL', 'Total');
define('TEXT_CART_EMPTY', 'Your Shopping Cart is empty!');
define('SUB_TITLE_SUB_TOTAL', 'Sub-Total:');
define('SUB_TITLE_TOTAL', 'Total:');
define('OUT_OF_STOCK_CANT_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' dont exist in desired quantity in our stock.<br>Please alter the quantity of products marked with (' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '), Thank you');
define('OUT_OF_STOCK_CAN_CHECKOUT', 'Products marked with ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' dont exist in desired quantity in our stock.<br>You can buy them anyway and check the quantity we have in stock for immediate deliver in the checkout process.');
define('TEXT_ALTERNATIVE_CHECKOUT_METHODS', '- OR -');
?>
ITALIANO NON FUNZIONANTE
<?php
/*
$Id: shopping_cart.php,v 1.13 2002/04/05 20:24:02 project3000 Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 osCommerce
Released under the GNU General Public License
*/
define('NAVBAR_TITLE', 'Contenuto carrello');
define('HEADING_TITLE', 'Cosa c\'è nel mio carrello?');
define('TABLE_HEADING_REMOVE', 'Cancella');
define('TABLE_HEADING_QUANTITY', 'Quantità');
define('TABLE_HEADING_MODEL', 'Modello');
define('TABLE_HEADING_PRODUCTS', 'Prodotto(i)');
define('TABLE_HEADING_TOTAL', 'Totale');
define('TEXT_CART_EMPTY', 'Il tuo carrello è vuoto!');
define('SUB_TITLE_SUB_TOTAL', 'Sub-Totale:');
define('SUB_TITLE_TOTAL', 'Totale:');
define('OUT_OF_STOCK_CANT_CHECKOUT', 'I prodotti contrassegnati con ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' non sono presenti nel nostro magazzino nella quantità desiderata.<br>Cambia la quantità del prodotto contrassegnato con (' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '), Grazie');
define('OUT_OF_STOCK_CAN_CHECKOUT', 'I prodotti contrassegnati con ' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . ' non sono presenti nel nostro magazzino nella quantità desiderata.<br>Puoi acquistare questo prodotto in ogni momento controllando la disponibilità per l\'immediata spedizione nel procedimento di acquisto.');
define('TEXT_ALTERNATIVE_CHECKOUT_METHODS', '- O -');
?>
GRAZIE PER L'ATTENZIONE
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
Re: PROBLEMA CON CARRELLO
guarda includes/header.php .....
-
- membro Junior
- Messaggi: 8
- Iscritto il: 17/02/2009, 22:08
Re: PROBLEMA CON CARRELLO
Posto il file CATALOG/INCLUDES/header.php perchè non riesco a trovare il problema
Grazie
<?php
/*
$Id: header.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
// check if the 'install' directory exists, and warn of its existence
if (WARN_INSTALL_EXISTENCE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
}
}
// check if the configure.php file is writeable
if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
}
}
// check if the session folder is writeable
if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
if (!is_dir(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
} elseif (!is_writeable(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
}
}
}
// check session.auto_start is disabled
if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
}
}
if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
}
}
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>
<table width="814" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<img src="images/template/header.jpg" width="814" height="160" alt=""></td>
</tr>
</table>
<table width="814" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<div id="menu">
<div class="spacer"><img src="images/template/menu_left.gif" width="8" height="37" alt=""></div>
<div class="box">
<a href="<?php echo tep_href_link('index.php') . '" title="Home Page"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_1.gif" width="8" height="37" alt=""></div>
<div class="box2">
<a href="<?php echo tep_href_link('products_new.php') . '" title="New Products"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_2.gif" width="8" height="37" alt=""></div>
<div class="box3">
<a href="<?php echo tep_href_link('specials.php') . '" title="' . BOX_HEADING_SPECIALS . '"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_3.gif" width="8" height="37" alt=""></div>
<div class="box4">
<a href="<?php echo tep_href_link('account.php') . '" title="' . HEADER_TITLE_MY_ACCOUNT . '"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_4.gif" width="8" height="37" alt=""></div>
<div class="box5">
<a href="<?php echo tep_href_link('contact_us.php') . '" title="Contact"></a>'; ?>
</div>
<div class="spacer-right"><img src="images/template/right_menu.gif" width="7" height="37" alt=""></div>
</div>
</tr>
</table>
<table width="814" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<img src="images/template/bar_left.gif" width="8" height="58" alt=""></td>
<td style="background: url(images/template/bar_loop.gif) repeat-x;width:100%;height:58px;">
<span style="padding-left:15px;font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;">Select your currency:
<?php
echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');
reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)) {
if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" class="jamp"') . $hidden_get_variables . tep_hide_session_id();
echo '</form>';
?>
</span>
<span style="padding-left:25px;font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;">Choose your language:
<?php
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
include(DIR_WS_CLASSES . 'language.php');
$lng = new language;
}
$languages_string = '';
reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
$languages_string .= '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
}
echo $languages_string;
?>
</span>
</td>
<td style="background: url(images/template/bar_loop.gif) repeat-x;width:100%;height:58px;font-size:12px;font-family:Verdana, Arial, Helvetica, sans-serif;" align="right">
<p style="text-align:center;">
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo $cart->count_contents()?> <?php echo BOX_SHOPPING_CART_EMPTY ?></a></p>
</td>
<td align="left" valign="middle">
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo tep_image(DIR_WS_IMAGES . 'cart.gif', BOX_HEADING_SHOPPING_CART); ?></a>
</td>
<td style="background: url(images/template/bar_loop.gif) repeat-x;width:100%height:58px;" width="50">
<?php echo tep_draw_separator('pixel_trans.gif', '20', '10'); ?>
</td>
<td>
<img src="images/template/bar_right.gif" width="7" height="58" alt=""></td>
</tr>
</table>
<?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
</tr>
</table>
<?php
}
if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
</tr>
</table>
<?php
}
?>
Grazie
<?php
/*
$Id: header.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
// check if the 'install' directory exists, and warn of its existence
if (WARN_INSTALL_EXISTENCE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
}
}
// check if the configure.php file is writeable
if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
}
}
// check if the session folder is writeable
if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
if (!is_dir(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
} elseif (!is_writeable(tep_session_save_path())) {
$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
}
}
}
// check session.auto_start is disabled
if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
}
}
if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
}
}
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
?>
<table width="814" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<img src="images/template/header.jpg" width="814" height="160" alt=""></td>
</tr>
</table>
<table width="814" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<div id="menu">
<div class="spacer"><img src="images/template/menu_left.gif" width="8" height="37" alt=""></div>
<div class="box">
<a href="<?php echo tep_href_link('index.php') . '" title="Home Page"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_1.gif" width="8" height="37" alt=""></div>
<div class="box2">
<a href="<?php echo tep_href_link('products_new.php') . '" title="New Products"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_2.gif" width="8" height="37" alt=""></div>
<div class="box3">
<a href="<?php echo tep_href_link('specials.php') . '" title="' . BOX_HEADING_SPECIALS . '"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_3.gif" width="8" height="37" alt=""></div>
<div class="box4">
<a href="<?php echo tep_href_link('account.php') . '" title="' . HEADER_TITLE_MY_ACCOUNT . '"></a>'; ?>
</div>
<div class="spacer"><img src="images/template/spacer_4.gif" width="8" height="37" alt=""></div>
<div class="box5">
<a href="<?php echo tep_href_link('contact_us.php') . '" title="Contact"></a>'; ?>
</div>
<div class="spacer-right"><img src="images/template/right_menu.gif" width="7" height="37" alt=""></div>
</div>
</tr>
</table>
<table width="814" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
<img src="images/template/bar_left.gif" width="8" height="58" alt=""></td>
<td style="background: url(images/template/bar_loop.gif) repeat-x;width:100%;height:58px;">
<span style="padding-left:15px;font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;">Select your currency:
<?php
echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');
reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}
$hidden_get_variables = '';
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)) {
if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
$hidden_get_variables .= tep_draw_hidden_field($key, $value);
}
}
echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" class="jamp"') . $hidden_get_variables . tep_hide_session_id();
echo '</form>';
?>
</span>
<span style="padding-left:25px;font-size:10px;font-family:Verdana, Arial, Helvetica, sans-serif;">Choose your language:
<?php
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
include(DIR_WS_CLASSES . 'language.php');
$lng = new language;
}
$languages_string = '';
reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
$languages_string .= '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
}
echo $languages_string;
?>
</span>
</td>
<td style="background: url(images/template/bar_loop.gif) repeat-x;width:100%;height:58px;font-size:12px;font-family:Verdana, Arial, Helvetica, sans-serif;" align="right">
<p style="text-align:center;">
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo $cart->count_contents()?> <?php echo BOX_SHOPPING_CART_EMPTY ?></a></p>
</td>
<td align="left" valign="middle">
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo tep_image(DIR_WS_IMAGES . 'cart.gif', BOX_HEADING_SHOPPING_CART); ?></a>
</td>
<td style="background: url(images/template/bar_loop.gif) repeat-x;width:100%height:58px;" width="50">
<?php echo tep_draw_separator('pixel_trans.gif', '20', '10'); ?>
</td>
<td>
<img src="images/template/bar_right.gif" width="7" height="58" alt=""></td>
</tr>
</table>
<?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerError">
<td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
</tr>
</table>
<?php
}
if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="headerInfo">
<td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
</tr>
</table>
<?php
}
?>
- mario porta
- membro Regular
- Messaggi: 105
- Iscritto il: 04/08/2006, 10:34
- Località: Milano
- Contatta:
Re: PROBLEMA CON CARRELLO
io ho "risolto" cosi',...vediamo e fa' anche al caso tuo:
Nell' header al posto di questa parte:
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo $cart->count_contents()?> <?php echo BOX_SHOPPING_CART_EMPTY ?></a></p>
Ho messo:
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo "Prodotti nel carrello "?><?php echo $cart->count_contents()?></a></p>
Cosi' visualizza: Prodotti nel carrello 0 oppure il numero dei prodotto inseriti.
Spero ti possa andar bene perche' penso che visualizzare la scritta ( Il tuo carrello e' vuoto ) mi fa' un po' sorridere,....se dice Prodotti 0 e' vuoto di sicuro....
Nell' header al posto di questa parte:
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo $cart->count_contents()?> <?php echo BOX_SHOPPING_CART_EMPTY ?></a></p>
Ho messo:
<a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo "Prodotti nel carrello "?><?php echo $cart->count_contents()?></a></p>
Cosi' visualizza: Prodotti nel carrello 0 oppure il numero dei prodotto inseriti.
Spero ti possa andar bene perche' penso che visualizzare la scritta ( Il tuo carrello e' vuoto ) mi fa' un po' sorridere,....se dice Prodotti 0 e' vuoto di sicuro....
Grazie ad OScommerceItalia oggi abbiamo http://www.pemcomputer.com
-
- membro Junior
- Messaggi: 8
- Iscritto il: 17/02/2009, 22:08
Re: PROBLEMA CON CARRELLO
E' l'uovo di colombo! Grazie per la soluzione