Developer forum

Forum » Development » How to determine if an item has been added to cart?

How to determine if an item has been added to cart?


Reply
When i add an item to my cart i use a link like:
/mydomain.com/default.aspx?id=x&productid=y&variantid=z&cartcmd=add

Using Fiddler2 i see the page moving in three steps
from: /mydomain.com/default.aspx?id=x&productid=y&variantid=z
to: /mydomain.com/default.aspx?id=x&productid=y&variantid=z&cartcmd=add
to: /mydomain.com/default.aspx?id=x&productid=y&variantid=z

(sorry, bold won't turn off in the thread editor)

When i return to my product page (step 3) i would like to show a javascript popup with the mention that the item has been added to the cart.
But there is, in my opinion, no way i can determin that an item has been added.
There is no indicator left in the querystring, no usable DwTemplateTag and document.referrer shows step 1

There must be a logical way to handel this problem, but i dont't see it though ...

Please respond if you have an answer for my problem.

Thanx!


Replies

 
Nicolai Høeg Pedersen
Reply
Hi

Check out this post:
http://engage.dynamicweb-cms.com/default.aspx?ID=5&action=ShowThread&ThreadID=1352

Note the last message from Lars with the redirect parameter.
 
Reply
Thanx! Will try it!

 

You must be logged in to post in the forum