VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ajithkumarts on June 12, 2012, 17:16:06 PM

Title: urgently help needed.............
Post by: ajithkumarts on June 12, 2012, 17:16:06 PM
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...............
Title: Re: urgently help needed.............
Post by: ajithkumarts on June 13, 2012, 04:33:49 AM
no one can answer?????????????
Title: Re: urgently help needed.............
Post by: seyi on June 14, 2012, 13:18:05 PM
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>';
?>


Title: Re: urgently help needed.............
Post by: ajithkumarts on June 14, 2012, 13:53:24 PM
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.........
Title: Re: urgently help needed.............
Post by: seyi on June 14, 2012, 14:22:22 PM
try


<?php
echo $this->cart->pricesUnformatted['billTotal'];
?>

Title: Re: urgently help needed.............
Post by: ajithkumarts on June 14, 2012, 15:36:44 PM
thaknks a lotttttt
Title: Re: urgently help needed.............
Post by: rupesh on July 13, 2012, 14:04:24 PM
 :P aNYbody succesful with this step!!