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

Is there a way to print item "GTIN number" on the invoice?

Started by rage76, July 08, 2017, 09:49:49 AM

Previous topic - Next topic

Milbo

You forgot to mention, it works on some php versions. The reason that it worked for some and for others not.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rage76

Quote from: AH on August 05, 2017, 20:03:54 PM
The model has been adjusted to allow product fields to be included in the order view - when the next release is available you will be able to display the GTIN

$item->product_gtin

Dear AH, that is good news. This means I can wait for the next release. Am sure it is not too far now !!

rage76

Has this been implemented in 3.2.3.9614? How to print this in the invoice? BTW, when can we expect the next stable release?

rage76

My compliments to the VM team on releasing the stable VM 3.2.4

And I am happy to announce that I have updated it on my live site. I am trying to figure out how to print "GTIN Number" on the invoice.

Please guide !!

Thanks...

Milbo

Should now work in the loop with

echo $item->product_gtin;
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rage76

Quote from: Milbo on August 23, 2017, 19:38:47 PM
Should now work in the loop with

echo $item->product_gtin;


You mean I have to add this to a file to make it work? In that case please tell me the filename too !!

rage76


AH

Invoice items are handled by:

\components\com_virtuemart\views\invoice\tmpl\invoice_items.php

Create your own override to the invoice_items.php and include the display of the GTIN.

Put the new invoice items override in:-

\templates\yourtemplate\html\com_virtuemart\invoice\invoice_items.php
Regards
A

Joomla 4.4.5
php 8.1