News:

Support the VirtueMart project and become a member

Main Menu

Invoice layout - Terms not visible in standard payment

Started by rocktribal, February 18, 2019, 09:47:09 AM

Previous topic - Next topic

rocktribal

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

Jörgen

Using custom template ?
Try using protostar and see if it works.

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

rocktribal

Hi Jörgen thanks for reply,
i don't think template is something who interfere with pdf generation.

jenkinhill

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.
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

rocktribal

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

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

rocktribal

As you can see in image there is no override.

it is possible to change template depending the payment method?

Jörgen

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


Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.