Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Table Aligning Problem in Checkout... =(


Guest

Recommended Posts

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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...