Remember Selected Value in Custom Checkout Fields

General ShopSite user discussion

Remember Selected Value in Custom Checkout Fields

Postby westdavidr » Mon Dec 03, 2007 11:23 am

I have a survey question in the shipping/billing page of my store, and I can't figure out how to get it to remember the selected option if the customer has to go back to that page to make changes or whatever. Any help?
westdavidr
 
Posts: 2
Joined: Mon Dec 03, 2007 11:20 am

Postby loren_d_c » Mon Dec 03, 2007 3:29 pm

The only way you could do this is to add JavaScript to the checkout page to set a cookie with the setting of the Custom Checkout Field in it, and change the code that creates the Custom Checkout Field from straight HTML to JavaScript that reads that cookie and writes out the HTML for the field with the correct defaults in it depending on what it found in that cookie.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby westdavidr » Tue Dec 04, 2007 9:00 am

Yeah, but setting a cookie is no easy task! But if that's the only way, I guess I'll look into it. Thanks.
westdavidr
 
Posts: 2
Joined: Mon Dec 03, 2007 11:20 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 104 guests