Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How are you doing it?


Amado

Recommended Posts

Hi guys, rank newbie here, name's Amado, nice to meet you.

 

Great solution you've got, I'm looking forward to getting ours implemented. My deadline for THREE sites is 4/23. Think I can make it?

 

Installation is a snap - it's being handled for me. And inputing products - I get it, I'll get that done.

 

The question is the nice site customizations everyone is doing. I've seen lots of great designs, color schemes, etc. I'll be able to do the HTML and CSS and Photoshop work, whatever's needed, once I'm set off in the right direction... where's the bulk of that stuff kept? What's the main file(s) I will have to monkey with to get it done? What will I have to change?

 

I appreciate your help. See you tomorrow.

 

Yours,

Amado

Link to comment
Share on other sites

bump

 

WOW, that's a lot of people using this forum. I'll continue to search, but if somebody could direct me to a resource that works as a "get started customixing your OSCommerce site" guide, I'd sure appreciate it.

 

Yours,

Amado

Link to comment
Share on other sites

Unfortunately, I don't know of any such guide, but here's few tips to get you started.

1. Most pages with content have two sources. One page is in the root directory e.g. conditions.php, and the other is in includes/languages/english/. The page in the root directory inputes the header, footer, left column and right column, and echoes what you have put into the other file higher up the chain.

2. To make a new page, just open both of the files above, click 'save as' and save as the new pages. Alter the FILENAME_CONDITIONS to the new filename.

3. Add the new filename to the file includes/filenames.php

4. Add the file to one of the info boxes e.g. includes/boxes/information.php

5. In your admin panel, choose Define Langauges, then english.php (assuming english is your default language), and scroll down to the listing for the e.g. information infobox, and add the new file to that.

6. Adding new info boxes is similar, except that you also need to copy one of the existing info boxes, renaming it, and adding it to the column left or column right file in includes.

 

That should get you started.

 

Vger

Link to comment
Share on other sites

Unfortunately, I don't know of any such guide, but here's few tips to get you started.

1. Most pages with content have two sources. One page is in the root directory e.g. conditions.php, and the other is in includes/languages/english/. The page in the root directory inputes the header, footer, left column and right column, and echoes what you have put into the other file higher up the chain.

2. To make a new page, just open both of the files above, click 'save as' and save as the new pages. Alter the FILENAME_CONDITIONS to the new filename.

3. Add the new filename to the file includes/filenames.php

4. Add the file to one of the info boxes e.g. includes/boxes/information.php

5. In your admin panel, choose Define Langauges, then english.php (assuming english is your default language), and scroll down to the listing for the e.g. information infobox, and add the new file to that.

6. Adding new info boxes is similar, except that you also need to copy one of the existing info boxes, renaming it, and adding it to the column left or column right file in includes.

 

That should get you started.

 

Vger

Link to comment
Share on other sites

Unfortunately, I don't know of any such guide, but here's few tips to get you started.

1. Most pages with content have two sources. One page is in the root directory e.g. conditions.php, and the other is in includes/languages/english/. The page in the root directory inputes the header, footer, left column and right column, and echoes what you have put into the other file higher up the chain.

2. To make a new page, just open both of the files above, click 'save as' and save as the new pages. Alter the FILENAME_CONDITIONS to the new filename.

3. Add the new filename to the file includes/filenames.php

4. Add the file to one of the info boxes e.g. includes/boxes/information.php

5. In your admin panel, choose Define Langauges, then english.php (assuming english is your default language), and scroll down to the listing for the e.g. information infobox, and add the new file to that.

6. Adding new info boxes is similar, except that you also need to copy one of the existing info boxes, renaming it, and adding it to the column left or column right file in includes.

 

That should get you started.

 

Vger

Link to comment
Share on other sites

Unfortunately, I don't know of any such guide, but here's few tips to get you started.

1. Most pages with content have two sources. One page is in the root directory e.g. conditions.php, and the other is in includes/languages/english/. The page in the root directory inputes the header, footer, left column and right column, and echoes what you have put into the other file higher up the chain.

2. To make a new page, just open both of the files above, click 'save as' and save as the new pages. Alter the FILENAME_CONDITIONS to the new filename.

3. Add the new filename to the file includes/filenames.php

4. Add the file to one of the info boxes e.g. includes/boxes/information.php

5. In your admin panel, choose Define Langauges, then english.php (assuming english is your default language), and scroll down to the listing for the e.g. information infobox, and add the new file to that.

6. Adding new info boxes is similar, except that you also need to copy one of the existing info boxes, renaming it, and adding it to the column left or column right file in includes.

 

That should get you started.

 

Vger

Link to comment
Share on other sites

  • 2 years later...

Although it's an old topic, I encountered a problem that I think it's related to it.

 

I wanted to add an extra box on top of Categories (left column) that would contain a link to a subdomain of mine. The problem is that I can't put two words under the description of the service: "Consultanţă Economică şi Evaluări Autorizate". Instead of "DETALII" I want to write "DETALII AICI", but when I put another word there, the main page doesn't load.

 

This is the code that I made for the new "Consultanţă Economică şi Evaluări Autorizate" box, but I can't put more than one word in "DETALII":

 

<!-- information //-->
	  <tr>
		<td>
<?php
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_CONSULT);

 new infoBoxHeading($info_box_contents, false, false);

 $consult_box_contents = array();
 $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CONSULT) . '">'. DETALII .'</a>');

 new infoBox($info_box_contents);
?>
		</td>
	  </tr>
<!-- information_eof //-->

 

The code above was from "Information" box, but I changed it to "Consultanţă Economică şi Evaluări Autorizate" to match my neeeds.

 

What have I done wrong with this code? I want to be able to put 2-3 words in there at "DETALII".

 

How can I modify the "consult.php" in the way to link it to a subdomain?

 

This is the code "consult.php" transformed from "shipping.php":

 

<?php


 require('includes/application_top.php');

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONSULT);

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONSULT));
?>
<!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 (($request_type == 'SSL') ? 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"><?php echo HEADING_TITLE; ?></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"><?php echo TEXT_INFORMATION; ?></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="1" cellpadding="2" class="consultBox">
	  <tr class="consultBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></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'); ?>

 

I changed everything in the code that said "FILENAME_INFORMATION" to "FILENAME_CONSULT". Anything else?

 

 

I added this code to "romanian.php":

 

// information box text in includes/boxes/consult.php
define('BOX_HEADING_CONSULT', 'Consultanţă Economică  şi Evaluări Autorizate');
define('BOX_CONSULT', 'Consultanţă');

 

 

MY SITE

Sorry for my bad english language!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...