4 replies [Last post]
STB100's picture
Offline
Joined: 10/24/2008
Juice: 3
Was this information Helpful?

I have installed Ubercart and had confirmation e-mails working fine. When I order using Admin, the confirmation e-mail looks fine.

If I order on any other user account, the confirmation e-mail comes through in plain text containing the words 'n/a'.

I thought this may be a permissions issue but I can't pin it down.

Also, I've noticed that the confirmation that does come through to the Admin user has zero values in the totals.

Any ideas?

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Order confirmation e-mail contains only the words n/a

This sounds like you're using the Drupal 6 version, which so far is unsupported. Growing Venture Solutions has sponsored notifications development work for D6, so I expect to see some movement there in a day or two.

ravi's picture
Offline
Joined: 10/31/2008
Juice: 2
It is issue due to filter module
STB100 wrote:

I have installed Ubercart and had confirmation e-mails working fine. When I order using Admin, the confirmation e-mail looks fine.

If I order on any other user account, the confirmation e-mail comes through in plain text containing the words 'n/a'.

I thought this may be a permissions issue but I can't pin it down.

Also, I've noticed that the confirmation that does come through to the Admin user has zero values in the totals.

Any ideas?

It is due to no permission for filter module for anonymous user.
On permission page, enable administer filters permission for anonymous user.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
ravi wrote:It is due to no
ravi wrote:

It is due to no permission for filter module for anonymous user.
On permission page, enable administer filters permission for anonymous user.

Don't do this!

It opens up your site to all kinds of terrible things. Anybody can make the PHP filter the default for anonymous or authenticated users, and you probably have comments enabled. Cross-site scripting is dead simple then.

However, this did lead me to figure out how to fix the problem in the code. In uc_order_mail(), there's a check_markup() call that needs to pass FALSE as the third argument to skip the filter access check.

ron_s's picture
Offline
Joined: 09/11/2008
Juice: 173
Re: ravi wrote:It is due to no

I'm having this problem using Ubercart 5.x-1.7. An anonymous user creates a profile at checkout time, submits the order, and they are informed that the order is successful and are given a user name and password.

The emails they receive all have "n/a" in them. I checked the use of check_markup() in Ubercart and seems as though the FALSE has been added everywhere except for a couple of places in uc_cart, including under "completion_message".

Any thoughts on what might be causing the problem?