uStore Connect

655 views
Skip to first unread message

yv

unread,
Jan 27, 2012, 7:07:38 PM1/27/12
to XMPie Interest Group
Hello everyone,

Im trying to use uStore api and mainly uStore connect to have a
product added to my personal website cart. The problem im running into
is figuring out a way to get the job into my cart. I have the url
which redirects to ustore and when customer clicks add to cart on the
ustore product how can i actually get that product into my cart. Is
there a trigger in ustore if so does anyone know specific steps. I
know when in regular uStore you checkout a xml can be generated is
there something similar for this also? Thanks for all your help

couch

unread,
Jan 28, 2012, 12:38:56 AM1/28/12
to XMPie Interest Group
I don't use uStore Connect myself, but do you have the uStore Connect
Sample? Perhaps you could see how XMPie did it in the example?

Graham

unread,
Jan 30, 2012, 10:58:01 AM1/30/12
to XMPie Interest Group
I don't have immeidate availability to the code base, but I do know
how this was accomplished by our contractor/vendor who integrated
their shopping card with uStore. Basically the load the uStore
session into an iframe then with a hook into the the frame's load,
checking for either the submit or cancel URL. Prior to serving the
iframe up, they are tracking the locally associated product with a
session variable, so when the app hit the submit URL, it will add the
local product to the local cart (versus the uStore cart).

For example, you have "My Business Card" with a product code MY-BC on
your site which stores a uStore Product ID, 1234. When the user
chooses to start customizing you push MY-BC into a Session variable,
lauch the iframe with uStore, and hook in the iframe's load. Check
time a page loads it will evaluate if the product was added to cart
(also look for the cancel, to close the iframe). If so, it will close
the iframe, and add MY-BC to the local cart. This matches the uStore
card with product 1234 in it.

When submitting they also need to programatically comit the uStore
cart as well (it was decided to only do so when there was something
acutally in the uStore cart, which is again tracked within the local
app). They choose to create a uStore order when a person first signs
on. They continue to use that order until it is placed, the create a
new order immeidate afer placing. This has the effect to always have
an assocaited uStore cart available.

Hope that helps.

p.s. In looking that the API for another project, I think it may be
possible to

Igor Vorobeychik

unread,
Feb 6, 2012, 10:19:23 AM2/6/12
to XMPie Interest Group
You need understand better example that comes with uStore Connect.
Than you redirect user to particular product using one ofthe SSO
methods of the UEserWS web services all of them have a parameter url
that will be used once customer i ustore will click add to cart
button. uStore will redirect to this page with Order ID and Order
Product ID , you can use other classes like Order as well Product
class to get other details about this order.
Once user came back with such parameters you can add item to your cart
and than once he will checkout at your end you will submit order
product to uStore.
In any case I'd suggest you to obtain XMPie training for uStore
Connect.
Igor.
Reply all
Reply to author
Forward
0 new messages