Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 ASP (Windows server) versions
 Minor Address Bug When First Logged In
Author « Topic »  

Dermontti
Advanced Member

USA
165 Posts

Posted - 08/02/2018 :  13:05:08  
In the primary way of logging out, the user is not logged in. Like many sites, we don't really utilize the login feature (in the process of adding it in, though!). When the user enters the address and optional shipping address, all works well. If I enter garbage or fill out the shipping address halfway, it doesn't matter if I uncheck the "shipdiff" checkbox. The cart ignores whatever was entered in the shipping area (if anything) if that box is not checked.

When I am logged in and have a number of addresses associated with my user account, the system and display of addresses in the cart uses a different system. It works, and saves the user from having to type in his address(es) every time he orders.

Here's a small problem I found while setting up a new user. I can reproduce it on the ECT demo store, so it's likely not my own personal goof-up! Here's how to re-create it:

  • Create a new account.

  • Put something in the cart, and to go checkout.

  • Since there are no saved addresses associated with the new account, the address entry screen looks the same as normal (not logged in). Enter a billing address.

  • Check the shipdiff box and enter a shipping address, but do not enter a state.

  • Uncheck the shipdiff box. Click to proceed to the next screen.


At this point, the user gets an error message:
quote:

If you enter a separate ship address you must enter all address details.
You must select a state before proceeding.


It doesn't crash or destroy anything in a horrible way. It just seems like a loose end that could use tidying up.

The user gets the error message (which might seem weird since they unchecked the different shipping address). The cart then shows the now saved Billing Address, and sets the ship to as the same as the billing. Anything that was entered in the shipping address fields, causing the error, is now lost to the user. They're in the database, visible in Admin, at least until the user hits submit again.

It seems as if this "edge" case somehow got missed. It's an easy thing to miss in testing, since it only comes up when creating a new account. We only caught it because we're planning on starting to use the login feature, and expect to have a lot of existing users start using it.

Technical:
The problem is that the cart doesn't check the status of the shipdiff checkbox if the user is logged in. There's a line in /vsadmin/inccart.asp that's something like:
if (SESSION("clientID")="" AND getpost("shipdiff")="1") OR (SESSION("clientID")<>"" AND (getpost("saddaddress")="add" OR getpost("saddaddress")="edit")) then

I wonder if this is a minor-bug-fix you might include in some future update. In the more immediate future, do you have any thoughts about what logic to add there to make the cart ignore entered ship fields if that box isn't checked, but it's not using some saved address?

Thanks!

Vince
Administrator

42874 Posts

Posted - 08/03/2018 :  06:04:13  
Hi Dermontti
Thanks for the detailed description of the problem which made it easy to track down and fix. Once this has been through testing we'll get an update out asap.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Dermontti
Advanced Member

USA
165 Posts

Posted - 08/06/2018 :  09:11:36  
Excellent, thanks for the response. Figured you'd want to know about this weird edge case.

One more clarification you'll want to hit with your fix:
When I actually do fill out the shipping address completely, not forgetting to enter a state, there's still a problem. In that case, when I uncheck the shipdiff box and proceed, the cart remembers and ships to that Shipping Address I entered. The user doesn't learn about this mistake until he gets the email confirmation.

Hope this helps!

Vince
Administrator

42874 Posts

Posted - 08/06/2018 :  14:24:57  
Hi Dermontti
Yes, that was all part of the fix for this. I've sent you a new copy of the v6.9 updater. It's all been tested now but I'd appreciate it if you give it a once over before I make the changes live.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Dermontti
Advanced Member

USA
165 Posts

Posted - 08/07/2018 :  11:06:58  
Vince, thank you! I think your logic there is sound. We've tested it a bunch today and it solves all the ways we could break it before. It's a good fix.

We're actually finishing up an update to 6.9.3, but the update you sent is from 6.9.4. I copy-pasted the 3 changes I found in /vsadmin/inc/inccart.asp into our 6.9.3 setup and that seems to do it. It didn't look like any other changes there (from 6.9.3 to 6.9.4) were related to this.

We're going to run with it!

Vince
Administrator

42874 Posts

Posted - 08/07/2018 :  12:07:52  
Excellent stuff Dermontti, and thanks for your help here getting this sorted.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000