Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Website templates etc..


directbears

Recommended Posts

Posted

HI everyone and thanks for reading.

 

I have been using usercart (A spin off from oscommerce) and have just bought a template from template monster. It turns out that the template won't work with the usercart software (This is what usercart have said) and template monster did have a few issues.

 

I have now worked on this all weekend and feel that i have achieved my required result, which is a nice looking store. There are a couple of things taht are wrong though.

 

My store is here www.directbears.co.uk and the template that i have purchased is at osc4.template-help.com/osc_29581/.

 

I can't get the banners to fit in the correct place and i could also do with a bit of advice with shipping modules etc.. i did have all this set up on my previous shop and i have a complete backup, so whether they can be copied over etcc.. i could really do with some advice.

 

I have copied the banner code into the header from the footer and moved in into different lines etc.. but it is either to far left, central etc.. and a great big gap before my teddy bears start to appear.

 

Please help and advise...

 

Thanks

 

Neil

Posted

I have copied the banner code into the header from the footer and moved in into different lines etc..

Something must have gone wrong there because in the source of the index.php some PHP code ( } ?> ) shows up at the bottom (might be displayed at the top now):

 

   </td></tr>

 }
?>
</table>
<!-- footer_eof //-->
</body>
<!--[if IE]>
 <link href="css/ie_stylesheet.css" rel="stylesheet" type="text/css" />
<![endif]--></html>

Posted

Thanks for being online. Have i copied the wrong code?

My guess is not the wrong code but not the complete code. I don't have a crystal ball to look into your files so I can not really tell, just guess.

Posted

My guess is not the wrong code but not the complete code. I don't have a crystal ball to look into your files so I can not really tell, just guess.

 

This is the original footer code. There might even be more code in the .php files...

 

<?php

/*

$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<?php

require(DIR_WS_INCLUDES . 'counter.php');

?>

</td></tr>

</table>

</td></tr>

<tr><td class="row_4">

<table cellpadding="0" cellspacing="0" border="0" align="center" class="footer width_table">

<tr><td class="footer_td"><span><a href="<?php echo tep_href_link('specials.php')?>"><?php echo BOX_HEADING_SPECIALS?></a>     |     <a href="<?php echo tep_href_link('advanced_search.php')?>"><?php echo BOX_SEARCH_ADVANCED_SEARCH?></a>     |     <a href="<?php echo tep_href_link('reviews.php')?>"><?php echo BOX_HEADING_REVIEWS?></a>     |     <?php if (tep_session_is_registered('customer_id')) {

?><a href="<?php echo tep_href_link('account.php')?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a><?php } else

{ ?><a href="<?php echo tep_href_link('create_account.php')?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT?></a><?php }

?>     |     <?php if (tep_session_is_registered('customer_id')) {

?><a href="<?php echo tep_href_link('logoff.php')?>"><?php echo HEADER_TITLE_LOGOFF?></a><?php } else

{ ?><a href="<?php echo tep_href_link('login.php')?>"><?php echo HEADER_TITLE_LOGIN?></a><?php }

?></span><br><?php echo FOOTER_TEXT_BODY?>   <b><a href="<?php echo tep_href_link('privacy.php')?>"><?php echo BOX_INFORMATION_PRIVACY?></a>    |    <a href="<?php echo tep_href_link('conditions.php')?>"><?php echo BOX_INFORMATION_CONDITIONS?></a></b><!––{%FOOTER_LINK} ––></td>

<td class="footer2_td"><?php echo tep_image(DIR_WS_IMAGES.'paypal.gif')?></td>

</tr>

</table>

</td></tr>

<?php

if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<tr><td>

<table border="0" width="100%" cellspacing="0" cellpadding="0" class="width_table"><tr><td align="center"><?php echo tep_display_banner('static', $banner); ?></td></tr></table>

</td></tr>

<?php

}

?>

</table>

Posted

This is the original footer code. There might even be more code in the .php files...

 

 }
?>
</table>

It looks like you left in the second and third line from the bottom up.

Posted

It looks like you left in the second and third line from the bottom up.

 

Have tried again but to no avail.

 

I am wondering if there are more .php files to alter ? Any idea

Posted

Have tried again but to no avail.

 

I am wondering if there are more .php files to alter ? Any idea

The } ?> is gone but the template looks an absolute mess now. It's a maze of tables now and not clear what you wanted where.

 

In cases like this you have to try to see what goes where. I did that (in the past, not lately) by adding border="1" when I saw e a table tag. And/or giving a table, tr, or td a background color to see what goes where. Often these template code could be simplified (it is often automated/Dreamweaver code and not necessarily the most efficient).

 

I suspect you put your banner code in a table that now messes everything up?

  • 9 months later...
Posted

The } ?> is gone but the template looks an absolute mess now. It's a maze of tables now and not clear what you wanted where.

 

In cases like this you have to try to see what goes where. I did that (in the past, not lately) by adding border="1" when I saw e a table tag. And/or giving a table, tr, or td a background color to see what goes where. Often these template code could be simplified (it is often automated/Dreamweaver code and not necessarily the most efficient).

 

I suspect you put your banner code in a table that now messes everything up?

 

Just forgot to say thankyou !!

 

Thank you

Archived

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

×
×
  • Create New...