Author Topic: Can you turn off the confirm order?  (Read 31511 times)

zeroscorte

  • Beginner
  • *
  • Posts: 11
Re: Can you turn off the confirm order?
« Reply #60 on: April 19, 2016, 09:54:34 am »
I may have found the solution:

Backend Joomla > VirtueMart > Configuration > Shopper Fields > tos  - Required: No -

 (no changes to files)

Should be tested.

FAUSTddd

  • Beginner
  • *
  • Posts: 9
Re: Can you turn off the confirm order?
« Reply #61 on: October 14, 2016, 06:37:54 am »
This method works only if there is no required fields. But if I need to field a required field as an email, then this method does not work.
open /components/com_virtuemart/views/cart/view.html.php

replace this:

$pathway->addItem(vmText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'));
$document->setTitle(vmText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'));
$text = vmText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU');
$this->checkout_task = 'confirm';

on this:

$pathway->addItem(vmText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'));
$document->setTitle(vmText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'));
$text = vmText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU');
$this->checkout_task = 'confirm';
header("Location: /cart.html?task=updatecart&option=com_virtuemart&view=cart&confirm=1");

but cart.html may be different

sibison

  • Beginner
  • *
  • Posts: 1
  • A beginner
Re: Can you turn off the confirm order?
« Reply #62 on: April 19, 2017, 13:41:36 pm »
Above the code not working for me...plz update any other solution

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26097
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.3.9614 on Joomla 3.7.4 PHP 7.0.22

Testing VM3.2.3.9614 on J!3.7.4