Posted - 04/06/2022 : 05:02:56
Hi All Your web browser can treat the www. and non-www. and http and https forms of your store URL as totally different URLs. This means if you add cart contents using one form of the URL and then navigate to another form you can lose the cart contents, and maybe then lose the customer. For PHP users the best way to stop this is using your site .htaccess file to force customers onto one of these URL forms. The www. form of the URL is preferable to the non-www. form (but it is your choice), and if you have an HTTPS certificate on your site it is usual nowadays to have your entire site on HTTPS, not just the checkout. Try your site and add something to the cart and then in the browser address bar, try changing between the http / https / www. and non-www. forms of the URL and see if you lose the cart contents. If you do, you may want to add this. This entry for the .htaccess file will force www. and https. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^yourstoreurl\.com [NC] RewriteRule (.*) https://www.yourstoreurl.com/$1 [L,R=301] </IfModule> If you do add this, make sure your Store URL in the ECT Admin -> Main Settings page is set to the https and www form of the URL. After making any changes the test and make sure the checkout process still works. Vince Click Here for Shopping Cart SoftwareClick Here to sign up for our newsletterClick Here for the latest updater
|