Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Problems and bugs
 semi colons break saved cart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarkBennett
Starting Member

4 Posts

Posted - March 15 2006 :  03:51:33  Show Profile  Reply with Quote
If in the Name or Short Desc of a product there is a semi-colon ";" (such as if you add an & which is converted to "& amp ;" in the html editor) then if you try and restore the saved cart you can get unexpected results, including product not being restored, or part of the desc appearing in the qty field of the cart!

This appears to be due to the use of semi-colons as the delimiters in the "cartcookies" field of the "savedcarts" table.

I've done a quick patch by replacing ";" with "[sc]" before it is writted into the db (Sub SessionSaveCart), and switching back again when it is recovered (Sub Getcartvalues)

Hope this helps someone!

Edited by - MarkBennett on March 15 2006 05:48:40

Rockdale
VP-CART New User

USA
76 Posts

Posted - July 24 2006 :  19:17:50  Show Profile  Visit Rockdale's Homepage  Reply with Quote
Mark are you switching the ; in the data being saved? Could you send me the page? My email is [email protected] I have a similar issue with the ! that is used in savecartperm.asp

Michael Kelley
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