News:

Looking for documentation? Take a look on our wiki

Main Menu

How to skip last confirmation step

Started by victorjonsson, March 03, 2014, 22:41:50 PM

Previous topic - Next topic

victorjonsson

Hi there.

I've searched  but i can't find out how to edit the checkout steps. (I've found bits and pieces but nothing that has worked)

I think the last confirmation step is unnecessary and i'd like to get rid of it.

When the customer has entered his/her address and confirmed the terms of service, it should just go to the payment. Not show the cart/information again with a message saying "You've entered all information".

Could someone PLEASE tell me how to skip this last step? Or how I can manipulate the steps in general?

I'm running version 2.0.24 on Joomla! 2.5.8

Thanks in advance, Victor

Peter Pillen

in the file components\com_virtuemart\views\cart\view.html.php

change this @ line +/- 150

         if ($cart->getDataValidated()) {
            $pathway->addItem(JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'));
            $document->setTitle(JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'));
            $text = JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU');
            $checkout_task = 'confirm';
         } else {
            $pathway->addItem(JText::_('COM_VIRTUEMART_CART_OVERVIEW'));
            $document->setTitle(JText::_('COM_VIRTUEMART_CART_OVERVIEW'));
            $text = JText::_('COM_VIRTUEMART_CHECKOUT_TITLE');
            $checkout_task = 'checkout';
         }

to this

         //if ($cart->getDataValidated()) {
            $pathway->addItem(JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'));
            $document->setTitle(JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'));
            $text = JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU');
            $checkout_task = 'confirm';
         /*} else {
            $pathway->addItem(JText::_('COM_VIRTUEMART_CART_OVERVIEW'));
            $document->setTitle(JText::_('COM_VIRTUEMART_CART_OVERVIEW'));
            $text = JText::_('COM_VIRTUEMART_CHECKOUT_TITLE');
            $checkout_task = 'checkout';
         }*/

victorjonsson

Thank you P2 Peter!

That worked perfectly!

Unfortunate that I need to modify a core file but it's worth it.

Thanks again!