Step 1
Options for Everyone in the nopcart.js file set:
- Code: Select all
DisplayNotice = false;
Step 2
Add this function to your nopcart.js file:
(you may edit this to your specs.)
- Code: Select all
//---------------------------------------------------------------------||
// FUNCTION: cartWindow ||
// PARAMETERS: Null ||
// RETURNS: Null ||
// PURPOSE: Open a pop-up window when item added to cart ||
//----------------------------------------------------------------------------||
function cartWindow(cartItem) {
cartAdded = window.open(cartItem, 'cartWin', 'left=40,top=40,width=200,height=200,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=no,location=no')
cartAdded.focus();
}
Step 3:
On product order pages us this as your form submit:
- Code: Select all
<form name="order" onSubmit="AddToCart(this);cartWindow('alert.html');">
Step 4:
Create a small html page for your pop-up (here it is alert.html)
