Oggi è gio apr 18, 2024 2:48 am

Benvenuto!

Lo stato dell'Arte come software Open Source gratuito E-commerce.
 

Zen Cart Italia

Versioni 1.3 xx

Segnalazione Bug in includes/templates/ template_default/sidebox/ tpl_shopping_cart.php

Relativamente alle versioni

Moderatori: Sandro Carniel aka webmaster, Paolo De Dionigi aka Spike00

Segnalazione Bug in includes/templates/ template_default/sidebox/ tpl_shopping_cart.php

Messaggioda deepmax » gio mag 25, 2006 11:01 am

Ciao a tutti,

piccola correzione da fare nel file :

[b]/includes/templates/template_default/sideboxes/tpl_shopping_cart.php[/b]

la modifica occorre per evitare una non corretta visualizzazione del box relativo al 'carrello', causata dall'errato posizionamento nel codice della classe che esegue il wrapping del box.

La modifica è confermata dal team americano.

Codice originale:

/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cartt Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_shopping_cart.php 3056 2006-02-21 06:41:36Z birdbrain $
*/
$content ="";

if ($_SESSION['cart']->count_contents() > 0) {
$content .= '
';
$content .= '
' . "\n" . '' . "\n" . '
';
} else {
$content = '
' . BOX_SHOPPING_CART_EMPTY . '
';
}

if ($_SESSION['cart']->count_contents() > 0) {
$content .= '
';
$content .= '
' . $currencies->format($_SESSION['cart']->show_total()) . '
';
$content .= '
';
}


if (isset($_SESSION['customer_id'])) {
$gv_query = "select amount
from " . TABLE_COUPON_GV_CUSTOMER . "
where customer_id = '" . $_SESSION['customer_id'] . "'";
$gv_result = $db->Execute($gv_query);

if ($gv_result->fields['amount'] > 0 ) {
$content .= '';
$content .= '
' . VOUCHER_BALANCE . $currencies->format($gv_result->fields['amount']) . '
';
}
$content .= '
';
}
?>


Codice modificato:

/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cartt Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_shopping_cart.php 3056 2006-02-21 06:41:36Z birdbrain $
*/
$content ="";

$content .= '
';
if ($_SESSION['cart']->count_contents() > 0) {
$content .= '
' . "\n" . '' . "\n" . '
';
} else {
$content .= '
' . BOX_SHOPPING_CART_EMPTY . '
';
}

if ($_SESSION['cart']->count_contents() > 0) {
$content .= '
';
$content .= '
' . $currencies->format($_SESSION['cart']->show_total()) . '
';
$content .= '
';
}

if (isset($_SESSION['customer_id'])) {
$gv_query = "select amount
from " . TABLE_COUPON_GV_CUSTOMER . "
where customer_id = '" . $_SESSION['customer_id'] . "'";
$gv_result = $db->Execute($gv_query);

if ($gv_result->fields['amount'] > 0 ) {
$content .= '';
$content .= '
' . VOUCHER_BALANCE . $currencies->format($gv_result->fields['amount']) . '
';
}
}
$content .= '
';
?>

Ciao a tutti,
Max :-D
deepmax
 
Messaggi: 69
Iscritto il: mar feb 07, 2006 8:51 am
Località: Lugano - Svizzera

Torna a Versioni 1.3 xx

cron

Login

Real Time Analytics