Author Topic: paying method in invoice  (Read 420 times)

centinela

  • Beginner
  • *
  • Posts: 41
  • A beginner
paying method in invoice
« on: October 30, 2020, 11:23:53 am »
Hello, how can I show the paying method used in the inovices? At the moment that field is blank. Thank you,

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3134
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: paying method in invoice
« Reply #1 on: October 30, 2020, 12:43:09 pm »
Look at the original file, not the overridden file from Your template and see how it is done. It is shown by default.

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

centinela

  • Beginner
  • *
  • Posts: 41
  • A beginner
Re: paying method in invoice
« Reply #2 on: October 30, 2020, 15:18:22 pm »
Sorry Jörguen, could you please specify where can I find the original file? Thank you,

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9887
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: paying method in invoice
« Reply #3 on: October 30, 2020, 15:53:00 pm »
<?php echo $this->orderDetails['paymentName']; ?>

components\com_virtuemart\views\invoice\tmpl\invoice_order.php
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 806
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: paying method in invoice
« Reply #4 on: October 30, 2020, 16:03:37 pm »
1. First learn how function Joomla and MVC - find on Joomla DOC - what is view, what is layout, what is template, where do you find layout/template for view from HTML code, which is different between basic template (invoice.php) and sublayout (invoice_items.php)
2. Try this
- Show the invoice
- Use Inspect element for showing the html code
- Find mark about view and tmpl - on body or html mark
(Etc: on body mark I see -> contentpane x-c-s option-com-virtuemart view-invoice lang-en-GB => then I know, this view is from component VirtueMart and view Invoice.)
(Etc.: in URL I see -> index.php?option=com_virtuemart&view=invoice&layout=invoice&tmpl=component => then I know. the layout is invoice)

Ok, now I go to FTP, find folder component (this is for FE - frontend), the subfolder com_virtuemart (this is OPTION == COMPONENT), then subfolder views (there are all views for FE), then subfolder invoice (this is VIEW), then subfolder tmpl (this is LAYOUT), then find file invoice.php (this is finally layout for invoice).
Inside this files is loaded some sublayout (invoice_order.php, ...)

So if I know which file I must change and know how function override in Joomla, then next action is very simple :)

Find in original file info about payment Name - find echo $this->orderDetails['paymentName']

Good luck for your a way...


To GJC:
If you post exact code, then people nothing will be to learn (never) and next time go again for solution (for personally free freelancer)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

centinela

  • Beginner
  • *
  • Posts: 41
  • A beginner
Re: paying method in invoice
« Reply #5 on: November 03, 2020, 16:33:34 pm »
Thank you all, but this is beyond me. In Orders I can see the paying method used, but in the downloaded version of the order the payment method is not there anymore. In
components\com_virtuemart\views\invoice\tmpl\invoice_order.php y have <?php echo $this->orderDetails['paymentName']; ?> so I don´t know what is going on.

The url is index.php?option=com_virtuemart&view=orders&task=callInvoiceView&tmpl=component, so it is a virtuemart template.


pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 806
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: paying method in invoice
« Reply #6 on: November 03, 2020, 16:53:23 pm »
Quote
The url is index.php?option=com_virtuemart&view=orders&task=callInvoiceView&tmpl=component, so it is a virtuemart template.

Yes, component is virtuemart
Yes, in URL is not administration, then view is for frontend (you must search in folder on FTP - root/components/com_virtuemart)
No, view is not invoice, but orders
No, tmpl is not DEFAULT (inside folder tmp, inside view orders), but TASK=> task is function in model ORDERS (because you have view orders) or function in VIEW.HTML.PHP for orders == this function you can not override, then you must hack core code VirtueMart or develop custom plugin for override or look inside this task (function) - I think maybe call another view?....
No, tmpl=component is special format from template for VIEW without head, headers, menu, footer, ... - try find on Joomla DOC - is not from VirtueMart
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3134
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: paying method in invoice
« Reply #7 on: November 03, 2020, 19:33:18 pm »
It is not a Virtuemart template, all templates are Joomla templates.
Check:
tempates/your_used_template/html/com_virtuemart

If You rename this folder temporary, you can "unpublish" a bit of the template for the virtuemart component.
If This brings out the oayment name, You will have to work You way throgh the override files and see how you insert the code that is missing.

This is an issue with Your template, have You checked with Your template supplier about this ?

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

centinela

  • Beginner
  • *
  • Posts: 41
  • A beginner
Re: paying method in invoice
« Reply #8 on: November 05, 2020, 17:25:32 pm »
It is not a Virtuemart template, all templates are Joomla templates.
Check:
tempates/your_used_template/html/com_virtuemart

There is no /com_virtuemart in my template folder.

I think is something to do with the paying method plugin. All the PayPal payments show the paying method in the invoice, whereas all the credit card payments don´t. I will ask the plugin supplier. Thanks a lot.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 806
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: paying method in invoice
« Reply #9 on: November 05, 2020, 18:14:46 pm »
Quote
There is no /com_virtuemart in my template folder.  - I will ask the plugin supplier. Thanks a lot.

Right. This is the right solution.
Which payment plugin do you use?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27942
  • Always on vacation
    • Jenkin Hill Internet
Re: paying method in invoice
« Reply #10 on: November 06, 2020, 10:23:07 am »
There is no /com_virtuemart in my template folder.

Which tells us that template overrides for VirtueMart are not used by your Joomla template.

The deault disply for payment method used in an invoice is to use the Payment Name set in the Payment Method Information tab (in some cases followed by the Payment Description.  Check the entries for these in your plugin.

Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.7 10374 on Joomla 3.9.23 PHP 7.4.12