Guest user checkout should be available

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 yıl önce
Guest user should be able to checkout the product. i.e. user not needed to get registered with site to buy product
13 yıl önce
Go to Admin area > Configuration > Order settings. Ensure that 'Anonymous checkout allowed' is ticked
13 yıl önce
Hi,

If I opt to allow checkout without login (guest shopper), is there a way to bypass the page where the shopper is prompted to either login or shop as a guest?

I am thinking we will NOT make use of any of the features that appear to require login (i.e wish list, forums, etc).  We just want a simple checkout option.

Is this feasible, easily?  Is there any down side to this?

Thanks in advance.

nopCanuck
13 yıl önce
In your files root open>Controllers>ShoppingCartController.cs
and find line around ~722

if (_workContext.CurrentCustomer.IsGuest())
            {
                if (_orderSettings.AnonymousCheckoutAllowed)
                {
                    return RedirectToRoute("LoginCheckoutAsGuest");
                }
                else
                {
                    return RedirectToRoute("Login");
                }
            }
            else
            {
                return RedirectToRoute("Checkout");
            }


and replace with:


if (_workContext.CurrentCustomer.IsGuest())
            {
                if (_orderSettings.AnonymousCheckoutAllowed)
                {
                    return RedirectToRoute("Checkout");
                }
                else
                {
                    return RedirectToRoute("Login");
                }
            }
            else
            {
                return RedirectToRoute("Checkout");
            }
        }


actually you need to replace only one phrase which is in bold and rebuild your project.
13 yıl önce
Hi there,

Thanks for the quick reply but can you confirm your reply applies to v2.1?

Cheers,
nopCanuck
13 yıl önce
Yes it applies to 2.1 as I'm already use it.
13 yıl önce
how i can personaliza text of checkout as guest?

ok from topic management...

sorry i think that was hard code
10 yıl önce
paul.g wrote:
In your files root open>Controllers>ShoppingCartController.cs
and find line around ~722

if (_workContext.CurrentCustomer.IsGuest())
            {
                if (_orderSettings.AnonymousCheckoutAllowed)
                {
                    return RedirectToRoute("LoginCheckoutAsGuest");
                }
                else
                {
                    return RedirectToRoute("Login");
                }
            }
            else
            {
                return RedirectToRoute("Checkout");
            }


and replace with:


if (_workContext.CurrentCustomer.IsGuest())
            {
                if (_orderSettings.AnonymousCheckoutAllowed)
                {
                    return RedirectToRoute("Checkout");
                }
                else
                {
                    return RedirectToRoute("Login");
                }
            }
            else
            {
                return RedirectToRoute("Checkout");
            }
        }


actually you need to replace only one phrase which is in bold and rebuild your project.


I'm using Ver 3.0 and the code is -

 
if (_workContext.CurrentCustomer.IsGuest())
            {
                if (_orderSettings.AnonymousCheckoutAllowed)
                {
                    return RedirectToRoute("LoginCheckoutAsGuest", new {returnUrl = Url.RouteUrl("ShoppingCart")});
                }
                else
                {
                    return new HttpUnauthorizedResult();
                }
            }
            else
            {
                return RedirectToRoute("Checkout");
            }


How do I edit this to bypass the page where the shopper is prompted to either login or shop as a guest. I want to send user to checkout right after the product has been added to Cart. I do not need the intermediate steps in between.
9 yıl önce
a.m. wrote:
Go to Admin area > Configuration > Order settings. Ensure that 'Anonymous checkout allowed' is ticked


Hello Sir,

I enabled the guest check out as you have mentioned in the post. I myself, checked out as a guest and provided a wrong email address while checking out and finally placed an order. It means I will not get any email of order placed.

Now if I think by the point of view of customer and if now I want to check the status of my order. Then how the user will be able to check his/her order status.

Remember the email id is feed wrong by mistaken.
9 yıl önce
Hi there!

We have created a new page where user put his e-mail and orderid, so we get order by Id and check if the e-mail match. It is not so secure, but it is an alternative to guest checkouts with invalid e-mails (or bounce).

You can also display order guid on checkout completed page and use guid as the secure key to find the correct order, but in this case, user have to store the order guid to use it later.

Ivan.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.