Welcome Guest, Not a member yet? Register   Sign In
multi-site cart
#2

[eluser]summery[/eluser]
Hola!

I assume talking your client into a single site isn't an option. But consider the benefits: not only will this multi-site-shopping-cart problem go away, but you can focus on developing one beautiful, functional site instead of having a bunch of just-good-enough ones. Quality over quantity, baby.

You can not access cookies from a different domain than the one that set them -- the browser won't send those cookies to you. But your idea of sharing data between sites by submitting POST data might work with a bit of script.

Code:
<form name="myForm" method="post" action="other site's page">
<input type="hidden" name="user" value="encrypted user id #">
<input type="hidden" name="cart" value="encrypted cart id #">
</form>
Then, submit your form with an onclick event in your link tag to the other site.

Think about security. You want to make sure people can't access someone else's cart just by constructing a form submission with false credentials. Using https:// and encrypting both user and cart information, and checking that they match using your web service, should do the trick.

Good luck!
~S


Messages In This Thread
multi-site cart - by El Forum - 12-07-2009, 12:48 PM
multi-site cart - by El Forum - 12-07-2009, 05:23 PM
multi-site cart - by El Forum - 12-07-2009, 06:26 PM
multi-site cart - by El Forum - 12-07-2009, 06:50 PM
multi-site cart - by El Forum - 12-08-2009, 09:33 AM
multi-site cart - by El Forum - 12-15-2009, 08:27 PM
multi-site cart - by El Forum - 12-18-2009, 01:52 PM
multi-site cart - by El Forum - 12-18-2009, 01:56 PM
multi-site cart - by El Forum - 12-18-2009, 06:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB