c'è qualche contrib che permette di farlo?

Moderatore: mod Generali
mi sono scritto questo codicewiko85 ha scritto:dynamo come hai fatto?
Codice: Seleziona tutto
<?php ############### CARRELLO ###############
if ($cart->count_contents() > 0) {
?>
<table align="center">
<tr>
<td>
<?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'icons/carrello_header_pieno.png', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : 'carrello_piento')) . '</a>'; ?>
</td>
</tr>
<tr>
<td><?php
if ($cart->count_contents() > 1){
echo $cart->count_contents() . TITLE_ARTICOLI;
} else {
echo $cart->count_contents() . TITLE_ARTICOLO;
}
?>
</td>
</tr>
<tr>
<td height="28px">
<?php
echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'icons/go_to_checkout.gif', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : 'carrello_piento')) . '</a>';
?>
</td>
</tr>
</table>
<?php
} else {
?>
<table align="center">
<tr>
<td><img src="/images/icons/carrello_header_vuoto.png" alt="carrello_vuoto"/></td>
</tr>
<tr>
<td><?php echo TITLE_VUOTO ?></td>
</tr>
<tr>
<td height="28px"></td>
</tr>
</table>
<?php
}
############### CARRELLO ############### ?>