HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
iframe with a shopping cart
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
DJTech



Joined: 01 Apr 2005
Posts: 7

PostPosted: Fri Apr 01, 2005 6:48 pm     iframe with a shopping cart Reply with quote

Hello, and thanks in advance to anyone who helps out on this! Anyway, I have a paypal shopping cart set up and I'm using an Iframe in the center of my layout to load every page. The problem is when I click the submit or add to cart button it has a blank target and I need it to load into the Iframe. I tried adding:

Code:
target="iframe"


That didnt work, here is the exact code for that part:

Code:
  <input name="submit" type="image" src="http://paypal.com/images/view_cart_02.gif" alt="Make payments with PayPal - it's fast, free, and secure!" target="iframe"/>


Thanks again!

-DJ
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Fri Apr 01, 2005 7:22 pm     Reply with quote

Is your iframe named "iframe" ?
DJTech



Joined: 01 Apr 2005
Posts: 7

PostPosted: Fri Apr 01, 2005 7:35 pm     Reply with quote

yep...

Thanks
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Fri Apr 01, 2005 7:43 pm     Reply with quote

Have you tried adding the target to the Form and not the submit?
DJTech



Joined: 01 Apr 2005
Posts: 7

PostPosted: Fri Apr 01, 2005 8:10 pm     Reply with quote

not yet, let me try that now...

Thanks so much!
DJTech



Joined: 01 Apr 2005
Posts: 7

PostPosted: Fri Apr 01, 2005 8:42 pm     Reply with quote

Man, that worked like a charm! Your the man...

Thanks again.

- DJ
DJTech



Joined: 01 Apr 2005
Posts: 7

PostPosted: Sat Apr 02, 2005 11:58 am     Reply with quote

Well, the help before was great! I ran into another seemingly small problem though. Before I added the new target to my form, when a potential customer would click the "Add to Cart" button, they were taken to a page with a shopping cart that allowed them to edit the contents, make a secure checkout, or continue shopping. When the page loads within the iframe, its the same only there is no option to continue shopping. That wouldn't be so bad, but after I load that page through the iframe none of my other links will load there anymore. So, if I click another link thats targeting the iframe, it loads a new page. One thing I did notice is that the pages favicon changed to paypal's favicon... so would that mean its connecting to paypal some other way? here is the code of one of my products:

Code:

<form method="post" action="https://www.paypal.com/cgi-bin/webscr" enctype="application/x-www-form-urlencoded" target="iframe" name="xclick">
                      <input type="hidden" name="cmd" value="_cart" />
                      <input type="hidden" name="item_name" value="Complete Set of Betrayers of K" />
                      <input type="hidden" name="item_number" value="" />
                      <input type="hidden" name="amount" value="165.00" />
                      <input type="hidden" name="business" value="DennisKeeseeathotmail.com" />
                      <input type="hidden" name="add" value="1" />
                      <input name="submit" type="image" src="http://paypal.com/images/x-click-but22.gif" alt="Make payments with PayPal - it's fast, free, and secure!" />
                      <div></div>
                  </form>
degsy



Joined: 23 Feb 2005
Posts: 2440
Location: North East, UK

PostPosted: Sat Apr 02, 2005 12:40 pm     Reply with quote

It could be to do with security as it is connecting to a secure site.

I don;t work with Iframes much so I couldn't tell you.
Also if I had a link to an external site for payment then I would use a new window.
DJTech



Joined: 01 Apr 2005
Posts: 7

PostPosted: Sat Apr 02, 2005 9:49 pm     Reply with quote

Yeah, thats a good idea. I would like to do that, but the way the site is set up loading a new page wouldn't look very nice... My site is up on a temp server, check it out and tell me what you suggest I do with it. Thanks.

www.vs-league.com/digicardz
DJTech



Joined: 01 Apr 2005
Posts: 7

PostPosted: Sat Apr 02, 2005 9:52 pm     Reply with quote

Actually the only page with any products on it is under the "Betrayers of Kamigawa" link. Thanks again to all who help.

By the way. would there be a better way to configure the site?

Again, thanks.
tobiaspj



Joined: 09 Jun 2005
Posts: 1
Location: Wales, UK

PostPosted: Thu Jun 09, 2005 12:02 pm     Using IFrames with PayPal Reply with quote

I had a fully operational PayPal shopping cart/basket system on my website, with the cart/basket opening within an IFrame. PayPal have now changed their security procedures and now "block" the use of IFrames.

If a user "checks out" they are faced with an error saying that the user (the owner of the PayPal cart) isn't authorised to use the PayPal system. So I'm sorry buddy but it looks like it may be some time before somebody comes up with a solution. I'm still working on it and if I solve the problem I'll let you all know.

Bye for now,
Tobias
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial