News:

Looking for documentation? Take a look on our wiki

Main Menu

How to echo Payment Info ? (vmpayment_standard_payment_info)

Started by maxispin, December 03, 2016, 09:41:06 AM

Previous topic - Next topic

maxispin

VM 3.0.17

I don't figure out how to print/echo on Order emails 'vmpayment_info'.

<?php echo $this->orderDetails['paymentName'] ?>
Results (Payment Name + payment_desc) (I wonder why they has to be groupped so.. and where it is defined)

Could you please help me out?
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

GJC Web Design

saved in the #_virtuemart_payment_plg_xxxx  table each purchase

if u wanted just the name guess you need to query the  #_virtuemart_paymentmethods_en_gb etc table with the payment id or split up the current return
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

maxispin

I see.. not very handy..

the case is that payment method related additional information is needed to given after purchase, not on the frontend. Thus, the email is handy tool for that.

I need to figure out another solution.

How am I able to echo Anything from the database?    (This might be easy question, but I am not a coder.)
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

GJC Web Design

If u do want to just echo out the static info of the payment method I would just do a std.Joomla query for it in the email template .. Google!

But the name and/or desc might be in an object available in the email template.. u need to check
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

maxispin

I have googled but obviously not much enough :D

Thanks for encouraging  ;D
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

maxispin

Kind of work around... (better than nothing):

invoice_items.php

<td align="left" class="pricePad" colspan="6" style="border: 1px solid #CCCCCC;">
<?php echo $this->orderDetails['paymentName'] ?>
<?php if(substr($this->orderDetails['paymentName'],0 === "NameDescription" )) echo '<p>Pay your order with this bank account number' ?></td>

Not very stable solution..
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9

maxispin

Hurrey...

I just got it double and realized that cache was not emptied or something. The info is coded to be published, but I have no idea where..
VM 3.0.17.6 | VM 2.0.24c | VM 1.1.9