1
Gestione e-commerce / Re: Cambiare l'aspetto grafico delle scritte
« il: 25 Mar 2008, 17:46:42 »
Oddio questo è lo script:
function show_checkout_bar($steps_to_do, $step_msg, $step_count, $highlighted_step) {
global $sess;
$ship_to_info_id = mosgetparam( $_REQUEST, 'ship_to_info_id');
$shipping_rate_id = urldecode(mosGetParam( $_REQUEST, "shipping_rate_id" ));
// CSS style for the <td> tag of the cell which is actually highlighted
$highlighted_style = 'style="font-weight: bold;"';
echo '<table style="background: url('. IMAGEURL .'ps_image/checkout'. $step_count.'_'.$highlighted_step .'.png) right; background-repeat: no-repeat; height:85px;text-align:center;" border="0" cellspacing="0" cellpadding="0">
<tr>';
for ($i = 1; $i <= $step_count; $i++) {
echo '<td '.(($highlighted_step==$i) ? $highlighted_style : '') .' width="119" align="center" valign="bottom">';
if ($highlighted_step > $i) {
echo '<a href="'. $sess->url(SECUREURL."index.php?page=checkout.index&option=com_virtuemart&ship_to_info_id=$ship_to_info_id&shipping_rate_id=".@$shipping_rate_id."&checkout_next_step=".$steps_to_do[$i-1]) .'">';
echo $step_msg[$i-1] .'[/url]';
}
else {
echo $step_msg[$i-1];
}
echo '</td>';
}
echo '
</tr>
</table>
';
}
Ho pravato ad inserire un
, ma è ovvio che l'ho inserito nella striscia: n 106 echo '<td '.(($highlighted_step==$i) ? $highlighted_style : '') .' width="119" align="center" valign="bottom">'; ma in questo modo ho spostato l'immagine e nonle scritte... qual'è allor ala striscia dove devo aggiungere il
function show_checkout_bar($steps_to_do, $step_msg, $step_count, $highlighted_step) {
global $sess;
$ship_to_info_id = mosgetparam( $_REQUEST, 'ship_to_info_id');
$shipping_rate_id = urldecode(mosGetParam( $_REQUEST, "shipping_rate_id" ));
// CSS style for the <td> tag of the cell which is actually highlighted
$highlighted_style = 'style="font-weight: bold;"';
echo '<table style="background: url('. IMAGEURL .'ps_image/checkout'. $step_count.'_'.$highlighted_step .'.png) right; background-repeat: no-repeat; height:85px;text-align:center;" border="0" cellspacing="0" cellpadding="0">
<tr>';
for ($i = 1; $i <= $step_count; $i++) {
echo '<td '.(($highlighted_step==$i) ? $highlighted_style : '') .' width="119" align="center" valign="bottom">';
if ($highlighted_step > $i) {
echo '<a href="'. $sess->url(SECUREURL."index.php?page=checkout.index&option=com_virtuemart&ship_to_info_id=$ship_to_info_id&shipping_rate_id=".@$shipping_rate_id."&checkout_next_step=".$steps_to_do[$i-1]) .'">';
echo $step_msg[$i-1] .'[/url]';
}
else {
echo $step_msg[$i-1];
}
echo '</td>';
}
echo '
</tr>
</table>
';
}
Ho pravato ad inserire un
, ma è ovvio che l'ho inserito nella striscia: n 106 echo '<td '.(($highlighted_step==$i) ? $highlighted_style : '') .' width="119" align="center" valign="bottom">'; ma in questo modo ho spostato l'immagine e nonle scritte... qual'è allor ala striscia dove devo aggiungere il