PrestaShop Forums: Mod help : Remove Select Address Screen - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


Mod help : Remove Select Address Screen


Mod help : Remove Select Address Screen

#1 Aaron @ Geocachestore

    PrestaShop Newbie

  • 03 Jun 2009
  • Members
  • Pip
  • 23 posts

Posted 03 June 2009 - 02:11 AM

I'm running a heavily modified version of PrestaShop and I'm only one step away from having a *workable* 'Guest Checkout' type function. The only thing I need to get rid of at this point is the 'Select Address' page.

The user has just entered their address, I just want to use the default address and not worry about Selecting it again. Can someone let me know how to modify the site to skip this step and just use the default? Ie that's what happens if you just click next on that screen, so I'm assuming it shouldn't be a big deal.

With this gone, the Guest Checkout functionality becomes workable as there are now actually less steps, hence happier customers.

Any ideas on how to skip this useless step?
FOR HIRE - Aussie PHP/MySQL Developer - PM me for a quote

Stuff I've worked on
[MOD] Paypal Fees passed on to customer [thread]

[MOD] Added Group Functionality for CMS / Info block [thread]

[MOD] Display Shipping Fees/Carriers prior to Checkout / AJAX [thread]

#2

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 03 June 2009 - 06:32 AM

Have you tried changing the link on the first page to go to the third page instead of the second and the third page to go back to the first?

Change line 202 of shopping-cart.tpl in your theme's directory from:

{l s='Next'} »


to:

{l s='Next'} »


and change line 94 of order-carrier.tpl in your theme's directory from:

« {l s='Previous'}


to:

« {l s='Previous'}


#3

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 11 June 2009 - 07:08 PM

I tried this solution and it work's when the client goes to check out through the shopping cart page, and already is logged in before proceding to check out.
But, when the client goes directly to check out trough the block shopping cart it doesn't work, shows the adress the same.
Also, the clients that just registered, or just logged in, see the confirm adress page too.

If you have further solutions, please share. :cheese:

#4

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 13 June 2009 - 01:26 PM

Hey,

I are also very intrest in a solutions, anybody??

#5

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 02 July 2009 - 04:17 AM

To skip a page while navigating from Shopping Cart block, you can try this:
Go to Prestashop/modules/blockcart/blockcart.tpl and change the Step no. in line 105 depending on which ever step you want to skip.
{l s='Check out' mod='blockcart'}

Thanks to "rocky" for providing information.

But I am facing the same issue as that of "equilibrium" when a new user adds items to cart and then registers on the store, he gets the address confirmation and other steps as it happens in normal screnario. i.e. none of the steps is skipped. Can someone help?
-lucky

#6

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 02 July 2009 - 04:49 AM

I had a quick look and I think you need to change line 40 of order.php:

Tools::redirect('authentication.php?back=order.php?step='.$step);


I think $step is the order step that Prestashop goes to after the customer account is created. I haven't tested it though.

#7

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 02 July 2009 - 05:36 AM

Hi Rocky,

Thanks for your help.
I tried a few things in order.php but I am still not able to make it work.
Will it be possible for you to test it and let us know the results?
Thanks in advance.

-lucky

#8

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 02 July 2009 - 09:15 AM

Sorry, I have tested the code and it doesn't work. I tried replacing the $step above with 2 and commenting out lines 125-126:


//if ($step >= 2 AND (!$cart->id_address_delivery OR !$cart->id_address_invoice))
// Tools::redirect('order.php?step=1');


This makes it skip the Address page when logging in, but it also causes the default address values to not be saved, which means all Shipping methods are displayed instead only the ones that apply to the customer's address.

I can't get it to skip the Shipping step. I think it would take a lot of messing around with order.php to get this to work.

#9

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 02 July 2009 - 07:23 PM

Good hack. I made it so the Address Edit and Carrier pages are combined in one step so during express checkout they have one last chance to edit their address. I felt like removing the address edit function totally would cause problems eventually if people messed their addresses up somehow when they initially entered their info.

#10

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 02 July 2009 - 11:29 PM

Can you paste/link the code for this Ion? Silly question, but if it was so easy to combine those two pages, has anyone considered doing the same with all the pages? ;)

#11

    PrestaShop Newbie

  • 15 Dec 2011
  • Members
  • Pip
  • 0 posts

Posted 17 July 2009 - 07:55 AM

It really seems amazing that with all the "brains" that prestashop has no one is interested in creating a one page checkout that would simplify and boost our sales.

If there is any "super hacker" out there, pleeaaseee think about this. :) It will be tremendously appreciated!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users