Developer forum

Forum » Rapido » Order print shows product and image links

Order print shows product and image links

Mafalda Correa
Mafalda Correa
Reply

Hi,

In the print option for orders, the links to product and image are showing. 

The price and total don't show up either... probably because of the links.

See the image:


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Mafalda

We did a fix for this in the latest hotfix. It works if you use the built in pdf functionality to print. If you need to implement on a solution not containing the ot fix, here is how we did it. 

Check if we are rendering a pdf:

bool isPdf = !string.IsNullOrEmpty(HttpContext.Current.Request.QueryString.Get("pdf")) ? true : false;

Then only set the link on the image, if we are rendering as pdf.

 

Best regards
Karsten Thuen

 
Mafalda Correa
Mafalda Correa
Reply

Hi Karsten,

I'm a little confused by your solution.

Is the idea to implement the links to PDF? Because in my version what I'm seeing is that you're adding the link to product and product image if is not PDF.

I've got my own working solution now, but I'm curious.

 

You must be logged in to post in the forum