Author Topic: Product Detail Pdf  (Read 1593 times)

ShafanHameed

  • Beginner
  • *
  • Posts: 13
  • A beginner
  • Skype Name: Shafan.Hameed
Product Detail Pdf
« on: May 07, 2021, 23:09:54 pm »
Hi,
I am developing  website for my client using Virtuemart but i am stuck in one thing. How to design/re-design pdf layout that shows us product details ? I found out that it should be default_pdf.php file and if i type any text in it it shows but when i try to add any html or bootstrap class/ids/codes it do nothing. I am using VirtueMart Version 3.8.8 .

so to make the question simple.
How can i design/code virtuemart product details pdf file ?

Any help would be wonderful.
Thanks in advance

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3533
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Product Detail Pdf
« Reply #1 on: May 08, 2021, 11:52:48 am »
TCPDF does not accept any complicated CSS or HTML. Please google what TCPDF can handle.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

ShafanHameed

  • Beginner
  • *
  • Posts: 13
  • A beginner
  • Skype Name: Shafan.Hameed
Re: Product Detail Pdf
« Reply #2 on: May 08, 2021, 12:18:25 pm »
Oh ok. and if i found a solution to style and grid based layout design then on which file should i have to implement it ?

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28147
  • Always on vacation
    • Jenkin Hill Internet
Re: Product Detail Pdf
« Reply #3 on: May 08, 2021, 13:56:52 pm »
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.24 PHP 7.4.14

ShafanHameed

  • Beginner
  • *
  • Posts: 13
  • A beginner
  • Skype Name: Shafan.Hameed
Re: Product Detail Pdf
« Reply #4 on: May 08, 2021, 22:18:21 pm »
Hi,
I have installed Phoca PDF plugin but after that pdf system crashed i think. Attaching screenshot with it. Its not loading the pdf file anymore. Even after disabling this plugin i am still getting this error. Any idea whats causing this and how to fix this ?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3533
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Product Detail Pdf
« Reply #5 on: May 09, 2021, 08:10:38 am »
Contact Phoca support perhaps ?
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

ShafanHameed

  • Beginner
  • *
  • Posts: 13
  • A beginner
  • Skype Name: Shafan.Hameed
Re: Product Detail Pdf
« Reply #6 on: May 21, 2021, 12:08:44 pm »
Ok. Thank you for your guidance and help. Really appreciated

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1162
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Product Detail Pdf
« Reply #7 on: May 21, 2021, 12:31:31 pm »
Yes, it is crashed, because Max take original phoca pdf solution (it is open source, isn't it? :), rename headers as virtuemart developped without cooperation with Jan, but use the same path as for phoca pdf libraries.

You have to contact phoca support (Jan - we talked about this yesterday), but I have no idea if you are find right solutions :)

Maybe delete VM TCPDF before instalation Phoca PDF.

Good luck!
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4455
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Product Detail Pdf
« Reply #8 on: May 21, 2021, 13:43:38 pm »
Yes, it is crashed, because Max take original phoca pdf solution (it is open source, isn't it? :), rename headers as virtuemart developped without cooperation with Jan, but use the same path as for phoca pdf libraries.
Since what year ?
PDf support was added at begin of Vm1.9 by me and we never used phoca code for this

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1162
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Product Detail Pdf
« Reply #9 on: May 21, 2021, 14:39:41 pm »
I don't know exactly for which version, I have only info from Phoca (Jan) by Joomla Cafe Day (every week we are talked on chat about future Joomla nad ecommerce in Czech republic)

- are the same files (with grafic and fonts), only header rewrited and use the same paths for libraries == after instal pdf is crashed

I will to check on week and check with VM 1.9 and EasyVM 1.9 too.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

ShafanHameed

  • Beginner
  • *
  • Posts: 13
  • A beginner
  • Skype Name: Shafan.Hameed
Re: Product Detail Pdf
« Reply #10 on: May 22, 2021, 00:58:50 am »
The problem still remains the same. I tried to contact PhocaPDF team and they told me that the current version is outdated and not being updated long ago. And i should try Phoca Cart instead of VM. What i am asking. Is there any solution if a pdf system is crashed due to trying to install PhocaPDF. What should we do to make things work properly. And is there any solution VM has to offer either Free or Premium so that users can Style PDF files to the way they want or atlest pdf generated results can be modified ?

Providing this opportunity in shape of a plugin and/or an extended extension should be a good idea. No one wanted to follow the old pattern of PDF generated files unless they are going to use the boring styles of templating which comes with pre-installed packages. Now a days almost every person like to design their own website according to their needs one way or another.

If there is any solution that this issue can be fixed then please share the solution and also if any alternatives to self generated pdf files so VM users can design according to their needs will also be appreciated.

Thanks in Advance

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1162
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Product Detail Pdf
« Reply #11 on: May 22, 2021, 09:38:48 am »
We use pdf system for tickets or gift card from customized death app RD-e Tickets too.

So every pdf system it must be very simple, because you can't render every html element.

Then right question is other - need final customers really any pdf system?
Use pdf system  amazon for customer?

I don't think so.

But if you need, try others pdf system - from RSForm PRO
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

ShafanHameed

  • Beginner
  • *
  • Posts: 13
  • A beginner
  • Skype Name: Shafan.Hameed
Re: Product Detail Pdf
« Reply #12 on: May 22, 2021, 21:59:48 pm »
Means there isnt any proper solution of it. Also kindly let me know that my pdf system is not working after the installation of PhocaPDF how can i revert it to working condition as it was in the initial state.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3533
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Product Detail Pdf
« Reply #13 on: May 22, 2021, 22:34:08 pm »
Delete all occurencies of Phoca PDF and install the VM TCPDF again.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1162
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Product Detail Pdf
« Reply #14 on: May 23, 2021, 08:18:33 am »
Quote
Means there isnt any proper solution of it.

I am not saying that there is no right solution.
You have to search and test.
I will not do that for you.

But since I don't need your needs for product detail in PDF - as I wrote - the customer doesn't need this information in PDF (creating a product catalog in PDF using a PDF library is not the right idea - you generate problems unnecessarily), I'm not even looking for a final solution.
Anyway, from the experience with other systems and from the information on how PDF generation works, I know that it is not easy to create a PDF from a full HTML page.
That's why I won't even try.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates