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

Two standard payment method with different text

Started by roman5527, January 12, 2020, 15:23:44 PM

Previous topic - Next topic

roman5527

Hi, i need two standard payment methods but with different text after send order.

ho i can do it ? thanks.

jjk

Not sure if that is what you want, but you can add any text (including html code) into the payment description text field. The payment description is included in the order emails.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

pinochico

We use Virtuemart Mailing Manager for this:

- setup rules and create different templates
or
- use conditional content in one template for customer email
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

GJC Web Design

or just detect the payment id in orderdone.php and switch what ever message applies by php
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

roman5527

Hi, GJC Web Design .

i cant edit it in plugins/vmpayment/standard/standard/tmpl/post_payment.php ???? because in this file is text for order done for this payment method.

and how i detect payment id please ?

thanks

GJC Web Design

there or in orderdone

see what is in  $viewData -- if your lucky the payment method ID -- if not you have to find some other method to find the ID
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

roman5527

Hi, thanks.

$viewData contains payment_name .
if someone needed, my code in plugins/vmpayment/standard/standard/tmpl/post_payment.php is :

<?php 

$dobierka 
'Dobierka';
$meno_platby $viewData["payment_name"];
$meno_platby2 strpos($meno_platby$dobierka);

?>




<?php 
if ($meno_platby2 === false) {
?>

<div style="width:100%;">
<?php echo '<div style="color:#32a840;width:100%;font-size:16px;">'vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU_TEXT1_PREVOD_NA_UCET').'</div>'?>
<?php echo '<div style="color:#32a840;margin-bottom:20px;width:100%;font-size:16px;">'vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU_TEXT2_PREVOD_NA_UCET').'</div>'?>
</div>

<?php } else { ?>

<div style="width:100%;">
<?php echo '<div style="color:#32a840;width:100%;font-size:16px;">'vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU_TEXT1').'</div>'?>
<?php echo '<div style="color:#32a840;margin-bottom:20px;width:100%;font-size:16px;">'vmText::_('COM_VIRTUEMART_CART_ORDERDONE_THANK_YOU_TEXT2').'</div>'?>
</div>
<?php ?>