Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Issue Editing index.php


Guest

Recommended Posts

Posted

Hi All,

 

First time poster, great to see such a thriving community!

 

My issue is probably quite simple, arnt they all....I've purchased a template online after playing with a few test installations, I have decided to take the template and now customise it towards the style / colours and images I require which is all no problems.

 

One thing I wish to do is type text above the 6 products that are displayed on the index.php file, of the domain located here:

 

http://kpgc.com.au/osc/

 

The text I entered - "ppppppp" appears on the left as I expected and moves everything down. I wish to have the 6 Products appear at the base of the text (and HTML Content) once I enter it however would ike the Categories side bar to stay fixed to the top of the body.

 

Any ideas? What am I missing?

 

Cheers,

Kpgc.

Posted

this is a little confusing, can you explain further?

 

which 6 products; and what do you mean by "products"? (product name, image, etc)

 

ck

 

* maybe 'create' a screenshot of what you want it to look like

Posted
this is a little confusing, can you explain further?

 

which 6 products; and what do you mean by "products"? (product name, image, etc)

 

ck

 

* maybe 'create' a screenshot of what you want it to look like

 

text.JPG

 

 

I would like to put HTML in the section where indicated on the image above as opposed to the site at the moment - http://www.kpgc.com.au/osc

 

Cheers.

Posted

In your /osc/index.php find this code:

 

<!-- Welcome box start -->
 <!--   <table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="main"></td>
	  </tr>
	  <tr>
		<td></td>
	  </tr>
	  <tr>
		<td class="main"></td>
	  </tr>
	</table>  -->



<!-- Welcome box end -->

Change it to:

 

<!-- Welcome box start -->
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="main">You can put some text here.</td>
	  </tr>
	  <tr>
		<td class="main">You can put some text here.</td>
	  </tr>
	  <tr>
		<td class="main">You can put some text here.</td>
	  </tr>
	</table>



<!-- Welcome box end -->

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
In your /osc/index.php find this code:

 

<!-- Welcome box start -->
 <!--   <table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="main"></td>
	  </tr>
	  <tr>
		<td></td>
	  </tr>
	  <tr>
		<td class="main"></td>
	  </tr>
	</table>  -->



<!-- Welcome box end -->

Change it to:

 

<!-- Welcome box start -->
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="main">You can put some text here.</td>
	  </tr>
	  <tr>
		<td class="main">You can put some text here.</td>
	  </tr>
	  <tr>
		<td class="main">You can put some text here.</td>
	  </tr>
	</table>



<!-- Welcome box end -->

 

 

Thanks for the help - I have limited... er next to no knowledge of PHP but learn well - this example taught me <!-- ignores whatever code is inbetween.

 

Cheers.

Posted

Actually, ignoring data between <!-- and --> is an HTML function, not 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 >

Archived

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

×
×
  • Create New...