Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Extra back slashes in email confirmation


sparkfun

Recommended Posts

I've been tweaking all day, and I can't seem to get this one bug stomped out...

 

In the confirmation emails, the "From" box has way too many characters, back slashes and quotes.

 

\"\\\"The shop\\\"\"

 

should be just

 

The shop

 

Also, in the email confirmation, I've managed to do some fun things to the checkout_process.php (thanks forum!) but before every $, there is a \

 

\$8.95

 

should be

 

$8.95

 

Have a gander:

Backslash-problem.jpg

 

I've looked into the currency.php file and attempted to strip tags from anything that might return a \$. I've edited the currency types through the admin backend as well as through the phpMyadmin, with no luck.

 

If I change the USD currency in admin from '$' to ' ' (nothing), everything is a-ok (no back slashes) but no $ either.

 

Stumped!

-Nathan

Link to comment
Share on other sites

I've been tweaking all day, and I can't seem to get this one bug stomped out...

 

In the confirmation emails, the "From" box has way too many characters, back slashes and quotes.

 

\"\\\"The shop\\\"\"

 

should be just

 

The shop

 

Also, in the email confirmation, I've managed to do some fun things to the checkout_process.php (thanks forum!) but before every $, there is a \

 

\$8.95

 

should be

 

$8.95

 

Have a gander:

Backslash-problem.jpg

 

I've looked into the currency.php file and attempted to strip tags from anything that might return a \$. I've edited the currency types through the admin backend as well as through the phpMyadmin, with no luck.

 

If I change the USD currency in admin from '$' to ' ' (nothing), everything is a-ok (no back slashes) but no $ either.

 

Stumped!

-Nathan

 

Hi,

Had a quick look at your site you have a problem on this page some boxes are appearing at the bottom

 

http://in2rowing.com/catalog/product_info....&products_id=28

 

If you want to remove any boxes do it in Files catalog/includes/column_left.php or column_right.php comment out by putting // in front of) the following lines that call for example

product_notifications.php

 

if ($check['count'] > 0) {

include(DIR_WS_BOXES . 'best_sellers.php');

} else {

// include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

// include(DIR_WS_BOXES . 'product_notifications.php');

}

 

Ok your other problem

 

These backslashes do not appear anywhere else on your site so have a look at the catalog/includes/languages/english.php

 

Look for this line and make sure it's the same:

 

define('LANGUAGE_CURRENCY', 'USD');

With No \ in front of USD i.e. '\USD'

 

Where is the currency.php file?

 

I'd like to know 'cause the only place I know is osC Administration Panel > Localization > Currencies but it's not a php fle it's a check box!

 

So anyway Good Luck.

 

Michelle.

Link to comment
Share on other sites

Yep - you found bug #32 to get fixed today... I think that shift came up when I was editing the left/right column.php. I only noticed it after many hours of work so I've got to go digging to find it.

 

currencies.php is under catalog/includes/classes/. Sorry, I spelled it wrong. It's the php script responsible for reading and correctly showing the various currency symbols and deliniators.

 

define('LANGUAGE_CURRENCY', 'USD');

 

No slashes. :o I feel a reinstallation coming. What a shame. Does anyone else have a recommendation?

 

-Nathan

 

Lance won in France! That was a fun three weeks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...