IsUsingOnePagecheckout()

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

IsUsingOnePagecheckout()

Post by jmestep » Thu Aug 27, 2009 12:09 pm

Does anyone know where this is set? I'm trying to get a site to use one page checkout only and it isn't working like it does on other 7.0.3 sites. We moved it from another hoster, so I've also been looking thru the database.
Normally you can change the code on the Basket.ascx.cs to false, as below, and that fixes it.
protected void CheckoutButton_Click(object sender, EventArgs e)
{
BasketHelper.SaveBasket(BasketGrid);
Response.Redirect(NavigationHelper.GetCheckoutUrl(false));
}

I've even tried hardcoding the one page checkout in the Navigation helper, but it still directs to login page and then to multi page checkout.
Thanks
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

ZLA
Commodore (COMO)
Commodore (COMO)
Posts: 496
Joined: Fri Mar 13, 2009 2:55 pm

Re: IsUsingOnePagecheckout()

Post by ZLA » Thu Aug 27, 2009 12:51 pm

In

Code: Select all

Response.Redirect(NavigationHelper.GetCheckoutUrl(false));
the boolean value is for isAuthenticated and is independent of IsUsingOnePagecheckout. If you look inside NavigationHelper.cs, you will see that WebflowManager.IsUsingOnePageCheckout() is a compiled function, so I don't know what determines it's value.

But if you follow the logic in GetCheckoutUrl, you will see that if WebflowManager.IsUsingOnePageCheckout() returns false and the user is not authenticated and they don't have a valid user address, then it goes to ShipAddress.aspx.

I don't know the consequences, but you could just change that line from ShipAddress.aspx to Default.aspx. Again, I don't know if that's a bad idea or not.

Regards.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: IsUsingOnePagecheckout()

Post by jmestep » Thu Aug 27, 2009 2:01 pm

Thanks. I had taken out the logic and hardcoded the link in both sections of the navigation helper code and it was still redirecting. Maybe it's got something to do with DNS and the store key, because the site isn't operating on a domain name and when I apply the key for the domain name, it changes the ip in the license file to the old hoster.
Looking at source code, I see that the indicator might be stored in a personalization.
I'll check that.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: IsUsingOnePagecheckout()

Post by Logan Rhodehamel » Fri Aug 28, 2009 4:38 pm

ZLA wrote:the boolean value is for isAuthenticated and is independent of IsUsingOnePagecheckout. If you look inside NavigationHelper.cs, you will see that WebflowManager.IsUsingOnePageCheckout() is a compiled function, so I don't know what determines it's value.
We have to determine whether or not your checkout page is using the OnePageCheckout control. This can be altered in a variety of ways - for example you could change the page scriptlet using the page footer editor. So we have to check many things, possibly even decrypting the microsoft personalization BLOB and reading the data. These are complex and expensive tasks, so once we determine the value it's cached with appropriate dependencies.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: IsUsingOnePagecheckout()

Post by jmestep » Sat Aug 29, 2009 6:39 am

Thanks, Logan. That was the tip I needed- changing the scriplet. She was using checkout page with login, which I didn't know even existed!
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Post Reply