close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

checkout.php page background broken / no redirect to https

Thread began 3/11/2010 10:34 am by muddysmurf | Last modified 10/12/2011 9:14 am by Jason Byrnes | 46230 views | 15 replies |

muddysmurf

checkout.php page background broken / no redirect to https

As you can tell, my checkout.php page background doesn't go all the way to the bottom. I think I may have taken something out by accident when I deleted the code in that tells me what the problems are. I've included the checkout.zip page if you could help me.

Also on the same page, I've entered the redirect link to go to the https:// but it doesn't redirect. What else do I need to do?

Attached Files
checkout.zip
Sign in to reply to this post

Eric Mittman

You should try replacing the page with the default version that you can get from the downloads. This should fix any problem with missing code or anything like that.

As for the https code you are using this will only redirect if the cart is empty. If you would like to redirect the user to the https version of the page regardless you can add in a check like this:

php:
<?php if((!(isset($_SERVER['HTTPS']))) || ($_SERVER['HTTPS'] == "") || ($_SERVER['HTTPS'] == "off"))header("Location: https://" $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']); ?>
Sign in to reply to this post

msjj000Beta Tester

Hi Eric,

If you only used that code snippet on the confirm and checkout pages would it revert back to the http page on checkout success, failure, continue shopping or modify cart?

I am only wanting to the on the https pages for the confirm and checkout pages if possible.

Thanks

Sign in to reply to this post

Ray BorduinWebAssist

It would not automatically revert back on the checkout success, but you could add the reverse code on the checkout success page, or make sure the redirect to the checkout success does it with a full url link that includes "http://".

The reverse code would look like:

<?php if(((isset($_SERVER['HTTPS']))) && ($_SERVER['HTTPS'] != "") || ($_SERVER['HTTPS'] == "on"))header("Location: http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']); ?>

Sign in to reply to this post
Did this help? Tips are appreciated...

msjj000Beta Tester

Hi Ray,

Thanks for the reply. I get the following error when I use the code

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\inetpub\vhosts\ridewerx.com\httpdocs\store\checkout.php:2) in C:\inetpub\vhosts\ridewerx.com\httpdocs\store\WA_ValidationToolkit\WAVT_ValidatedForm_PHP.php on line 3

Mark

Sign in to reply to this post

Ray BorduinWebAssist

Did you leave a space in the code or something? often a space or empty line will cause this error on a php page. Look at the checkout.php page on line 2 and see if there is a blank line or space character in the code.

Sign in to reply to this post
Did this help? Tips are appreciated...

msjj000Beta Tester

Hi Ray,

Yes there was a single space at the end of your code after I inserted it. Now removed thats fixed it - thanks very much.

The pages are delivered as partially encrypted and hence the site doesn't appear to be serving up the entire checkout, confirm, etc pages as encrypted - any clues on this? It may make sense on index page as for the time being I have a twitter feed which I will be removing but as to the others (like user profile where ther isnt a picture for example) they all feed off the site.

Mark.

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure what you mean by partially encrypted? Do you have a sample url where I can view the problem?

Sign in to reply to this post
Did this help? Tips are appreciated...

msjj000Beta Tester

Hi Ray,
Thanks. I've looked at the template file and can't see where it would draw data from an external site so as to have the page data presented as partially encyrted. The uRL is or any page. Only the index.php drags in data from twitter and FB which I will be changing once I get this nailed.
Thanks, mark

Sign in to reply to this post

Ray BorduinWebAssist

The logo is using this:

<img style="width: 319px; height: 63px;" src="http://www.e-marineworld.com.au/Images/e-marine_logo_admin.jpg" alt="">

since it refers to http:// it is not encrypted. You can resolve that problem by using a relative path to the logo instead of the full http:// path.

Sign in to reply to this post
Did this help? Tips are appreciated...
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...