Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding to the Main Page


Guest

Recommended Posts

Posted

Hi, I am working on an osCommerce project currently and am in need of some major help. It would be greatly appreciated.

 

I need to extend the length of main page to add an image and some text centered below everything. Can I just add it as HTML to the index.php? I know basic PHP but I am still learning. Any help would be awesome. Thanks!

Posted

The answer is yes you can, but I suspect it would not give the effect you want.

 

Rather than wait for 15 hrs for a response I hope you have already tried it.

 

Probably /catalog/includes/footer.php is the place to put this code if yopu want it on every page.

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted
Hi, I am working on an osCommerce project currently and am in need of some major help. It would be greatly appreciated.

 

I need to extend the length of main page to add an image and some text centered below everything. Can I just add it as HTML to the index.php? I know basic PHP but I am still learning. Any help would be awesome. Thanks!

 

you should be able to use the banner manager to add banners below the footer on the main page. This might add them

to every page though as I have not tried it yet. You could imbed the text in the banner.

 

-Vicki-

Posted
you should be able to use the banner manager to add banners below the footer on the main page. This might add them

to every page though as I have not tried it yet. You could imbed the text in the banner.

 

-Vicki-

 

 

yeah.. i only want it on the main page

Posted

Your main page (index.php) probably ends something like this:

 

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Change to:

 

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>

<center>

PUT YOUR NEW ITEMS HERE

</center>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Your main page (index.php) probably ends something like this:

 

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Change to:

 

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>

<center>

PUT YOUR NEW ITEMS HERE

</center>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

 

 

but wouldn't that change all the pages? i only want it on the main page

Posted

What do you consider "all the pages"?

:unsure:

 

It won't show on your "Contact Us", "Login", "Shipping & Returns", etc., pages.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

i mean it should only appear on the main page... the page that site opens on but not any of the other ones... so i guess that would work... i'll try it out. Thanks!

Posted

Maybe you want this:

 

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
<?php
 if ( $cPath == '' ) {
?>

<center>

PUT YOUR NEW ITEMS HERE

</center>

<?php
 }
?>

</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

That will only display it if no categories are selected (I think).

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

it's weird.... when i add that... for some reason the whole format of the page changes... it is no longer centered...and the fonts are gone.. weird..

Posted

If you posted (or PM'd me) a link to the page, I might be able to tell you why.

 

Offhand, I'd say your have HTML errors (mismatched <table> tags most likely).

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...