Ciao,
stò un po' studiacchiando il manuale oscommerce.
Cosa mi è venuto in mente di fare ... aggiunere dei box oltre ai soliti in modo da avere il sito standard dentro all'ecommerce.
Una sorta di oscnuke ma non stile portale ma stile sito web normale.
E fin qui tutto funziona come deve ...
Ho creato i box seguendo le istruzioni e adesso ... come faccio ad inserire le informazioni nelle pagine?
Nella parte sinistra ho i soliti box
Categorie
Informazioni
e ho aggiunto
Informatica
Come faccio adesso a scrivere dentro alla pagina "Informatica", quale è il file da modificare?
Grazie
Aggiungere Box
Moderatore: mod Generali
io ho fatto una cosa di questo tipo:
hai creato il box informatica, quindi qualcosa di questo tipo:
<?php
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => 'Informatica');
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('text' =>'<img src="./images/logoinformatica.gif" width="120" height="120" border="0"></a><br>' .
'<dl><dd><a href="' . tep_href_link("corsi.php") . '"><strong>» I nostri corsi</strong></a></dd><br>' .
'<dd><a href="' . tep_href_link("calendario.php") . '"><strong>» Calendario</strong></a></dd></dl>' );
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- information_eof //-->
e poi l'hai inserito in column left o right
poi crei le pagine (ad es. i nostri corsi, calendario) che hai indicato nei link, in catalog (nella cartella principale quindi):
<?php
require('includes/application_top.php');
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading">Presentazione</td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main">
QUI INSERISCI IL TESTO HTML DELLA PAGINA
</td>
</tr>
</table></td>
</tr>
<!-- <tr>
<td align="right" class="main"><br><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
</tr>-->
</table></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Non perfetto come metodo ma funziona
hai creato il box informatica, quindi qualcosa di questo tipo:
<?php
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => 'Informatica');
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('text' =>'<img src="./images/logoinformatica.gif" width="120" height="120" border="0"></a><br>' .
'<dl><dd><a href="' . tep_href_link("corsi.php") . '"><strong>» I nostri corsi</strong></a></dd><br>' .
'<dd><a href="' . tep_href_link("calendario.php") . '"><strong>» Calendario</strong></a></dd></dl>' );
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- information_eof //-->
e poi l'hai inserito in column left o right
poi crei le pagine (ad es. i nostri corsi, calendario) che hai indicato nei link, in catalog (nella cartella principale quindi):
<?php
require('includes/application_top.php');
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading">Presentazione</td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main">
QUI INSERISCI IL TESTO HTML DELLA PAGINA
</td>
</tr>
</table></td>
</tr>
<!-- <tr>
<td align="right" class="main"><br><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
</tr>-->
</table></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Non perfetto come metodo ma funziona