News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

What/where is generating the invoice PDF

Started by zebrafilm, April 25, 2012, 10:47:40 AM

Previous topic - Next topic

edensan

the fact that my manufactorslogo is way big

if i set under configuration template then also my productimages are small

so product image must be 360x360

and logo must be 100x100

how do i do that?

gr edensan

[attachment cleanup by admin]

jenkinhill

Edit the header file to include in-line css for the image size. See components/com_virtuemart/views/invoice/tmpl/mail_html_header.php which already has this code to set the image width to the size of the original image.
" style="width: <?php echo $this->vendor->vendor_letter_header_imagesize; ?>mm;"

Use the edited file as a template override - see http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

edensan

#17
i did change the file from:

" style="width: <?php echo $this->vendor->vendor_letter_header_imagesize?>mm;"

to:


" style="width: 70 mm;"

no change on the pdf invoice stil verry big logo

what am i doing wrong?

joomla 2.5.16
vm 2.0.26d


gr and thanks for effort so far... appreciated

jenkinhill

Don't confuse px with mm. I suspect you need to use px in your style, and I'd use both height and width.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

fit

I still have the same issue a year later..... editing both templates has no effect on the pdf invoice generated. The pdf id currently very unformatted and not suitable for use with clients.

VM 2.6.14

Did anyone find a solution?

carsten888

#20
no. I gave up. Clients just get a silly looking invoice.

But then again, the huge pixalated image is sort of trendy, so maybe no one notices the image is just wrong.

Too bad about the SKU showing on the invoice. Online I can hide that with css/javascript, but not in the pdf.

AH

QuoteToo bad about the SKU showing on the invoice.

Create a template override - Copy :-
invoice_items.php

to:

templates/YOURTEMPLATE/html/com_virtuemart/invoice/invoice_items.php

And remove the sku elements


QuoteOnline I can hide that with css/javascript, but not in the pdf.

Again create an override - Copy :- details_items.php

to

templates/YOURTEMPLATE/html/com_virtuemart/orders/details_items.php

And remove the sku elements
Regards
A

Joomla 3.10.11
php 8.0

carsten888

@hutson
thank you, but that won't remove the sku from the pdf

AH

Regards
A

Joomla 3.10.11
php 8.0


AH

Have any of your invoice overrides functioned?

invoice_items.php

Invoice - PDF creation calls this file for its order line details

<td align="left" width="5%"><strong><?php echo vmText::_('COM_VIRTUEMART_ORDER_PRINT_SKU'?></strong></td>

AND

Quote<?php echo $item->order_item_sku; ?>
Regards
A

Joomla 3.10.11
php 8.0