Jump to content

Asking address before displaying the cart


Guest

Recommended Posts

Hello PSers

 

I noticed that before being able to enter the shopping cart one must first provide a physical address. I'm not sure whether customers will actually appreciate this (I don't) so I'm wondering how others would feel about this as it is subjective.

 

my order process type = one page order

 

possible changes could be:

- ask address at registration (proven to decrease sales)

- ask address at payment, after displaying the cart

 

Has anyone altered this, and if so what would be the best way to proceed? Has anyone done testing to see whether changes have actually increased sales? Is it because of the one-page order setting that I have to work like this?

 

Thanks for your input.

Link to comment
Share on other sites

Maybe I'm over-thinking it? I just want the best user experience:

- cart page is always accessible even when empty (NOK when address is not found) EDIT

- one-page checkout with compact data to avoid long scrolling (OK)

- add addresses at checkout, not before (NOK)

 

Greatly appreciated your thoughts are.

Edited by Guest (see edit history)
Link to comment
Share on other sites

Do you mean in the one page checkout customers cannot find the cost of shipping until they have added their address?

 

That is why I much prefer the standard 5 step checkout with the shipping estimator module switched on

Link to comment
Share on other sites

No but I see that what you mention is also going to be an issue (didn't get there yet) so thanks for the headsup.

 

Test scenario where it came up:

- customer has no address entered

- customer want to see checkout page (empty or not doesn't matter)

- customer first HAS to add an address BEFORE the checkout page is even visible because of redirection to example.com/address?back=order.php%3Fstep%3D1

Link to comment
Share on other sites

No, that does not sound right. Sounds like a problem as it should not be like that

 

Do you have the URl so we can have a look?

Link to comment
Share on other sites

No, that does not sound right. Sounds like a problem as it should not be like that

 

Do you have the URl so we can have a look?

 

Thanks for your input.

Well I just checked on a clean install:

 

When logged in it seems when one-page checkout is enabled, the order and quick-order pages redirect to address (address?back=order.php%3Fstep%3D1) when there is no initial address created yet.

 

This does not happen with guest and visitor status accounts - as far as my limited tests can tell.

 

I'm going to find the redirect that causes this and override that part of the code - I'll post my findings here after.

Link to comment
Share on other sites

  • 1 year later...
  • 2 years later...

Well, I found the origin:

controllers/front/OrderOpcController.php

public function initContent()
{

//....///

        if ($this->isLogged) {
            $this->_assignAddress(); //HERE!
        }
}

Which will call this:
controllers/front/ParentOrderController.php

 protected function _assignAddress(){

}

And in there are two places where it's happening:

Tools::redirect('index.php?controller=address&back='.urlencode('order.php?step=1'.($multi ? '&multi-shipping='.$multi : '')));

and

Tools::redirect($this->context->link->getPageLink('address', true, (int)$this->context->language->id, $params));

Commenting both will result in a Notice for an undefined variable, but it'll show the order process.

Notice: Undefined property: OrderOpcController::$step


That's my quick fix for now, hope someone can find a cleaner solution?

Edited by theillo (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...