VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: chancehoggan on October 18, 2011, 01:20:46 AM

Title: Can you turn off the confirm order?
Post by: chancehoggan on October 18, 2011, 01:20:46 AM
I would like to remove the step to confirm order and just move directly to checkout? How can I go about doing this?
Title: Re: Can you turn off the confirm order?
Post by: cas on November 10, 2011, 07:36:17 AM
Did you ever get an answer to your question?  I was wondering the same thing. 
Title: Re: Can you turn off the confirm order?
Post by: carbon on November 10, 2011, 09:18:46 AM
Every time I show a client (or shop user/tester) how the checkout process works they always ask. "Why do you have to click again (on what they perceive to be the same page ) to confirm the order?" This checkout flow existed in vm 1 I had hoped it would have disappeared in vm2
Title: Re: Can you turn off the confirm order?
Post by: Milbo on November 14, 2011, 16:54:24 PM
Carbon it is a legal thing. And please use the right words, maybe my words are wrong. But I just define now the words how I use them.

Check out, means afaik that there is a check, todo something. For exampel, Check in,.. you do a check (or get checked) to go in.

So the checkout is the check to get out of process. To go out of the shop. So you do a check. From the legal point, you check if all data is there todo a contract. Then the shopper is confirming this contract. So for exampel in germany the confirm is imho and afaik mandatory.

Okey, but in your country it seems to be legal, so lets find a way to todo it configurable. Go in FE/helpers/cart.php. Here the whole process is done. Look for the variable $this->_dataValidated. When this variable is set to true, then the confirm comes directly. The confirm should check the data again, the same as checkout (prevent hackers, outdated session and things like this), so it should work.

When you find a nice way, then we can add a if(VmConfig::get('validate_checkout')) and make it optional.
Title: Re: Can you turn off the confirm order?
Post by: Kangelova on November 23, 2011, 00:51:13 AM
This is a good point everyone is raising, I had the same questions from users asking why the process is two step. I haven't seen this handled like this on any website in the UK. From a legal perspective they are legally binded from the moment they click "confirm". I will try your method and see whether it works for me...
Title: Re: Can you turn off the confirm order?
Post by: PolishedGeek on November 23, 2011, 02:41:13 AM
Is there not a way to have the cart summary show at the top of the checkout page in VM2, so that way it will be all in one step? (Review, and then Place Order)
Title: Re: Can you turn off the confirm order?
Post by: Kangelova on November 27, 2011, 02:21:20 AM
Didn't get anywhere with this...still wants a confirmation...I tried to look into $this->_dataValidated and it was set to "true" everywhere in the cart.php... I am missing something. Or it is not my day today because every change and fix I try to implement does not work  ;D

*UPDATE*

Just did it. Now it goes straight to confirm order. For those with less experience in php here's the way:

in cart.php


/**
    * Remove the cart from the session
    *
    * @author Max Milbers
    * @access public
    */
   public function removeCartFromSession() {
      $session = JFactory::getSession();
      $session->set('vmcart', 0, 'vm');
   }

//CHANGE THIS LINE ->>   public function setDataValidation($valid=false) {
   
   $this->_dataValidated = $valid;
      //       $this->setCartIntoSession();
   }

//WITH THIS - >> public function setDataValidation($valid=true)
Title: Re: Can you turn off the confirm order?
Post by: cas on November 27, 2011, 05:59:12 AM
It works!  Great job Kangelova.  Thanks!

Milbo, it would be great if you could make this an admin option as you mentioned in your post. 

Thanks,
Chuck
Title: Re: Can you turn off the confirm order?
Post by: Milbo on November 27, 2011, 11:11:42 AM
oh there are so much other things todo.
Title: Re: Can you turn off the confirm order?
Post by: cas on November 27, 2011, 19:34:15 PM
I know, we're all way too busy!  Whatever happened to the good old days before technology!  Anyway, we appreciate all you do and hope you find the time for one more enhancement.   Thanks!
Title: Re: Can you turn off the confirm order?
Post by: nicole2292 on November 29, 2011, 07:00:59 AM
Thank you so much Kangelova for your assistance with this matter.

Cheers,

Nicole
Title: Re: Can you turn off the confirm order?
Post by: MikeUK on November 29, 2011, 07:17:43 AM
Quote from: cas on November 27, 2011, 05:59:12 AM
It works!  Great job Kangelova.  Thanks!

Milbo, it would be great if you could make this an admin option as you mentioned in your post. 


Personally, I think things like that are a very bad idea. It's called 'feature creep'. We now have what appears to be a working hack. Better to keep VM2 trim and not have masses of admin options covering every possibility. Not saying that this is not an important thing for some people (although the way VM does this exists commonly in ecommerce), but that could be said for many other potential features.
Title: Re: Can you turn off the confirm order?
Post by: cas on November 29, 2011, 07:39:08 AM
I agree we don't want to hack the code, but what choice do we have when we're told there isn't time to make it an admin option?  My customers are confused and asking me why do they have to confirm twice when they didn't change anything.  I agree with them.  I can't remember ever buying anything online that required me to confirm the same information twice.   I still hope you can find time to make it an admin option so we don't have to hack the code. 
Title: Re: Can you turn off the confirm order?
Post by: MikeUK on November 30, 2011, 19:41:11 PM
Quote from: cas on November 29, 2011, 07:39:08 AM
I agree we don't want to hack the code, but what choice do we have when we're told there isn't time to make it an admin option?  My customers are confused and asking me why do they have to confirm twice when they didn't change anything.  I agree with them.  I can't remember ever buying anything online that required me to confirm the same information twice.   I still hope you can find time to make it an admin option so we don't have to hack the code.

I'm not saying it's not a good idea for you and others here. But this is an open-source project. Anyone can make this change, and post it in the Development, Hacks and Tweaks section. New ideas / features don't always want to end up in the core, otherwise it gets bloated.

This is the great thing with open-source - we can change it to fit with our customers / business (which is our responsilbility, not VM's). For non-developers or those without time, there is the commercial jobs section, plus a number of developers around the forums that may be happy to do such a modification as a paid job,
Title: Re: Can you turn off the confirm order?
Post by: lemtrac on December 06, 2011, 19:15:49 PM
Quote from: Kangelova on November 27, 2011, 02:21:20 AM
Didn't get anywhere with this...still wants a confirmation...I tried to look into $this->_dataValidated and it was set to "true" everywhere in the cart.php... I am missing something. Or it is not my day today because every change and fix I try to implement does not work  ;D

*UPDATE*

Just did it. Now it goes straight to confirm order. For those with less experience in php here's the way:

in cart.php


/**
    * Remove the cart from the session
    *
    * @author Max Milbers
    * @access public
    */
   public function removeCartFromSession() {
      $session = JFactory::getSession();
      $session->set('vmcart', 0, 'vm');
   }

//CHANGE THIS LINE ->>   public function setDataValidation($valid=false) {
   
   $this->_dataValidated = $valid;
      //       $this->setCartIntoSession();
   }

//WITH THIS - >> public function setDataValidation($valid=true)

worked - thank you
Title: Re: Can you turn off the confirm order?
Post by: chancehoggan on December 06, 2011, 20:22:55 PM
Thanks!
Title: Re: Can you turn off the confirm order?
Post by: Venkko on January 05, 2012, 22:48:47 PM
It has been now allmost a month from the last post...

Is there any better way to do this at this point?

Thanks...
Title: Re: Can you turn off the confirm order?
Post by: archos on January 05, 2012, 23:48:42 PM
Hello,

I also would like to have this "confirm orderr" as an option.
I feel the less operation we have, the better business we do.
In a real shop nobody ask you if you really want to buy the product.
For a legal point of view, the product is yours after the paiement and
not after you add it on the cart, again like on "real life".
At this point you will have to confirm "again" your choice  by paying.
Just my 2 cents.
Title: Re: Can you turn off the confirm order?
Post by: ocsalb on January 16, 2012, 16:35:02 PM
Gracias!
Title: Re: Can you turn off the confirm order?
Post by: cas on February 05, 2012, 01:21:51 AM
Any update on this from the VM team?  I hate to hack the code, but we cannot have our customers doing a double checkout.
Title: Re: Can you turn off the confirm order?
Post by: natsuto on February 10, 2012, 03:19:58 AM
Better maintain the decoration of the VM2, there is no admin options cover all the possibilities the masses.
Title: Re: Can you turn off the confirm order?
Post by: MichaelStevens on March 12, 2012, 22:42:22 PM
The checkout process is atrocious. They come to the same cart screen and must hit the checkout button below 3x? And its like 6 steps?

The way it should be it should show the cart, when user clicks checkout they either sign in or fill in there billing info, enter credit card details and then final checkout where the order processes.
So, step 1: cart page with overview of items, sub total etc, click teh green checkout button to come to step 2 where you enter shipping and payment details, save and bring back to the cart to confirm order. So this way its only 3 clicks. Who ever thought of the idea to bring the person back to the cart page three time to checkout has no usability skills what so ever. Every client that I have upgraded to VM2 has complained, because its so dumb and anyone can think of a better way,
Title: Re: Can you turn off the confirm order?
Post by: modulis on April 30, 2012, 11:59:38 AM
It did not work for me. I`m using virtuemart 2.0.6
Title: Re: Can you turn off the confirm order?
Post by: bunak on May 14, 2012, 15:04:05 PM
Quote from: Kangelova on November 27, 2011, 02:21:20 AM
/**
    * Remove the cart from the session
    *
    * @author Max Milbers
    * @access public
    */
   public function removeCartFromSession() {
      $session = JFactory::getSession();
      $session->set('vmcart', 0, 'vm');
   }

//CHANGE THIS LINE ->>   public function setDataValidation($valid=false) {
   
   $this->_dataValidated = $valid;
      //       $this->setCartIntoSession();
   }

//WITH THIS - >> public function setDataValidation($valid=true)
Don't work for me also. VM 2.0.6
Title: Re: Can you turn off the confirm order?
Post by: bunak on May 14, 2012, 15:52:02 PM
So I resolved this problem by turn off checkout order. Directly redirect to confirmation when user going to basket.

in root \components\com_virtuemart\views\cart\view.html.php do like this (commit some rows)  loock about 110 row
if ($cart && !VmConfig::get('use_as_catalog', 0)) {
$cart->checkout(false);
}

// bunak - turn off confirmation [VM:2.0.6]
//---- 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';
}
----*/
$this->assignRef('checkout_task', $checkout_task);
$this->checkPaymentMethodsConfigured();
$this->checkShipmentMethodsConfigured();

Title: Re: Can you turn off the confirm order?
Post by: cas on May 19, 2012, 23:30:08 PM
Thanks Bunak, that works! 

Can the VM team PLEASE implement an admin option so we can choose whether to have the additional confirmation step during checkout.   We hate to hack your beautiful code, but until you make it an admin option, we have no choice.  Our US customers do not understand or accept this additional confirmation step.   I know folks in other countries need this extra step by law, so please just make it an admin option and the problem will be solved for everyone everywhere. 

Thanks,
Chuck   
Title: Re: Can you turn off the confirm order?
Post by: bunak on May 20, 2012, 22:37:48 PM
no,  cas, not all good
if user register all are ok - only 1 step

but in case if registration are needed:
if user not logged, after enter data for registration, VM show page - confirmation order again . Don't understood why?
Title: Re: Can you turn off the confirm order?
Post by: cas on May 21, 2012, 00:00:54 AM
All the more reason why we need this as an Admin option, so we're not having to hack the code for every release. 
Title: Re: Can you turn off the confirm order?
Post by: cas on July 17, 2012, 01:55:06 AM
VM team,

Any update on this?  We really need this to be an admin option to turn on/off the check-out double confirmation.
Title: Re: Can you turn off the confirm order?
Post by: lipes on August 01, 2012, 04:30:08 AM
double check to confirm one thing ..... it's too bad :|
argh....
and cant find solution without changing the code...
Title: Re: Can you turn off the confirm order?
Post by: psantamaria on October 12, 2012, 05:05:29 AM
I prefer having my VM always with it's latest version, so I don't want to hack the code because updates would override my hacks.
Is there any way to add the hack in the view, so I can leave on my template override and keep VM updated?

Thanks in advance
Title: Re: Can you turn off the confirm order?
Post by: Artyomii on November 28, 2012, 22:16:12 PM
who decided how skip page-confirmation order?
Title: Re: Can you turn off the confirm order?
Post by: PRO on November 28, 2012, 23:11:26 PM
I create my own checkout steps.

AND: as long as they click the "links" for "select payment" & "add billing" etc.
Then, they don't have the extra confirm.

You get the extra confirm when you click "checkout" then it redirects you to the payment page etc.

http://forum.virtuemart.net/index.php?topic=106459.0
Title: Re: Can you turn off the confirm order?
Post by: Artyomii on November 29, 2012, 19:05:08 PM
Quote from: PRO on November 28, 2012, 23:11:26 PM
I create my own checkout steps.

AND: as long as they click the "links" for "select payment" & "add billing" etc.
Then, they don't have the extra confirm.

You get the extra confirm when you click "checkout" then it redirects you to the payment page etc.

http://forum.virtuemart.net/index.php?topic=106459.0
Thanks, but I not quite understand how this me help.

After changes Bunak i now have three steps and it's great:
1. basket (page - confirmation order)
2. registration
3. and again page - confirmation order
But is necessary to remove the third step, how to remove the third step?

P.S. Sorry for my english )))
Title: Re: Can you turn off the confirm order?
Post by: seanlang1 on December 05, 2012, 13:03:48 PM
Thanks bunak!
Title: Re: Can you turn off the confirm order?
Post by: Drakula2k on December 26, 2012, 15:11:36 PM
Hi! I registered to post my solution to skip confirmation page for unregistered users. Thats it:

In cart.php in setpayment() and setshipment() functions replace this code

$mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart&task=checkout') );

to this:

$mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart&task=confirm') );
Title: Re: Can you turn off the confirm order?
Post by: tuananhasp on March 19, 2013, 18:04:24 PM
QuoteAll the more reason why we need this as an Admin option, so we're not having to hack the code for every release. 
I can do it, contact me!
Title: Re: Can you turn off the confirm order?
Post by: lindapowers on May 02, 2013, 23:13:52 PM
The problem is that you developers see an issue like this one easy to solve while people think, why the hell they didnt include this option?

The less we touch the code the less problems will get posted here.

We are nerds yes, we need an option that says "please click here to enable auto confirm", that is why we use Joomla.. to avoid touching code.

To the eyes of the public Virtuemart has a 2 step checkout and it doesn't matter if we have to change one line or 200 cause the option is not there.

Pls consider it for future updates.
Title: Re: Can you turn off the confirm order?
Post by: servlet on May 14, 2013, 15:38:01 PM
This option is needed in admin panel!!!

Quote from: Drakula2k on December 26, 2012, 15:11:36 PM
Hi! I registered to post my solution to skip confirmation page for unregistered users. Thats it:

In cart.php in setpayment() and setshipment() functions replace this code

$mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart&task=checkout') );

to this:

$mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart&task=confirm') );


Does it work for registered users or only for unregistered?
Title: Re: Can you turn off the confirm order?
Post by: Milbo on May 23, 2013, 19:52:59 PM
download here http://forum.virtuemart.net/index.php?topic=115877.0, I added it also for the category list.

Stupid is just that we have now 3 different kind of dragable lists in the code. I would like to have one js for it. But it is not loaded parallel it is just an "academic" thing.
Title: Re: Can you turn off the confirm order?
Post by: glenns on July 15, 2013, 06:35:18 AM
thank you bunak for your solution. works for me.
Title: Re: Can you turn off the confirm order?
Post by: stAn99 on October 02, 2013, 14:31:46 PM
Hello, this is exactly what we specialize in:
- there is no confirm page after clicking confirm button
- all the calculations are automatic over ajax and there is no need for further clicks to save them
- there are no links to the address views (BT or ST) and they just show at the same page
- the customer sees the shipping costs before saving his data into the database or session (it's still the database usually)
- it's all styled and you can choose color variants with our color picker

Many legislations require such summary as shown at the confirm page by Virtuemart. For example german law requires absolutely no other information between the confirm button and the total (there cannot be even the customer note). Because Virtuemart cannot provide the real gross total right above the confirm button, there must be a summary page or a 3rd party exntension installed.

Besides this our extension also adds a country specific details into the checkout logic
- Sweden - auto address from klarna social sec. number
- Norway - social security number is used by klarna, but never stored in the database
- Czech, Slovak, Hungarian, Polish - payment per shipping when a specific payment method is not eligible for a shipping method
- Italian - a special privacy checkbox (second agreement checkbox)
- US - simplified price and tax display
- Canada - simimilar to US, but a little bit different tax handling
- NL - a special company pairing symbol that needs to be entered per each order even logged or unlogged

Please check our commercial One Page Checkout solution at www.rupostel.com

Best Regards,
Stan Scholtz, RuposTel.com

Title: Re: Can you turn off the confirm order?
Post by: Darkheart on February 05, 2014, 00:10:09 AM
My solution with template overrides:
COPY from: components/com_virtuemart/views/cart/tmpl/default.php
TO: [yourtemplate]/html/com_virtuemart/cart/default.php

Comment out this line
echo $this->checkout_link_html;

Find this line:       <input type='hidden' name='task' value='<?php echo $this->checkout_task?>'/>
and change it to:
<input type='hidden' name='task' value='<?php echo "confirm"?>'/>

After closing php tag add this:
<a class="vm-button-correct" href="javascript:document.checkoutForm.submit();" name="confirm">
    <span>
<?php echo JText::('COM_VIRTUEMART_ORDER_CONFIRM_MNU'); ?>
    </span>
    </a>



The end of file should look like this:

// echo $this->checkout_link_html;
?>
<a class="vm-button-correct" href="javascript:document.checkoutForm.submit();" name="confirm">
    <span>
<?php echo JText::('COM_VIRTUEMART_ORDER_CONFIRM_MNU'); ?>
    </span>
    </a>
</div>
<?php // Continue and Checkout Button END ?>
<input type='hidden' name='order_language' value='<?php echo $this->order_language?>'/>
<input type='hidden' id='STsameAsBT' name='STsameAsBT' value='<?php echo $this->cart->STsameAsBT?>'/>
<input type='hidden' name='task' value='<?php echo "confirm"?>'/>
<input type='hidden' name='option' value='com_virtuemart'/>
<input type='hidden' name='view' value='cart'/>
</form>
</div>
Title: Re: Can you turn off the confirm order?
Post by: en jie rudd on February 14, 2014, 08:53:01 AM
Quote from: Kangelova on November 27, 2011, 02:21:20 AM
Didn't get anywhere with this...still wants a confirmation...I tried to look into $this->_dataValidated and it was set to "true" everywhere in the cart.php... I am missing something. Or it is not my day today because every change and fix I try to implement does not work  ;D

*UPDATE*

Just did it. Now it goes straight to confirm order. For those with less experience in php here's the way:

in cart.php


/**
    * Remove the cart from the session
    *
    * @author Max Milbers
    * @access public
    */
   public function removeCartFromSession() {
      $session = JFactory::getSession();
      $session->set('vmcart', 0, 'vm');
   }

//CHANGE THIS LINE ->>   public function setDataValidation($valid=false) {
   
   $this->_dataValidated = $valid;
      //       $this->setCartIntoSession();
   }

//WITH THIS - >> public function setDataValidation($valid=true)

This solution worked perfectly until I enabled VM (2.0.26) default 'one page check out', it then all went back to the original state. Any ideal how to solve this?

Thanks for any help in advance.

Regards

En Jie
Title: Re: Can you turn off the confirm order?
Post by: vitaly-zdanevich on February 25, 2014, 11:08:10 AM
Darkheart, your solution not work for me - after this changes I broke my ordering - user must push Buy again and again and see order page.
Title: Re: Can you turn off the confirm order?
Post by: lefedor on July 16, 2014, 20:41:03 PM
at
/components/com_virtuemart/views/cart/view.html.php
find a line:
$checkout_task = 'confirm';
add next 2 lines:

//WSS FFL 07.2014
$mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=cart&task=confirm') );
return;
Title: Re: Can you turn off the confirm order?
Post by: interludic on October 30, 2014, 02:09:41 AM
VM 2.9.9.2
Changing line 125 of D:\www\templates\beez3\html\com_virtuemart\cart\default.php (using an override)

to Code:

<input type='hidden' name='task' value='confirm'/>

worked for me...
Title: Re: Can you turn off the confirm order?
Post by: lindapowers on October 30, 2014, 09:07:45 AM
Quote from: stAn99 on October 02, 2013, 14:31:46 PM
Hello, this is exactly what we specialize in:
- there is no confirm page after clicking confirm button
- all the calculations are automatic over ajax and there is no need for further clicks to save them
- there are no links to the address views (BT or ST) and they just show at the same page
- the customer sees the shipping costs before saving his data into the database or session (it's still the database usually)
- it's all styled and you can choose color variants with our color picker

Many legislations require such summary as shown at the confirm page by Virtuemart. For example german law requires absolutely no other information between the confirm button and the total (there cannot be even the customer note). Because Virtuemart cannot provide the real gross total right above the confirm button, there must be a summary page or a 3rd party exntension installed.

Besides this our extension also adds a country specific details into the checkout logic
- Sweden - auto address from klarna social sec. number
- Norway - social security number is used by klarna, but never stored in the database
- Czech, Slovak, Hungarian, Polish - payment per shipping when a specific payment method is not eligible for a shipping method
- Italian - a special privacy checkbox (second agreement checkbox)
- US - simplified price and tax display
- Canada - simimilar to US, but a little bit different tax handling
- NL - a special company pairing symbol that needs to be entered per each order even logged or unlogged

Please check our commercial One Page Checkout solution at www.rupostel.com

Best Regards,
Stan Scholtz, RuposTel.com



Can't be more true. This component saved the nightmare of the checkout in Virtuemart 2 for our customers.
Title: Re: Can you turn off the confirm order?
Post by: dottornova on January 26, 2015, 12:46:11 PM
please
anyone know a solution working whit VIRTUEMART V3.0 TO TURN OFF CONFRM ORDER?

Title: Re: Can you turn off the confirm order?
Post by: GJC Web Design on March 09, 2015, 17:58:56 PM
I do this is the cart default template


<div class="checkout-button-top"> <?php
$this->checkout_link_html '<button type="submit"  id="checkoutFormSubmit" name="confirm" value="1" class="vm-button-correct" ><span>' vmText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU') . '</span> </button>';//added for direct chkout GJC
echo $this->checkout_link_html;
?>
</div>



it may bypass some validation
Title: Re: Can you turn off the confirm order?
Post by: Milbo on March 09, 2015, 18:07:51 PM
Quote from: stAn99 on October 02, 2013, 14:31:46 PM
For example german law requires absolutely no other information between the confirm button and the total (there cannot be even the customer note).
This is not true and VirtueMart is written by a german team, believe me we know the law.

Quote from: stAn99 on October 02, 2013, 14:31:46 PM
Because Virtuemart cannot provide the real gross total right above the confirm button, there must be a summary page or a 3rd party exntension installed.
Nonsense.

Quote from: stAn99 on October 02, 2013, 14:31:46 PM
Besides this our extension also adds a country specific details into the checkout logic
- Sweden - auto address from klarna social sec. number
- Norway - social security number is used by klarna, but never stored in the database
Done by our klarna plugin,

Quote from: stAn99 on October 02, 2013, 14:31:46 PM
- Czech, Slovak, Hungarian, Polish - payment per shipping when a specific payment method is not eligible for a shipping method
Done by our standard plugin, if you select the countries yourself, since vm2.0.0

Quote from: stAn99 on October 02, 2013, 14:31:46 PM
- Italian - a special privacy checkbox (second agreement checkbox)
Can be simply done with vm3 now.
Title: Re: Can you turn off the confirm order?
Post by: Milbo on March 09, 2015, 18:08:48 PM
Quote from: dottornova on January 26, 2015, 12:46:11 PM
please
anyone know a solution working whit VIRTUEMART V3.0 TO TURN OFF CONFRM ORDER?

You dont need that in vm3. Vm3 shows you directly the confirm button if anything fits. You dont need to click the button "checkout" and then you see the same again and you need to use "confirm". So in vm3, you just dont need it anylonger.
Title: Re: Can you turn off the confirm order?
Post by: fastpat27 on June 26, 2015, 22:28:49 PM
Quote from: Milbo on March 09, 2015, 18:08:48 PM
You dont need that in vm3. Vm3 shows you directly the confirm button if anything fits. You dont need to click the button "checkout" and then you see the same again and you need to use "confirm". So in vm3, you just dont need it anylonger.

Hi Milbo,
I would like to do away with the two step checkout then confirm also. You say VM3 just doesn't need to do this but I can't see an option to turn off/disable checkout. Could you possibly explain more or is this done by hacking the code? Hope you understand what I mean.

Thanks
FP

Joomla 3.4.1 VM 3.0.9.1
Title: Re: Can you turn off the confirm order?
Post by: Karion on July 08, 2015, 23:45:39 PM
Hello Milbo,

Same problem here. I would like to do away with the two step checkout and then confirm also. If that is posiible to take off in VM 3.0.9 , how it happen?

Thank's
K

Joomla 3.4.1 VM 3.0.9.1
Title: Re: Can you turn off the confirm order?
Post by: Karion on July 09, 2015, 00:14:23 AM
I found an explanation.
If not confirm the shipping method and payment method, VM ask confirmation twice. If you accept delivery of and the payment method first , works and goes directly to payments.
Whether it is possible to change that so simple check is sufficient in payment method and delivery method , without the approval of pressing the save button?
-K-
Title: Re: Can you turn off the confirm order?
Post by: MGHollander on July 09, 2015, 11:50:35 AM
That is a good explanation! I made the same conclusions. If I try to skip the confirmation by replacing the checkout button by the confirm button then I get a the COM_VIRTUEMART_CART_CHECKOUT_DATA_CHANGED message and I have to confirm again.

But still no solution. Anyone?

Joomla 3.4.3 & VM 3.0.9.4
Title: Re: Can you turn off the confirm order?
Post by: Karion on July 12, 2015, 01:18:21 AM
Do you know how to do "choose payment method" working without press "save" button??

-K-
Title: Re: Can you turn off the confirm order?
Post by: Studio 42 on July 12, 2015, 10:56:46 AM
Hi Karion,

You can add a javascript on click > submit, to call saving button.

Quote from: Karion on July 12, 2015, 01:18:21 AM
Do you know how to do "choose payment method" working without press "save" button??

-K-
Title: Re: Can you turn off the confirm order?
Post by: Karion on July 13, 2015, 01:32:33 AM
Ok, do you know the folder name where the changes need to be made?
Title: Re: Can you turn off the confirm order?
Post by: Teo66 on April 15, 2016, 15:39:21 PM
Please, is anyone know a solution working whit VM3.0 to TURN OFF order confirmation?
I try all but nothing working. Thank you!
Title: Re: Can you turn off the confirm order?
Post by: zeroscorte 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.
Title: Re: Can you turn off the confirm order?
Post by: FAUSTddd 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
Title: Re: Can you turn off the confirm order?
Post by: sibison on April 19, 2017, 13:41:36 PM
Above the code not working for me...plz update any other solution
Title: Re: Can you turn off the confirm order?
Post by: jenkinhill on April 19, 2017, 15:37:59 PM
See http://forum.virtuemart.net/index.php?topic=137077
Title: Re: Can you turn off the confirm order?
Post by: samlf3rd 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!
Title: Re: Can you turn off the confirm order?
Post by: manub23 on June 06, 2019, 10:38:23 AM
Quote from: jenkinhill on April 19, 2017, 15:37:59 PM
See http://forum.virtuemart.net/index.php?topic=137077
Here also no final solution :  http://forum.virtuemart.net/index.php?topic=137077

This is still no Solution ?