Product view as pdf download

  • Posts: 24
  • Thank you received: 0
  • Hikashop Business
3 months 5 hours ago #305853

-- HikaShop version -- : 4.0.3
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Chrome

I'm looking for a solution to auto generate the product page as PDF download.
Is there a way to obtain a printable products view?
A direct download, not applying print stylesheet.

Tried to bug my way through a possible solution below but it fails.

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

  • Posts: 66270
  • Thank you received: 9716
2 months 4 weeks ago #305864


If it's just for your own use, you can add ?tmpl=component to the URL of your product page, click on the print button of your browser and in the print prompt, select "save a PDF" and you'll get a PDF of the product page content.
If you want something automatic, so that your users can click on a button to get a PDF version of the product page, I'm afraid it would require the development of a full plugin. While the plugin could potentially reuse the data already loaded on the product page, it will still require generating your own HTML and CSS for the PDF version as the HTML to PDF libraries out there cannot handle all the HTML tags and CSS commands you would have on a normal website page.
That's what we had to do for the PDF invoice plugin we have on our marketplace.

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

Time to create page: 0.048 seconds
Powered by Kunena Forum