close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PowerStore SSL Checkout

Thread began 6/24/2009 7:06 pm by jasonkline326722 | Last modified 10/21/2009 10:23 am by Ray Borduin | 6703 views | 9 replies |

jasonkline326722

PowerStore SSL Checkout

I am ready to go live with my PowerStore. How do I configure the PowerStore checkout process to use SSL encryption? I tried changing the following code in cart.php:

//WA eCart Redirect Check Out
if (isset($_POST["WA_Store_Cart_Checkout"]) || isset($_POST["WA_Store_Cart_Checkout_x"])) {
$Redirect_redirStr="checkout.php";

********** change to *********

//WA eCart Redirect Check Out
if (isset($_POST["WA_Store_Cart_Checkout"]) || isset($_POST["WA_Store_Cart_Checkout_x"])) {
$Redirect_redirStr="https://mydomain.com/store/checkout.php";


This works but keeps you in SSL encryption mode until you close the browser.

Sign in to reply to this post

Ray BorduinWebAssist

Right... when would you like to go out of ssl encryption? At that point send them back just like you got them there in the first place this time using . You control when and where you send someone to and from your ssl site by specifying it in the link.

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

warrenphillips25336771Beta Tester

where and when

Originally Said By: Ray Borduin
  Right... when would you like to go out of ssl encryption? At that point send them back just like you got them there in the first place this time using . You control when and where you send someone to and from your ssl site by specifying it in the link.  



how do you do that then ray? and where?

Sign in to reply to this post

Ray BorduinWebAssist

Any time you specify a redirect page or have a link to another page you have the opportunity to change to or from an https:// location. When would you like to return someone to the http:// version? On the receipt page? Linking from the receipt page?

That is where you would update the navigation.

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

morc.mzw383871

How to Redirect Entire Store to "https://"

Hi,

How do we redirect the entire powerstore from "http://" to "https://"?

I tried changing it in the WA_Global.php (to "https://")but when I click on my website "www.xyz.com", it still show .

Please advise. Thank you

Sign in to reply to this post

Ray BorduinWebAssist

When do you want to?

Always? A mod rewrite in your .htaccess might be the best route:

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]


or you could probably add code to your globals file to do it with php like:


if($_SERVER['HTTPS'] != 'on'){
$url = "https://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
header("location: ".$url);
}

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

morc.mzw383871

How to render the entire site secured!

Hi,

1. How do we implement option (a), e.g. create the .htaccess file?

2. How do we implement option (b), global files? I wrote those lines in the WA_Globals.php and upload the file. The error message is "Parse error: syntax error, unexpected '{' in D:\Hosting\3905780\html\WA_Globals\WA_Globals.php on line 13"

3. Which option is optimal/better?

Thank you. Please advise.

Sign in to reply to this post

Ray BorduinWebAssist

Here is a tutorial I found that talks about .htaccess:

htaccess/

Are you sure you copied the code I gave correctly? It sounds like you missed something... post lines 1-13 of that file here and I can try to spot the problem.

3) mod-rewrite is probably better, but it is 6 of one and half a dozen of the other. It is worth investigating the mod-rewrite concept, so maybe number 1 is worth doing for the experience alone. 2 is probably easier, so really it is up to you.

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

morc.mzw383871

Secure site

Hi,

1. Tried .htaccess method but to no avail.

2. The code line 1-15:

$WAGLOBAL_Root_URL = "http://www.xxxxxx.com/" ;
$WAGLOBAL_Site_Name = "xxxxxxx" ;
$WAGLOBAL_Address = "xxxxx Center Blvd";
$WAGLOBAL_City = "New York City";
$WAGLOBAL_State = "NY";
$WAGLOBAL_Zip = "11109";
$WAGLOBAL_Country = "US";
$WAGLOBAL_GoogleAPIKey = "ABQIAAAAbrDo7RkoC8-w_3CWMPTV4BSOJpghMGQ8yTCQ5uInKAzgbZ0gmhTzjWM_GcEQp7saeZe5JstiKJChcw";
$WAGLOBAL_localRoot = "/NurtureStore/";
$WAGLOBAL_remoteRoot = "/";

if($_SERVER['HTTPS'] != 'on'){
$url = "https://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
redirect($url);
}

Is there anything wrong with the code?

Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

instead of:
redirect($url);

it should be:
header("location: ".$url);

and you should probably update:
$WAGLOBAL_Root_URL = "http://www.xxxxxx.com/" ;

to:
$WAGLOBAL_Root_URL = "https://www.xxxxxx.com/" ;

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...