Hyperlinks in order history view

Posts: 2
Joined: 05/13/2008

Hi everyone, hoping someone with more experience with Drupal and Ubercart can lend me a hand, as I am relatively new to both.

We're using UC mainly as an invoicing system. We do not have a product catalog, so we use the Add Blank Line to input products. What I'm trying to do is to create a hyperlink of the product name using the a href tag, but when I view my invoice as a customer, I see the html code, instead of just a link. When I click to view a printable invoice, the link shows up just fine.

I have included 2 screenies, the first is when a customer views the invoice, it shows the full html code.

The second is the admin view of the order, the product title is still in full html code, while the order comment shows up as a link.

What do I need to change so that the html displays properly?

AttachmentSize
1.jpg41.9 KB
2.jpg51.83 KB
Posts: 2
Joined: 05/13/2008

I think I have found the problem, but not the solution.

When I view the source, the greater than and less than symbols are stripped down to < and >

Changing the input filter has no effect. Anyone have any solutions?

Posts: 3774
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

The main trouble here is that product titles are wrapped in a Drupal function called check_plain() for security before getting displayed on admin screens. There isn't really a solution, though you may be able to get away with putting the links into the order comments instead. My hunch is that even those won't do what you're looking for. You may need to code a custom order pane that will accept URLs and generate links for them.