Hi, i need two standard payment methods but with different text after send order.
ho i can do it ? thanks.
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.
We use Virtuemart Mailing Manager for this:
- setup rules and create different templates
or
- use conditional content in one template for customer email
or just detect the payment id in orderdone.php and switch what ever message applies by php
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
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
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 } ?>