Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Problems and bugs
 address info chopped off
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PT
Starting Member

11 Posts

Posted - May 28 2004 :  22:11:32  Show Profile  Reply with Quote
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  Show Profile  Visit theringlord's Homepage  Reply with Quote
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
Go to Top of Page

support
Administrator

4679 Posts

Posted - May 31 2006 :  01:31:14  Show Profile  Visit support's Homepage  Reply with Quote
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
Go to Top of Page

dafragan
Starting Member

45 Posts

Posted - May 31 2006 :  01:35:58  Show Profile  Reply with Quote
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
Go to Top of Page

theringlord
VP-CART New User

107 Posts

Posted - May 31 2006 :  08:52:09  Show Profile  Visit theringlord's Homepage  Reply with Quote
Thank you for the fix for the comma problem! It worked very well.


Edited by - theringlord on May 31 2006 10:22:06
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00