Guest Posted November 24, 2002 Posted November 24, 2002 Hi, Does anyone know where I can find these alignments for the table? I've been searching through the codes in checkout_payment.php, checkout_address.php and checkout_confirmation.php but I could seem to find where the code is. I did find this: tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="tableHeading"><?php echo TABLE_HEADING_SHIPPING_INFO; ?></td> <td class="tableHeading" align="right"><?php echo TABLE_HEADING_SHIPPING_QUOTE; ?></td> in the checkout_address.php and checkout_payment.php, but as you can see both is align to the right, but in both of the screenshots, number 1, it's definitely not aligned. As for screenshot 2, is there a way to align those? I have no idea where those codes are. :( Can anyone direct me where I can look? Thanks a million... :D http://mywebpage.netscape.com/CrashOverdosed/1.gif http://mywebpage.netscape.com/CrashOverdosed/2.gif Cheers
Julio Posted November 24, 2002 Posted November 24, 2002 Looking at that code, clearly states that is NOT what you;re looking for :wink:
Guest Posted November 24, 2002 Posted November 24, 2002 oops I think I mixed it up. The screenshot 2 is the ones with those codes.... Isn't it the TABLE_HEADING_SHIPPING_QUOTE that is showing that?
Julio Posted November 24, 2002 Posted November 24, 2002 If you're completely sure that's the code, then change the align="right" right after td: should look like: <td align="right" class="tableHeading"><?php echo TABLE_HEADING_SHIPPING_QUOTE; ?></td>
Guest Posted November 24, 2002 Posted November 24, 2002 Thanks for the quick reply Julio.. I just found out that I think the problem Might not be much in the coding.. ;( I've just checked this line <tr> <td><?php echo $shipping_modules->selection(); ?></td> </tr> Which my guess is, it call the selection from it... Hmm But I don't see how to align it tho... *sigh* But thanks again...
Luna Posted November 24, 2002 Posted November 24, 2002 It seems to me that this is in your shipping module. Look at the function selection()
Julio Posted November 24, 2002 Posted November 24, 2002 Luna is correct. It it inside your shipping module. I would gladly help you out, since I have learned PHP a bit very fast. But I have just finished installing my OSCommerce store about 5 minutes ago, so I don't know anything about it yet.
Guest Posted November 24, 2002 Posted November 24, 2002 Found the codes in includesmodulesshippingzones.php // class methods function selection() { $selection_string = '<table border="0" cellspacing="0" cellpadding="0" width="100%">' . "n" . ' <tr>' . "n" . ' <td class="main">' . (($this->icon) ? tep_image($this->icon, $this->title) : '') . ' ' . MODULE_SHIPPING_ZONES_TEXT_TITLE . '</td>' . "n" . ' <td align="right" class="main">' . tep_draw_checkbox_field('shipping_quote_zones', '1', true) . '</td>' . "n" . ' </tr>' . "n" . '</table>' . "n"; Looks pretty correct to me... Wierd that it actually misalign..
Guest Posted November 24, 2002 Posted November 24, 2002 YAY!! Thanks for all the help... I've finally found the problem... Stupid me... =) I forgot that I edited my css values of TD.main to justify, and in the codes, it justified my boxes, that's why it's so off... So what I did was created another css value of TD.main2 and edit the codes on the zones which looks like this: // class methods function selection() { $selection_string = '<table border="0" cellspacing="0" cellpadding="0" width="100%">' . "n" . ' <tr>' . "n" . ' <td class="main2">' . (($this->icon) ? tep_image($this->icon, $this->title) : '') . ' ' . MODULE_SHIPPING_ZONES_TEXT_TITLE . '</td>' . "n" . ' <td align="right" class="main2">' . tep_draw_checkbox_field('shipping_quote_zones', '1', true) . '</td>' . "n" . ' </tr>' . "n" . '</table>' . "n"; And it solved it... Thanks again... :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.