Author |
Topic |
|
PT
Starting Member
11 Posts |
Posted - May 28 2004 : 22:11:32
|
When customer enters a coma (,) in the address field when registering, then everything after the comma is chopped off on the shopcustomer.asp when he checks out. The cookie has the address in full but when it is read into session variables the information after the comma is lost. Most likely because a comma is used as a separator between fields. Has anyone fixed this ? Thanks Paul |
|
theringlord
VP-CART New User
107 Posts |
Posted - May 30 2006 : 15:38:16
|
I was just going to ask about the same problem.
I also found that address field 2 doesn;t load in all places where its needed - I have added the code to do this but I likely missed a couple spots |
|
|
support
Administrator
4679 Posts |
Posted - May 31 2006 : 01:31:14
|
Hi there,
The comma issue with customer registration will be fixed in the upcoming patch.
The address2 field issue was resolved in the current version- 6.08.
Thank you.
Regards, Joseph
VP-ASP Support |
|
|
dafragan
Starting Member
45 Posts |
Posted - May 31 2006 : 01:35:58
|
Hi!
I was having the same problem with the commas getting lost after the customer's information was saved to the cookie.
I worked out this fix - All of the cookie stuff is done in shopsess.asp.
In the sub BuildCookie, I changed this line:
dataarea=dataarea & fieldname & "=" & replace(fieldvalue,",","|")
To: if fieldvalue > "" then dataarea=dataarea & fieldname & "=" & replace(fieldvalue,",","|") else dataarea=dataarea & fieldname & "=" & fieldvalue end if
Then I added some code below the following lines in the RestoreCustomerDetailsCookie sub:
if fields(0) = "Custdiscount" then fields(1) = replace(fields(1), ".", ",") end if
Add this code:
if fields(1) > "" then fields(1) = replace(fields(1), "|",",") end if
I hope this fix helps you - I look forward to seeing how VP-ASP solve it in the patch.
-- Seb |
|
|
theringlord
VP-CART New User
107 Posts |
Posted - May 31 2006 : 08:52:09
|
Thank you for the fix for the comma problem! It worked very well.
|
Edited by - theringlord on May 31 2006 10:22:06 |
|
|
|
Topic |
|