Echo $viewData["payment_name"]; inside HTML code

Hi,
I’m trying to rewrite this code

<div class="post_payment_order_number">
   <span class="post_payment_order_number_title"><?php echo vmText::_ ('COM_VIRTUEMART_ORDER_NUMBER'); ?> </span>
   <?php echo  $viewData["order_number"]; ?>
</div>

in to a page with PHP context. The code in this page is build up with HTML inside an PHP.

The first and second line is ok have I solved

echo '<div class="post_payment_payment_name">';
   echo '<span class="post_payment_payment_name_title">' .vmText::_ ('VMPAYMENT_STANDARD_PAYMENT_INFO').'</span>';

but how do I write this code:
<?php echo $viewData['displayTotalInPaymentCurrency']; ?>.

I tried this:
echo $viewData["payment_name"];

and this

echo '<div>'$viewData['payment_name']'</div>';

Can some help?

I don’t understand the question and there is no context. Does the $viewData array not exist?

Ok. I shall try to explain.

I have this code in a a file named orderdone.php.
As I understand it are HTML codes written inside a php tag and the HTML tags need to be enclosed with tow symbols like this ’ after echo.

So my question are:
How can I rewrite the following codes to fit the code inside the orderdone.php?

post_payment.php

I have solved the div tags and span tags with the code inside those tags, but I havn’t figured out how to write this code: <?php echo $viewData["order_number"]; ?>

I have tried this:
My solution

but the last line don’t echo nothing.

Sponsor our Newsletter | Privacy Policy | Terms of Service