Author Topic: Can you turn off the confirm order?  (Read 39200 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: 26993
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

samlf3rd

  • Jr. Member
  • **
  • Posts: 108
Re: Can you turn off the confirm order?
« Reply #64 on: December 01, 2017, 18:28:11 pm »
I can confirm that I did have an (unknown) html folder in my template folder with default.php. When I renamed the file to default.php2 I then had a one-page checkout. No "Please confirm order" after I already clicked confirm once.

This is the override folder for people who don't know-its purpose is so you can create overrides that stay in place even when you update virtuemart.

Otherwise anything you customized in Virtuemart will over-write most of your files when you do an update. With an "html" folder in your template folder (by default-mine is named html2 actually-but vm still picks up the overrides) you can just copy the entire page from com_virtuemart (like default.php in my case) and then make changes to that file in your templates folder. It will cancel out vm's default.php and use yours instead.

So, yes I had an override that was the problem. Thank you for the help guys!