Hi everyone,
Since last few days I am working on checkout states of Virtuemart 2. I had upgraded virtuemart 1.1 to 2 and found out that the new virtuemart is quit comfortable to use and has lot of advanced features plugged in with. Also the front-end of first stage of checkout page is very user friendly.
Since, I have only one shipping and payment on my website model. I have enabled automatic shipment and payment method. This reduced total check step to 2 steps.
1st to check out now and 2nd to confirm the order.
Now my problem is can we merge these 2 steps?? I had been looking into the coding part, mugged up a lot, but couldn't figure it out :o. Can anyone give me some kind of guidance.
Thanks
Hi,
I do not know which plugin you are using for payment, but there I did change it.
Normaly a paymodule has a button and a javascript with a settimeout.
I use idealcheckout and in the code there was a button named "submit" and also a Javascript with does a submit();
I had to change the name of the button so this does not override the submit from the javascript, and set the timer to 1ms ;) .
The code is I have is now:
(/plugins/vmpayment/idealcheckoutideal/idealcheckoutideal.php)
Line:211
$html = '<form action="' . (JURI::root() . 'idealcheckout/setup.php?order_id=' . $sOrderId . '&order_code=' . $sOrderCode) . '" method="post" name="vm_idealcheckoutideal_form" id="vm_idealcheckoutideal_form"><input type="submit" name="submitbtn" value="Afrekenen met iDEAL" /></form>';
$html .= '<script type="text/javascript">function doSubmit() { document.forms[\'vm_idealcheckoutideal_form\'].submit(); } setTimeout(doSubmit, 1);</script>';
Hope this gives a hint where to find the solution :)
Kind regards,
Donovan
Hi, namangarg88
Have you been able to merge the 3rd and 4th step so there is only 1 confirm?
I use the standard payment method.
On this site: http://www.albertheemeijer.nl/nl/webshop-heemeijer
i need to confirm the checkout 2 times.
kind regards
roy
Dear All,
I was able to figure out the problem, I did some modification on payment plugin and now there is only 1 step for the check out.
Thanks for the support.