0
Hi,
I tried to modify one query in invoicemanager_virtuemart.php file in order to get the information about the product_unit field of a VirtueMart product. My purpose is to add a specific token about product unit, to be used in the template.
I tested my modified query in phpmyadmin panel and it works, so I assume query is correct. This query adds product_unit field to $orderitems variable.
Now, modifying $items array in the same file in order to consider this new token (I tried both to add this token in the end of the array and to replace one element already existing that it is not needed for my purposes), I cannot see any value for this token. Invoice lists always empty values for it. I tried also to modify something in /components/com_invoices/views/invoice/tmpl/default.php, with no success.
Is it possible for you to help me understanding where I am wrong, providing access to the files?
Thanks, Vittorio
I tried to modify one query in invoicemanager_virtuemart.php file in order to get the information about the product_unit field of a VirtueMart product. My purpose is to add a specific token about product unit, to be used in the template.
I tested my modified query in phpmyadmin panel and it works, so I assume query is correct. This query adds product_unit field to $orderitems variable.
Now, modifying $items array in the same file in order to consider this new token (I tried both to add this token in the end of the array and to replace one element already existing that it is not needed for my purposes), I cannot see any value for this token. Invoice lists always empty values for it. I tried also to modify something in /components/com_invoices/views/invoice/tmpl/default.php, with no success.
Is it possible for you to help me understanding where I am wrong, providing access to the files?
Thanks, Vittorio
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »