i have a problem.......
after user press confirm order button ....it display the " Thank you for your order! " ...and some other deatils.i want place a button here .....with some code..
so i edit the components/com_virtuemart/views/cart/tmpl/order_done.php file and place button...so button are fine..
code for the button is given below...
form action="https://www.ccavenue.com/shopzone/cc_details.jsp" method="post" >
<input type="hidden" name="Amount" value="AMOUNT">
<input type="hidden"name="Merchant_Id" value="xxxxx">
<input type="hidden" name="billing_cust_name" value="xxxxx">
<input type="hidden" name="billing_cust_address" value="xxxxxx">
<input type="hidden" name="billing_cust_country" value="xxxxxx">
<input type="hidden" name="billing_cust_tel" value="xxxxxx">
<input type="hidden" name="billing_cust_email" value="xxxxxx">
<input type="hidden" name="billing_zip_code" value="">
<input type="hidden" name="billing_cust_state" value="">
<input type="hidden" name="billing_cust_city" value="">
<input type="hidden" name="billing_cust_notes" value="">
<input type="hidden" name="delivery_cust_name" value="">
<input type="hidden" name="delivery_cust_address" value="">
<input type="hidden" name="delivery_cust_tel" value="">
<input type="hidden" name="delivery_zip_code" value="">
<input type="hidden" name="delivery_cust_state" value="">
<input type="hidden" name="delivery_cust_city" value="">
<input type="submit" value="Submit">
when the user press the submit button total amount and red marked fields need here.......how to get at least total amount variable in order_done.php page..
pls help me urgently...............
no one can answer?????????????
the variable $this->cart should contain the totals. Or maybe its empty by then. run this php code on the page to see what it contains:
<?php
echo '<pre>'.print_r($this->cart,1).'</pre>';
?>
very very thanks for ur replay....
first statement show an error......
second display a huge list.....
i think this is right..
[subtotal] => 178
[subtotal_tax_amount] => 0
[subtotal_discount] => 0
[subtotal_with_tax] => 178
hot to display........... means "echo" the subtotal_with_tax.........
try
<?php
echo $this->cart->pricesUnformatted['billTotal'];
?>
thaknks a lotttttt
:P aNYbody succesful with this step!!