Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help with layout - where do I look ?


shirster

Recommended Posts

Posted

Hi everyone,

 

I know some HTML and CSS but am totally new to PHP. I was modifying my shop's layout and some text falls out of the middle frame. This is the page with the problem - http://shop.myhappsy.com/catalog/product_i...?products_id=40

 

By reading the source code -

 

  <div id="middleFrame">

<div id="middleContent">	<form name="cart_quantity" action="http://shop.myhappsy.com/catalog/product_info.php?products_id=40&action=add_product" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading" valign="top"><h1>HAPPSY Classic cap</h1></td>
		<td class="pageHeading" align="right" valign="top">$20.00</td>

 

I guess I probably need to change the 'align="right" to "left"', am I correct? If so, where do I look it up?

 

Many thanks in advance !

follow my heart, NOT my head

Posted
looks more of a problem with the table elements make sure you have no errors; use the w3c validator check your page

 

http://validator.w3.org/

 

thanks for your help, unfortunately it's not about getting the HTML validated. i sorta knew that it had to be the td class that was messing things up, but my problem was that i didn't know which file to edit...

 

luckily, after hours of searching and viewing almost each and every php files, the file in question was "product_info.tpl.php"....now i finally got the alignment right.

 

phew !

 

thanks again for your input ! ;)

follow my heart, NOT my head

Posted

Hi shirster,

 

I just check out your site and wonted to ask how you got the navigation "web design by shirster | powered by osCommerce" placed at the bottom of your site, was it easy, which file to i need to make changes for that?

 

oklay hope you have some time to reply

"

Posted
Hi shirster,

 

I just check out your site and wonted to ask how you got the navigation "web design by shirster | powered by osCommerce" placed at the bottom of your site, was it easy, which file to i need to make changes for that?

 

oklay hope you have some time to reply

"

 

 

Hi there,

 

Do you mean the text or position?

 

I use BTS so it might be totally different from yours (sorry I really dunno much about osc).

 

If you meant position -

 

I edited the "copyRight" class in the style sheet to control the position of the footer.

 

If you meant the text -

 

I edited the mainpage.tpl.php file.

 

Hope it helps !

follow my heart, NOT my head

Posted

Just checked my files again, if you wanna edit the text, looks like you can do so in this file -

 

catalog/includes/languages/english.php

 

look for this -

 

define('FOOTER_TEXT_BODY', ......

 

I think by editing this text here will do the trick. But im not 100% sure.

follow my heart, NOT my head

Archived

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

×
×
  • Create New...