Zen Cart Logo
Forums / General Questions / How to open PayPal checkout in new window

How to open PayPal checkout in new window

Locked

Views: 2,478

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
19 Aug 2006, 7:36 PM
#1
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

How to open PayPal checkout in new window

Hi folks,

I've tried researching this on the forums and it seems that several people have asked this, but noone has been able to provide a real useful answer.

I've done a few un-sucessful experiments with tpl_checkout_confirmation_default.php

Can any of you wizzards toss me a bone here and explain how to make this happen? Please?

Thank you much,

Kiddo

19 Aug 2006, 7:40 PM
#2
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: How to open PayPal checkout in new window

why would you want to do this,
after payment is recieved then your customer will have 2 open windows to your site

19 Aug 2006, 7:47 PM
#3
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: How to open PayPal checkout in new window

Becaue my client demands it.

Do you know how to do it?

I'll PayPal $10.00usd to the first person who can post a real working answer.

Thanks Much;

Kiddo

19 Aug 2006, 8:06 PM
#4
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: How to open PayPal checkout in new window

I guess my point is have you tried to find out what the purpose is,

sometimes part of a designers job is education,
once again when the customer is sent back from paypal you will have 1 open window set to checkout confirm

and another opened to checkout success......

I can honestly say I have never thought about it, but best of luck to you,
I would suggest that you p[ost in the commercial help wanted forum.

19 Aug 2006, 11:28 PM
#5
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: How to open PayPal checkout in new window

in file tpl_checkout_confirmation_default.php line 164,

echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" target="_blank" onsubmit="submitonce();"');

This is a parameter to the zen_draw_form function defined in html_output.php

I am not sure why after a number of people have asked this for several months no one has been able to answer with anything other than "Why?"

If your application has special needs to do this, here is the answer.

Kiddo

19 Aug 2006, 11:50 PM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: How to open PayPal checkout in new window

and as usual no one can ever give a reason other than a client wants it and as usual none have the balls to stand up and ask a client, or better yet tell a client that its a stupid idea...

20 Aug 2006, 12:01 AM
#7
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: How to open PayPal checkout in new window

Is not the whole point of open source the freedom to make it do what I want and not what someone else thinks I should do?

I am sorry you think I am stupid, forgive me for not writing a lengthy essay about why this function is desirable for me.

You have an impressive number of posts Mr. Merlin. I hope all of them do not focus on putting down newbies.

Kiddo

20 Aug 2006, 12:12 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to open PayPal checkout in new window

This would most likely cause a lot of problems in the long run ...

Customer goes to checkout ... then goes to PayPal ... then comes back to site ... all in the same window ...

If you use a separate window and sessions are lost, etc. this can cause a lot of issues ...

Any particular reason to want to do this, by your client? I don't see the benefit other than another way to cause issues on checkout ...

Zen Cart is not designed for this behavior and I cannot begin to guess at issues that might arise from attempting this and caution against it without a great deal of testing etc. and even then I would be terribly leary of doing this ...

20 Aug 2006, 1:04 AM
#9
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: How to open PayPal checkout in new window

You have an impressive number of posts Mr. Merlin. I hope all of them do not focus on putting down newbies.
Sorry I am not as loquacious as Linda,
This is what I was refering to earlier,
My statement about teaching your client wasnt directed at you in particular, but I see it here, WAY TO OFTEN,

People. you are entrusted to do a job,
If you wanted a house built and you told a contractor to do something that was WAYYYYYY off the wall,

or potentialy cause problems wouldnt you want that builder to tell you, Hey this isnt a good idea,

and educate you as to why.

thats the point I was trying to make,

20 Aug 2006, 1:40 AM
#10
kiddo avatar

kiddo

Totally Zenned

Join Date:
Jul 2006
Location:
SF Bay Area
Posts:
837
Plugin Contributions:
1

Re: How to open PayPal checkout in new window

OK, OK, I bite myself in foot. I explain...

I have client with two websites, both originally setup as frames site. I know css is better, but I'm not responsable for rebuilding whole sites to accomodate shopping carts.

I see error of my way using _blank in code. I see this is not what I mean first time I test. I change to correct _parent. This is for busting-out of frame. To do this here allows store customer to be warm and fuzzy with all the nice ssl bells happy.

To continue the flow, when the sucess page is called and the customer is back on the site, along with the thank-you-for-your-purchace message, it also say in big friendly letters, please click here to return to the main website. This click take then right back to where they need to be. And if not, is all ok cuz sale has gone through anyway.

I check with several browsers that all works well and that all backend and emails are set right.

Is reasonable workaround for having to integrate into site where frames are not yours able to control.

To use your builders anology, I do not see sense in tearing down whole house to add a new porch. New porch has to be made to work into existing structure.

Anyway, having to take long quiet walk through code to see how to do this make me better zenner in long run.

I hope not to peeoff too many people here. Someday I may REALLY need help :)

Kiddo

20 Aug 2006, 2:56 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How to open PayPal checkout in new window

indeed, the approach you're using may be the only ideal one for your client's frames-based site.

Maybe it's worth letting your client know that content in frames isn't indexed by search engines, which typically means less popularity of content, which usually equates to fewer visitors, and thus fewer sales.

Additionally, sites running in frames are ... in a word, archaic.

So, back to the builder analogy ... true, no need to tear down house to add porch; however, if house is old, hard to extend, requires many crutches to keep it working, and maybe is unattractive and cannot be marketed well to a potential buyer, the best approach is to tear it down and build it more modern.

But, as you said, your current job isn't to redo everything, as they are only requiring you to integrate eCommerce into their current system, regardless of whether what they already have is good or not.

I hope your client will engage you to upgrade their site to something more modern.