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

psantamaria

  • Beginner
  • *
  • Posts: 5
Re: Can you turn off the confirm order?
« Reply #30 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

Artyomii

  • Beginner
  • *
  • Posts: 7
Re: Can you turn off the confirm order?
« Reply #31 on: November 28, 2012, 22:16:12 pm »
who decided how skip page-confirmation order?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10275
  • VirtueMart Version: 3+
Re: Can you turn off the confirm order?
« Reply #32 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
I do NOT do development work for hire.

Artyomii

  • Beginner
  • *
  • Posts: 7
Re: Can you turn off the confirm order?
« Reply #33 on: November 29, 2012, 19:05:08 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 )))

seanlang1

  • Beginner
  • *
  • Posts: 7
Re: Can you turn off the confirm order?
« Reply #34 on: December 05, 2012, 13:03:48 pm »
Thanks bunak!

Drakula2k

  • Beginner
  • *
  • Posts: 1
Re: Can you turn off the confirm order?
« Reply #35 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

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

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

tuananhasp

  • Beginner
  • *
  • Posts: 2
  • Skype Name: snowstar2811
Re: Can you turn off the confirm order?
« Reply #36 on: March 19, 2013, 18:04:24 pm »
Quote
All 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!
Joomla Developer

lindapowers

  • Full Member
  • ***
  • Posts: 1340
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: Can you turn off the confirm order?
« Reply #37 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.
http://www.comenaranjas.com - Navel oranges and clementines from Spain

servlet

  • Jr. Member
  • **
  • Posts: 318
  • WEB DEV LuSER
    • Фототапети
  • VirtueMart Version: 3.0.18
Re: Can you turn off the confirm order?
« Reply #38 on: May 14, 2013, 15:38:01 pm »
This option is needed in admin panel!!!

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

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

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

Does it work for registered users or only for unregistered?
I am using: Joomla 3.5.1 VM 3.0.18
Он-лайн магазин за фототапети http://mishelfoster.com

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 8986
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Can you turn off the confirm order?
« Reply #39 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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

glenns

  • Beginner
  • *
  • Posts: 6
Re: Can you turn off the confirm order?
« Reply #40 on: July 15, 2013, 06:35:18 am »
thank you bunak for your solution. works for me.

stAn99

  • Contributing Developer
  • Jr. Member
  • *
  • Posts: 64
    • One Page Checkout for Virtuemart 2
Re: Can you turn off the confirm order?
« Reply #41 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

----
RuposTel.com
www.rupostel.com
Your customized checkout solution for Virtuemart

Darkheart

  • Beginner
  • *
  • Posts: 12
Re: Can you turn off the confirm order?
« Reply #42 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
Code: [Select]
echo $this->checkout_link_html;
Find this line:       
Code: [Select]
<input type='hidden' name='task' value='<?php echo $this->checkout_task?>'/>and change it to:
Code: [Select]
<input type='hidden' name='task' value='<?php echo "confirm"?>'/>
After closing php tag add this:
Code: [Select]
<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:

Code: [Select]
// 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>

en jie rudd

  • Beginner
  • *
  • Posts: 36
Re: Can you turn off the confirm order?
« Reply #43 on: February 14, 2014, 08:53:01 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

vitaly-zdanevich

  • Beginner
  • *
  • Posts: 7
Re: Can you turn off the confirm order?
« Reply #44 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.