Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP Guru...Please help!


golfman2006

Recommended Posts

Posted

Not a PHP person over here and have what should be a really simple issue. Here it goes:

 

Upon checking out and getting to checkout_success.php, when a customer clicks on the "Continue" button, they are brought back to our homepage but as an SSL connected page. The issue we are having is that we don't want this button to point to a "HTTPS" address link rather only an "HTTP", but not exactly sure where that gets changed. We currently have a GoDaddy SSL and everything works perfect throughout checkout and the rest of the site, except that we need to point the continue button on this checkout_success page to a non-secure address(for linking reasons).

 

Here is the code on the checkout_succes that looks to be where I need the change. Any advise or quick code fix you might have is greatly appreciated? Can some code for a link(i.e <a href) be added onto the PHP code below? Thanks in advance for the help!

 

	  <tr>
	<td align="right" class="main"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
  </tr>

Posted

Perhaps try modifying this line in checkout_success.php:

 

	<td width="100%" valign="top"><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?>

 

Otherwise do a lookup for "tep_href_link" in that file to get some more ideas of what to do.

Posted

Thanks for pointing me in the right direction. With a minor change shown below, the issue has been resolved.

 

Before code change

	<td width="100%" valign="top"><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?>

 

After code change

	<td width="100%" valign="top"><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'NONSSL')); ?>

Archived

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

×
×
  • Create New...