Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Cart empty Mac with Safari
Author « Topic »  

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 05/20/2020 :  14:51:23  
PHP v7.1.9

A client has reported that over the past several weeks, several customers have added products and when they go to checkout, the cart does not show the products. The client reported the only thing they had in common was using a MAC desktop with Safari browser. While it sounds like a cookie issue, I have no way of testing this. Is anyone else experiencing this problem? The site is grabbarspecialists[dot]com.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

insight
ECT Moderator

USA
4479 Posts

Posted - 05/20/2020 :  21:37:34  
Not a Mac problem. I work on a Mac all day, every day, and I'd have noticed by now if there was a cart problem. What you have happening there is multiple www/non-www sessions going on, you should clean that up with a 301 redirect from non-www to www or vice versa.

Peter


Professional ecommerce web hosting services
Shared hosting Windows & Linux | Dedicated servers | Domains | SSL
Ecommerce Templates specialists since 2003
https://servelink.com

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 05/21/2020 :  04:14:19  
Have this in the .htaccess

RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]


Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 05/21/2020 :  06:20:25  
Hi Marshall,
If I go to https://grabbarspecialists dot com it should redirect to https://www.grabbarspecialists dot com but it doesn't

I usually have the following in my .htaccess files to force to https and to www.

try

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 05/21/2020 06:20:53

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 05/21/2020 :  07:13:16  
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Is not rewriting to https:// to https://www. Should it be?

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Phil
ECT Moderator

United Kingdom
7680 Posts

Posted - 05/22/2020 :  08:34:30  
It should be yes but it appears it isn't.



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 05/22/2020 :  09:30:18  
It may be the sequence of rewrites in the .htaccess

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

####################
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.01 seconds. Snitz Forums 2000