hallo,
wie ich sehe, werden die variablen in box_cart.html
{if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}
{if $show_cart_content == true}
{if $data_count == 1}
{$data_count} product, {$cart_total}
{else}
{$data_count} products, {$cart_total}
{/if}
{/if}
{/if}
in der cart.php generiert:
defined('_VALID_CALL') or die('Direct Access is not allowed.');
if (is_object($_SESSION['cart']) && count($_SESSION['cart']->show_content) > 0){
$tpl_data = array('cart_data' => $_SESSION['cart']->show_content,
'data_count' => count($_SESSION['cart']->show_content),
'content_count' => $_SESSION['cart']->content_count,
'cart_tax' => $_SESSION['cart']->content_tax,
'cart_total' => $_SESSION['cart']->content_total['formated'],
'cart_total_weight' => $_SESSION['cart']->weight,
'show_cart_content'=>true);
global $system_shipping_link;
$shipping_link = $system_shipping_link->shipping_link;
if ($shipping_link!='') {
$tpl_data = array_merge($tpl_data,array('shipping_link'=>$shipping_link));
}
}else{
$tpl_data = array('show_cart_content'=>false);
}
$show_box = true;
also:
ein array heisst $tpl_data und ich kann in der html-datei seine elemente direkt ansprechen, z.b. {$data_count}, s.o.?
bei mir geht das nicht.
dankbar für tipps,
barry