Author Topic: [SOLVED] SKIP unnecessary steps  (Read 6645 times)

Willc

  • Beginner
  • *
  • Posts: 29
[SOLVED] SKIP unnecessary steps
« on: June 12, 2012, 22:28:39 pm »
Hello.
I running VM 2.0.6 on Joomla 2.5.4. And I wanna know how can costumer can SKIP unnecessary steps.

User dont need be registered to buy. So, I wanna the steps go link this:

User see the cart, click to advance and appear edit adress, the same that appear by default. But when fill fields and click to advance, dont show the cart again, show SHIP METHOD, and when ship method select, dont show the cart again again. Show the Payment Screen.

I think costumer dont want to see cart every time.

Thanks

Willc

  • Beginner
  • *
  • Posts: 29
Re: SKIP unnecessary steps
« Reply #1 on: June 13, 2012, 14:02:48 pm »
I think the changes  are some like this:

Cart Login Form and Address Screen (with or without account creation) not redirect to cart again, redirect to Select Payment Screen.

Thanks

John2400

  • Virtuemart - the Future is ever Changing
  • Global Moderator
  • Full Member
  • *
  • Posts: 1568
  • VirtueMart Version: Use VM3.6+
Re: SKIP unnecessary steps
« Reply #2 on: June 13, 2012, 14:44:13 pm »
Willc,

Hi there are quite a few new extensions people are working on like the one page cart. ( you can search for that in the extensions area or on the net) quite  few like this.

The jump to cart or the step process I see is a configuration in VM1 and I can see a similar setting in VM2 (it didn't do exactly what I wanted either).
 Have  hunt for the one page cart- option.

Willc

  • Beginner
  • *
  • Posts: 29
Re: SKIP unnecessary steps
« Reply #3 on: June 13, 2012, 16:16:48 pm »
There are ONE solution with 3rd part extension for VM2.

I dont care to pay for, but it is SLOW. And not that I seeking.

Only I need now, is know how to change the redirection of EDIT ADDRESS page and CART LOGIN.

This currently redirecting to cart again. I wanna this redirect straight to SELECT SHIPMENT PAGE.

I think its not hard, but I dont know the core...

With this I can do my custom steps.


Thanks

Willc

  • Beginner
  • *
  • Posts: 29
Re: SKIP unnecessary steps
« Reply #4 on: June 13, 2012, 20:34:00 pm »
Find a way to change redirection of the edit adress pages.

I have just replace the following line in various functions in file:

components/com_virtuemart/controllers/user.php

Code: [Select]
$this->setRedirect(JRoute::_('index.php?option=com_virtuemart&view=cart') , $msg);
by this one

Code: [Select]
$this->setRedirect(JRoute::_('index.php?option=com_virtuemart&view=cart&task=edit_shipment') , $msg);
Hope that it help further googlers with the same problem.

Thanks

anotart

  • Beginner
  • *
  • Posts: 29
Re: [SOLVED] SKIP unnecessary steps
« Reply #5 on: June 15, 2012, 21:55:24 pm »
Excellent!  Thank you for posting this!

spyderwebdesign

  • Jr. Member
  • **
  • Posts: 132
Re: SKIP unnecessary steps
« Reply #6 on: June 17, 2012, 06:32:14 am »
Find a way to change redirection of the edit adress pages.

I have just replace the following line in various functions in file:

components/com_virtuemart/controllers/user.php

Code: [Select]
$this->setRedirect(JRoute::_('index.php?option=com_virtuemart&view=cart') , $msg);
by this one

Code: [Select]
$this->setRedirect(JRoute::_('index.php?option=com_virtuemart&view=cart&task=edit_shipment') , $msg);

What does this do?

anotart

  • Beginner
  • *
  • Posts: 29
Re: [SOLVED] SKIP unnecessary steps
« Reply #7 on: June 18, 2012, 01:31:33 am »
Instead of going back to the shopping cart after entering your address, it proceeds right to shipping selection.  This works great for a guest customer.  I've since run into a problem if a customer is registering at the same time as providing their address.

Jan2412

  • Beginner
  • *
  • Posts: 4
SKIP unnecessary steps
« Reply #8 on: July 30, 2012, 13:09:35 pm »
Hello,

how it is possible to edit the link-target of the submit (next) button of the shipping methods?

After selecting the shipment method and clicking on the next button i want to be redirected to the selection of the payment methods.
(simply adding an onClick-event like the following will be ignored:
Code: [Select]
<button class="button vm-button-correct" type="submit" onClick="window.location.href='<?php echo JRoute::_('index.php?option=com_virtuemart&view=cart&task=editpayment'); ?>'" ><?php echo JText::_('COM_VIRTUEMART_CONTINUE'); ?></button>)

Thanks in advance for your help
Jan