Pop-up messages

General ShopSite user discussion
Post Reply
silken
Posts: 120
Joined: Mon Jun 07, 2010 11:56 am
Location: santa cruz, ca

Pop-up messages

Post by silken »

Hi,
I have a general and specific question about pop-up messages in shopsite.

I order from a book site and, when I hit the 'order' button I immediately get a pop up that tells me that the item has been added to my shopping cart. It is a beautiful thing. Is this possible in shopcart? I use the 'order anywhere' buttons, so I assume I would/could add code to the button description?

And, in general, if I wanted to have a pop-up message appear when hovering over something in the shopping cart itself, is this possible? If so, is it reasonable to ask how one might accomplish this (or, where I can find the info in the shopsite references?)

Thanks in advance,
Debbie
JCGrafted
Posts: 29
Joined: Wed Sep 21, 2011 2:41 pm
Location: Houston, TX

Re: Pop-up messages

Post by JCGrafted »

Debbie,

These questions are really not ShopSite questions, they are site build questions.

I also use the order anywhere. I like to build the page the way I want, not use a template. The way I handle such matters is to have javascript submit the order instead of the button submitting the order. I have the button call a javascript function that can do whatever I want. I use this to check for odd requirements I may have and can have pop up warn the customer of errors. I set a Boolean that says something like this:

Code: Select all

var myBoolean = no;
If the customer order meets my requirements I add:

Code: Select all

myBoolean = yes;
and then add

Code: Select all

if (myBoolean == yes)
{form.submit;}
else
{
alert("You had an error.");
return false;
}
I hope this helps.
Last edited by JCGrafted on Thu Aug 02, 2012 12:29 pm, edited 1 time in total.
silken
Posts: 120
Joined: Mon Jun 07, 2010 11:56 am
Location: santa cruz, ca

Re: Pop-up messages

Post by silken »

Thank you! Yes, this does, indeed, help.
Debbie
Post Reply