Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Checkout starting with STEP two (2) Rate Topic   - - - - -

 
  • KeyGenRus
  • Advanced Member
  • Trial users
  • Join Date: 03-Oct 11
  • 67 posts

Posted 09 March 2012 - 07:57 AM #1

You must open the file:
controllers/customer/checkout.php


At the line ~ 913-920, you must edit this code:


if (empty($edit_step) || empty($completed_steps[$edit_step])) {
// If we don't pass step to edit, open default (from settings)
if (!empty($completed_steps['step_three'])) {
$edit_step = 'step_three';
} else {
$edit_step = !empty($completed_steps['step_one']) ? 'step_two' : 'step_one';
}
}

To this:


if (empty($edit_step) || empty($completed_steps[$edit_step])) {
// If we don't pass step to edit, open default (from settings)
if (!empty($completed_steps['step_three'])) {
$edit_step = 'step_two';
} else {
$edit_step = !empty($completed_steps['step_one']) ? 'step_two' : 'step_one';
}
}

For me, it's works correctly ;)

 
  • solesurvivor
  • Senior Member
  • Members
  • Join Date: 05-Aug 11
  • 745 posts

Posted 29 August 2012 - 04:03 AM #2

Works so far now just have to figure out how to get rid of the annoying notice box that says "The Profile data has been updated successfully each time you go from Step 2 to Step 3. Anyone know how to do this?

 

Posted 29 August 2012 - 07:46 AM #3

This text comes from the language variable: text_profile_is_updated

By searching through the files in CS-Cart v3.0.2, I found this is used in the following file:

..\core\fn.users.php @ Line 1372
fn_set_notification('N', fn_get_lang_var('information'), fn_get_lang_var('text_profile_is_updated'));

You could add a few extra conditions to this by enabling {debug} and jumping to Step 2/3 and seeing what is set and then if the condition is xyz, then exit and skip this line.

Good luck and please share your progress.

Cheers,

Thank you!


 
  • solesurvivor
  • Senior Member
  • Members
  • Join Date: 05-Aug 11
  • 745 posts

Posted 29 August 2012 - 01:46 PM #4

Thanks I'll check it out.

 
  • hostandname
  • Senior Member
  • Members
  • Join Date: 05-Jan 06
  • 196 posts

Posted 31 August 2012 - 11:14 PM #5

Im actually making an addon at the moment and will release once ive also done my addon store, will remove step 1 and will remove step 4 if 1 external payment gateway exists

Host & Name Ltd - your reliable & trustworthy media provider (www.hostandname.co.uk)
Approved CS-Cart Developers and Official CS-Cart Licensing Supplier
Web Hosting | Cloud Hosting | Dedicated Servers | VPS | Domains | Emails | Design | Development | Marketing | Management


 
  • ehenderichs
  • Advanced Member
  • Members
  • Join Date: 08-Oct 12
  • 104 posts

Posted 22 October 2012 - 08:59 PM #6

Don't see any change in behaviour after change. Please advise?

An add-on would be a great solution
The first cs-cart project for our new dutch company Sooned was a dutch erotic webshop called eely.nl.

 
  • kogi
  • Senior Member
  • Members
  • Join Date: 16-Aug 07
  • 617 posts

Posted 30 April 2013 - 01:17 AM #7

This is not happening in 3.0.6, anyone have a fix?
find / -type f -name '*.base' -exec chown kogi.kogi {} \;

 
  • hostandname
  • Senior Member
  • Members
  • Join Date: 05-Jan 06
  • 196 posts

Posted 16 July 2013 - 08:05 AM #8

If anyone is interested i have made an addon that is just 2 steps, customer details and shipping / payment.... has lots of features and was not going to sell but if interested give me a msg

Host & Name Ltd - your reliable & trustworthy media provider (www.hostandname.co.uk)
Approved CS-Cart Developers and Official CS-Cart Licensing Supplier
Web Hosting | Cloud Hosting | Dedicated Servers | VPS | Domains | Emails | Design | Development | Marketing | Management


 
  • donaldson
  • Newbie
  • Trial users
  • Join Date: 30-Apr 13
  • 9 posts

Posted 21 January 2014 - 05:09 PM #9

I just tried this on version 3.0.6 PROFESSIONAL (upgraded from version 1.x) and it works great. Just need to follow the instructions exactly.

 
  • robertparacay
  • Advanced Member
  • Members
  • Join Date: 14-Nov 11
  • 116 posts

Posted 14 October 2016 - 08:49 PM #10

works perfectly for me in v4.2.3

 

great for repeat customers who often have orders drop shipped to different addresses. The default behavior of jumping to step 3 made that more confusing. Jumping to step 2 solves it.



 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 640 posts

Posted 12 November 2017 - 10:09 AM #11

its doesnt work with 4.6.2 how can i fix this ?



 
  • kogi
  • Senior Member
  • Members
  • Join Date: 16-Aug 07
  • 617 posts

Posted 21 March 2019 - 04:14 AM #12

Need this for 4.9.3, anyone???


find / -type f -name '*.base' -exec chown kogi.kogi {} \;

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19698 posts

Posted 21 March 2019 - 06:40 AM #13

In the latest versions you can disable first step here

 

Settings -> Checkout -> Configure "Sign in" step

 

Do not forget to check instructions in the tooltip


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • kogi
  • Senior Member
  • Members
  • Join Date: 16-Aug 07
  • 617 posts

Posted 21 March 2019 - 08:33 AM #14

Thanks but that is not my problem

 

Cscart skips asking for addresses if the user is logged in.

 

I would like it NOT to skip the address entry ( step 2)


find / -type f -name '*.base' -exec chown kogi.kogi {} \;

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19698 posts

Posted 21 March 2019 - 01:15 PM #15

Try the following solution

 

https://forum.cs-car...ps/#entry182970

 

Note: after the changes are applied, you should clear cookies in the browser to check the result


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.