I'm working on building a gift catalog for my organization, and need to show an update on screen if someone has added an item to their cart.
When someone is browsing the catalog, they start on PAGE A, then choose an item and go to PAGE B to choose quantity, and add to cart. When they add to the cart, a jquery event .click() sends the user back to the original catalog page so they can continue browsing through items.
What I want to do is write a message at the top of the catalog that confirms that the users item was successfully added to their cart. Currently items are added, but users receive no notification.
I have a paragraph tag set up with id of #add_to_cart where I want to write the custom message "Your gift has been successfully added to the cart!"
If the user were to remain on the page, then I could use $("#add_to_cart").html("Your gift has been successfully added to the cart!");
and there would be no issue. I am stumped however because users are coming from PAGE B back to PAGE A
Any help would be appreciated.