Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please help, weird text on checkout_shipping related to methods.


awarner20

Recommended Posts

Hi everyone, I have a weird one here and I'm at at the end of my skills.

 

Here's what's happening. When I add any items to my cart and hit checkout, the checkout_shipping.php page displays some odd text in an odd way, and in an odd order underneath the shipping method. Here's the original post in the UPS XML Rates thread. http://www.oscommerce.com/forums/index.php?s=&...t&p=1053258

 

I noticed this problem after installing UPS XML Rates, and thought that it was the problem, but after much testing, uninstalling, reinstalling, and uninstalling again, it seems that this is related to the checkout_shipping.php page. I'll explain further below.

 

And here's a picture of what it looks like with UPS XML Rates removed.

weird_text_noUPS.jpg

 

No matter what shipping method is installed, the same text is there.

 

So, I started commenting out code in checkout_shipping.php to try and isolate the cause. On this page around line 311, there is this code...

 

<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td class="main" colspan="3"><b><?php echo $quotes[$i]['module']; ?></b> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>

 

If I comment out this code, the weird characters change a bit. The title of the shipping method disappears, the bold text is gone, and some of the duplicate characters disappear. Here's a pic with the code commented out...

 

weird_text_nobold.jpg

 

Can someone please help me figure out what's going on here? I have been at this for awhile now and this is the closest I can get to solving this. Please. please; can someone take a look at this and help me? Maybe I'm looking at the wrong page?

 

Thanks for any attention to this...

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

it definitely looks like you copied something into a narrow table, so coding error.

 

Thanks Mibble,

 

Could you please elaborate on that and possibly offer a direction for me to go in? Are you confirming that there is indeed something wrong in the code I posted?

 

I have compared this to another checkout_shipping page from another store I administer, and from what I can tell, it's the same and that store does not have this weird text showing.

 

If it's a narrow table issue, I do have a CSS Buttons contrib and the Graphical Infobox also, but really don't see how those would affect something to cause this?

 

Any further advice is greatly appreciated if you would be willing?

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

please oh please, could someone help me to troubleshoot what could be causing this? I have changed everything I can think of (or better yet, know of) including the html and CSS code referenced above, and still I cannot solve this. I can not continue with the development of my store if this text cannot be removed.

 

Can anybody help me to understand what this code is calling and where to check these things, like "$quotes[$]['module']"?

 

<td class="main" colspan="3"><b><?php echo $quotes[$i]['module']; ?></b> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td>

 

I'm getting desperate...and worried.

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

PROBLEM SOLVED!!!!!

 

A BIG THANKS to JanZ for taking the time to help me personally with troubleshooting this problem!

 

I don't know if anyone will EVER run into this same problem again, but here's what was causing those weird characters to display on the checkout_shipping.php page.

 

In my header.php I was calling and external page called random_quotes.php. This page displayed random inspirational quotes underneath my header image everytime the page was refreshed. This page included the $quotes code and this was causing interference with the same code being on the checkout_shipping.php page.

 

Hope this helps somebody.

We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...