ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rishi Solanki <rishisolan...@gmail.com>
Subject Re: Catalog Manager: How to add a link for file download, to a Product?
Date Fri, 15 Feb 2013 08:06:39 GMT
Hi Arindam,

Probably you are looking for one of the  two options below;
1) System generates pdf on the basis of passed parameters to it. That means
see the orderheader.ftl in specialpurpose component, you will find anchor
tag for order.pdf which takes orderId as parameter. If you trace the
order.pdf request thru ecommerce controller then you find OrderPDF as its
view which set view-map.content-type="application/pdf".

2) You store a fixed pdf of product as content of that product and then
want to access it. That means see the controller of the ecommerce in
special purpose you will find a request as ViewSimpleContent, you can use
this request by passing the contentId in parameter, after click this will
automatically open the download window.

You can see many examples in *.ftl and *Forms.xml.

I hope it helps!

Rishi Solanki

On Fri, Feb 15, 2013 at 12:51 PM, Arindam Kesh <arindamkesh@yahoo.com>wrote:

> Hi,
> I have created a product using Catalog Manager UI and I am
> able to see the product in http://localhost:8080/ecommerce. Now I want
> to add a hyperlink to the product page. Using this hyperlink, I should
> be able to download a certain PDF document from the Ecommerce page. How do
> I do that?
> Please help.
> Regards,
> Arindam

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message