Post by wewlad » Wed Jul 27, 2016 1:41 am

Hello,
I'd like to disable Guest checkout feature.
The proper way to do so is to navigate to System (side menu) > Settings (sub-menu) >Options (tab) > Checkout (section) > Guest checkout (radio button): 'off'.
But it doesn't work for me.

I am a total newb, I've never seen opencart before, a friend of mine just asked to help him a bit after a freelancer developer that made him this site got out of touch.
Seems like that freelancer might have screwed things up.
I wouldn't want to reinstall the whole system, I'd like just do a quick fix of this small setting: I need to disable guest checkout and it doesn't matter how I do it.
Could you tell me what file should I edit to just comment out the part about guest checkout functionality completely, so it wouldn't work at all?

Newbie

Posts

Joined
Wed Jul 27, 2016 1:35 am

Post by straightlight » Wed Jul 27, 2016 2:48 am

wewlad wrote:Hello,
I'd like to disable Guest checkout feature.
The proper way to do so is to navigate to System (side menu) > Settings (sub-menu) >Options (tab) > Checkout (section) > Guest checkout (radio button): 'off'.
But it doesn't work for me.

I am a total newb, I've never seen opencart before, a friend of mine just asked to help him a bit after a freelancer developer that made him this site got out of touch.
Seems like that freelancer might have screwed things up.
I wouldn't want to reinstall the whole system, I'd like just do a quick fix of this small setting: I need to disable guest checkout and it doesn't matter how I do it.
Could you tell me what file should I edit to just comment out the part about guest checkout functionality completely, so it wouldn't work at all?
The checkout page cannot just be commented out as easily out-of-the-box, unfortunately. However, there might be available extensions that may help you: http://www.opencart.com/index.php?route ... n_id=13062

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by wewlad » Wed Jul 27, 2016 4:16 am

I don't want to disable checkout page completely, I just want to disable guest checkout, which is the ability to order stuff without properly registering first.

Newbie

Posts

Joined
Wed Jul 27, 2016 1:35 am

Post by straightlight » Wed Jul 27, 2016 4:46 am

wewlad wrote:I don't want to disable checkout page completely, I just want to disable guest checkout, which is the ability to order stuff without properly registering first.
That is correct, sorry. I did thought it was about the page checkout. What is your OC version? Do you use a custom theme? If so, switch back to the default theme from your admin - > extensions - > themes - > Select Default and see if you can reproduce the same issue once the guest checkout is set to disabled from your admin - > systems - > settings - > edit store page.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by wewlad » Wed Jul 27, 2016 6:30 pm

OC version is 2.*, default theme.
I'm telling you - it must be that the freelance developer screwed something up inside the files.
In my opinion - it should be quite simple to deactivate a feature of guest checkout completely by commenting some lines of code (or forcefully assigning something like 'false' to some variable), I just need to know which file to look at, because OC's file structure is pretty new to me, I don't know where's what.

Newbie

Posts

Joined
Wed Jul 27, 2016 1:35 am

Post by straightlight » Wed Jul 27, 2016 10:30 pm

wewlad wrote:OC version is 2.*, default theme.
I'm telling you - it must be that the freelance developer screwed something up inside the files.
In my opinion - it should be quite simple to deactivate a feature of guest checkout completely by commenting some lines of code (or forcefully assigning something like 'false' to some variable), I just need to know which file to look at, because OC's file structure is pretty new to me, I don't know where's what.
By the use of the custom theme, the default theme should no longer matter rather than troubleshooting purposes. If you believe the default theme to have been modified by custom jobs but you are using a custom theme, simply make a backup of your store and re-upload your default theme folder and try again by disabling the guest checkout from the admin to see if the issue persists.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by wewlad » Fri Aug 05, 2016 5:57 am

Sorry, figured out that this theme is used, not the default one.
It also turned out that default theme's templates/checkout/checkout.tpl is unmodified.

I guess that the custom theme's checkout.tpl is just made so that it doesn't support the admin panel's option to enable/disable guest checkouts: I've searched that file's contents for 'guest' match and it has 0 matches (unlike default theme's same file has).

I don't know what to do :(

Newbie

Posts

Joined
Wed Jul 27, 2016 1:35 am

Post by straightlight » Fri Aug 05, 2016 9:08 am

wewlad wrote:Sorry, figured out that this theme is used, not the default one.
It also turned out that default theme's templates/checkout/checkout.tpl is unmodified.

I guess that the custom theme's checkout.tpl is just made so that it doesn't support the admin panel's option to enable/disable guest checkouts: I've searched that file's contents for 'guest' match and it has 0 matches (unlike default theme's same file has).

I don't know what to do :(
I would suggest to contact the theme developer to resolved this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 29 guests