Output a Product View to a PDF!!!

  • Posts: 634
  • Thank you received: 16
11 years 2 weeks ago #131555

Need help finding a way to output a product view to a PDF.

I tried several PDF output extensions and methods like

dompdf, mpdf, tcpdf, wkhtmltopdf

but they seem only to work for regular joomla articles.

THIS SHOULD BE A PRIORITY FEATURE FOR THE HIKASHOP TEAM, but as far as I know this is not in their priority list.

Has anybody succeeded?

–––––––

As far as I understand it should work just tricking the method for building a DOMPdf workflow to make it compatible with the HikaShop views structure, so maybe the HikaShop tema can have a look.

docs.joomla.org/J2.5:Creating_PDF_views

Last edit: 11 years 2 weeks ago by PeterChain.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 2 weeks ago #131634

The method explained there should work not only for joomla articles but also for hikashop products. I don't see why it wouldn't work.
Did you try it ?

Please Log in or Create an account to join the conversation.

  • Posts: 634
  • Thank you received: 16
11 years 2 weeks ago #131635

Tried with several methods including the ones mentioned in the initial post and also with PhocaPDF and some other, each time starting form a clean clone of my site, then tried with a supersimplified template and NO.

NO.

Dramatic. It doesn't work. I get blank pages. Removed the header section. Blank Page. Removed the body tags and blank paga again.

With joomla native articles all of they work.

I think maybe there is some /html/view/somestuff.pdf.php to be built... don't know, I'm not an advanced coder.

Would be great that you implement this very much demanded feature or document a really working workaround.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 1 week ago #131661

The main issue on our end is that such PDF library weights several MB. DomPDF for example weights 7MB when compressed. That's more than 3 times the weight of the whole HikaShop install package. Including such PDF library would create lot of install issues on servers with heavy restrictions. So we can't include that by default in HikaShop. It would need to be done as a plugin. Also, usually, the rendering from HTML to PDF is less than perfect and thus requires a separate view from the default HTML view. So that's again more complex for the users who would have to apply their modifications to both files (and the same for new features on our end).
Nothing is impossible of course, it's not as easy as it sounds, as you have seen.
Unfortunately, you see is as a very much demanded feature, but it's not. We only had handful of requests for that and we try to focus on what has been requested more first.
If that's something that you really would like to see rapidly for HikaShop, I can only invite you to seek help with third party developers like polishedgeek.com
They would be able to develop it as a plugin for you.

The following user(s) said Thank You: PolishedGeek

Please Log in or Create an account to join the conversation.

  • Posts: 634
  • Thank you received: 16
11 years 1 week ago #131662

Thank you very much Nicolas, is always a pleasure to change views with the HikaShop Team.

I understand perfectly it is not easy, and of course, is very demanded from my clients which is not a real sample of your woeldwide clients.

Please take my demands as a suggestion, not as a complaint.

I'm actively working in my second HikaShop project and being proud of having chosen your component.

Best reagrds.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 1 week ago #131667

Yes no problem. We're happy that users like you share their requests and exchange with them so that we know what they want and can then make informed decisions on what to do next for HikaShop.
So as I said, we'll do it at one point if no one else does it before then, but it won't be in the short term.

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
8 years 3 months ago #246629

This is an old thread, but wondering if Peter ever got this made - I need it too.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 years 3 months ago #246663

Hi,

On our end, we didn't work on it so far. I can't answer for Peter, but I'm sure he will be able to share his story on this topic.
We've added additional triggers to views so it is a bit easier to add a button on the product page through a plugin trigger. But the rest is the same. having a PDF generated for a product is not as simple as it sounds at first.
We also have a lot more developer partners who could work on that for you if necessary :
www.hikashop.com/home/our-partners.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.074 seconds
Powered by Kunena Forum