Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how do i get paypal to open in a new window?


Guest

Recommended Posts

I've found out that because im using frames when ppl go to pay for their items and click on the final continue button an error is coming up from pay paypal...

'Sorry, an error occurred after you clicked the last link'

 

so, how do i get the button on the product_confirmation.php page to open a new window?

 

ive looked all over net but cant find anything!

 

Thanks for your help!

Neil

Link to comment
Share on other sites

I've found out that because im using frames when ppl go to pay for their items and click on the final continue button an error is coming up from pay paypal...

'Sorry, an error occurred after you clicked the last link'

 

so, how do i get the button on the product_confirmation.php page to open a new window?

 

ive looked all over net but cant find anything!

 

Thanks for your help!

Neil

 

if you post a copy of the code I'm sure one of the vets here can help

Link to comment
Share on other sites

if you post a copy of the code I'm sure one of the vets here can help

 

well im going to post the php code which surrounds the area near the button.gif which ppl click on which then takes them to paypal page which is where i get the error, i need this to open in a new window or to take over the whole page so it loads.

 

<?php
 }
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td align="right" class="main">
<?php
 if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
 }

 echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n";
?>
		</td>
	  </tr>
	</table></td>
	<td></td>
  </tr>

</table></form></td>

Link to comment
Share on other sites

  • 1 month later...

In checkout_confirmation.php, look for the line that says,

  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');

and change to

  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post', 'target="_blank"');

Always back up before making changes.

Link to comment
Share on other sites

  • 8 months later...

In checkout_confirmation.php, look for the line that says,

  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');

and change to

  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post', 'target="_blank"');

 

 

Thank you for this.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...