Hi, there is a problem in invoice layout when the payment is "Standard" the terms not visible even the configuration "Append Terms of Service" is on (Invoice-standar.jpg).
When the payment is "Paypal" the terms is visible (Invoice-paypal.jpg).
Thanks for any help!!!
VirtueMart 3.4.0
Using custom template ?
Try using protostar and see if it works.
Jörgen @ Kreativ Fotografi
Hi Jörgen thanks for reply,
i don't think template is something who interfere with pdf generation.
Invoice is based on templates, default files are in components/com_virtuemart/views/invoice/tmpl/
Check that {vm:vendorlegalinfo} is included in the Invoice footer on the Invoices/Emails tab of Shop settings.
Thanks for reply Kelvyn,
the solution to use the {vm:vendor legalinfo} in footer and displayed to every page is not good. That which i don't understand is when the order complete with paypal the generate pdf contains the terms and when the order complete with standard is not contains the terms.
I found the terms in the line 77 (components/com_virtuemart/views/invoice/tmpl/invoice.php)
if ($this->vendor->vendor_letter_add_tos) {?>
<div class="invoice_tos" <?php if ($this->vendor->vendor_letter_add_tos_newpage) { ?> style="page-break-before: always"<?php } ?>>
<?php echo $this->vendor->vendor_terms_of_service; ?>
</div>
<?php }
i don't understand where the problem is?
Thanks again
Change
<?php echo $this->vendor->vendor_terms_of_service; ?>
to
<?php echo 'Here comes vendor_terms_of_service <br />' . $this->vendor->vendor_terms_of_service; ?>
If You do not see the added text, then You have a template override.
Jörgen @ Kreativ Fotografi
As you can see in image there is no override.
it is possible to change template depending the payment method?
using the same vendor?
Jörgen @ Kreativ Fotografi
Yes with the same vendor.
Then You have to debug the php code line by line
insert this for example just before
if ($this->vendor->vendor_letter_add_tos) {?>
echo '<pre>';
print_r( $this->vendor )
echo '</pre>';
Examine the output from both payments and see what you get.
Jörgen @ Kreativ Fotografi