News:

Support the VirtueMart project and become a member

Main Menu

Modification in invoice

Started by artonweb, May 06, 2020, 10:07:25 AM

Previous topic - Next topic

artonweb

Hello.
I am using Joomla 3.9.18 and Virtuemart 3.6.10
I would like, when a shopper is choosing a payment method with large text of info, then in invoice document to view only the name of this method.
Is it possible?

GJC Web Design

Difficult because the name is taken from the #__virtuemart_payment_plg_xxxx table:: payment_name

If u look there you will see that the full html is stored there.

The payment id is available in the order object so u could do it by querying the payment name by id from #__virtuemart_paymentmethods_xx_xx
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

artonweb

Thank you for your reply.
I am thinking to solve the issue with some code.
For example if payment name is "one" then echo "a specific text".
Can you help me with this?

Jörgen

As GJC just Said, use the payment Id and query the __virtuemart_payment_plg_xxxx table for the name. You can also use payment Id directly, not so userfriendly but doable.
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

artonweb

#4
Thank you Jörgen.
Some code to do this in invoice_items.php
I am using standard payment method and I would like to hide the info of payment.

Jörgen

Ok, you have to figure out the code by yourself. What you can för easily is tagning your payment dedscription and use CSS to huden the portion you want. This only requires changed in your custom.css File.
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.