Jump to content

Recommended Posts

Posted

I have read the pros and cons of various shopping carts on this forum, and it seems like PayPal will work fine for me. The problem is that when you add something to the cart, you go to the cart each time instead of only when you click on "view cart." This wouldn't be too big a deal, but when you click "continue shopping," the window still stays open in the back so that once I'm back to my site and start moving around, I get the PayPal window again. Does this make sense? If not, try this if you have a minute. Go to www.burke-design.net/html/photography.html and click on the tree photo in the upper left corner. Add it to your cart and then click "continue shopping." When you get back to the tree, click "back to photography." That just puts you back at the shopping cart page, which you can close, but I'm not sure the customer will know to do that. Does anyone know a piece of code or something that would make this window close? I e-mailed PayPal for help, but they only referred me to their shopping cart manual which I had already read thoroughly, and it didn't help. Thank you to anyone who can give me a hand! ;)

Posted

Laburke,

 

I have no idea if this will work or not, but it's where I would start. On your photography.html page, all the photos are set to open into a new window when clicked. If you set these to open in the same window, I'm wondering what will happen when "Back to Photography" is clicked.

 

I don't know how familiar you are the html coding, but just in case your not familiar, this is what you would have to change:

 

><a href="madelinetree.html" target="_blank">

 

to

 

><a href="madelinetree.html">

 

If that doesn't work, the next thing I would look at would be the javascript assigned to the "continue shopping" button. Unfortunately, I know nothing about javascript!! But, this is the code I would try to get help with:

 

><script language="JavaScript">
function focusWin(win) {
if (!win.closed) {
 win.focus();
} else {
 alert("The window you were originally browsing in has closed.\nPlease, open a new window to continue shopping.");
}
       }
var baseWin = window.opener;
if (baseWin && !baseWin.closed) {
 document.write('<a href="#" onclick="focusWin(baseWin)"><img src="/en_US/i/btn/cont_shopping.gif" border=0 align=top alt="continue shopping"></a> &nbsp');
    	 }	
     </script>

Posted

Thank you, Tracy, for taking the time to reply! I did give your suggestion a try and had the images open in the same window. I still got the PayPal cart again when I clicked "back to photography." The thing is, even if that had worked, I really want the images to open in a new window, simply because I personally like it better when it's set up that way. But anyway, I am still stumped. Unfortunately, I know nothing about javascript either. :D I don't even know where to find the code you pasted in your reply! Thanks again for your help. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...