OK BuyObject Sample
Examples Menu | Group BuyObject | OK BuyObject | Image Map | Carousel |
The OK BuyObject gives your customer an acknowledgement that the item has been put in the cart. It is for use when you have linked the form action to Addloop.php, so that making a purchase will reload the same page instead of going directly to checkout.
1. Make sure the form is linked to "../Cart/addloop.php, NOT "../Cart/add.php".
2. Select the Form and go to the Actions Palette.
3. Select the "Form Submit" event.
4. Use the "Set Image URL" action.
5. In the popup, select the image name that you have given to "OKBlank.gif" (or whatever image you are using for the first image in this rollover. (On this example page, this is the invisible transparent gif, "okblank.gif" and it is named "OKBlankImage" and "OKBlankImage2". Each instance of it on the page must have a unique name.).
6. Then link to "OK.gif".
7. Be sure to use a head "Preload Image" action on the "OK.gif" so that it will already be loaded and will show when the customer clicks the "Add" button.
That's it. When your customer hits the Submit image, he should see the "Ok"with a checkmark.. You can make your own acknowledgement image, of course. Just make sure both the blank gif and the "OK" image are exactly the same size.
You can make and use your own images, of course. Just make sure both the blank gif and the "OK" image are exactly the same size, as in any rollover.
Don't forget to put a "View Cart" button on the page:
Note: If the object does not seem to work, make sure you have given unique names to all your transparent "ok.gif" images, that you have not linked either the add button or the "ok.gif" to anything, and if you are using an external javascript file, that you also upload it to your site on the server.
If an OK BuyObject (or any BuyObject for that matter) does not put the items in the cart when tested on the server, there may be an error in the code. The easiest way to fix that is to simply delete that BuyObject and re-do it in GoLive.