The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 08-01-2014, 01:53 AM
John C's Avatar
John C is offline
Member
 
Join Date: Jun 2011
Posts: 71
Default

problem with empty cart if http / https of product URL doesn't match http://app.ecwid.com / https://app.ecwid.com


My site has SSL and I link internally to every page using the https protocol. Further, I have changed Ecwid integration code to "https://app.ecwid.com" for every page that has the ecwid store. Here is the problem: a customer can enter my site using the http protocol either by manually typing the URL without the "s", or from an old external link that uses the http protocol. If they then add a product to their cart while the product page protocol is http, the cart will show empty !
I tried using "//app.ecwid.com" but the same problem occurs --> empty cart. Is there a solution ? (I'd rather not force HTTPS with a 301 Redirect because of all the old external links out there using http)
John Craighead
craigheadleather.com
  #2  
Old 08-05-2014, 01:25 PM
Rick G's Avatar
Rick G Rick G is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,271
Default

Quote:
Originally Posted by John C View Post
My site has SSL and I link internally to every page using the https protocol. Further, I have changed Ecwid integration code to "https://app.ecwid.com" for every page that has the ecwid store. Here is the problem: a customer can enter my site using the http protocol either by manually typing the URL without the "s", or from an old external link that uses the http protocol. If they then add a product to their cart while the product page protocol is http, the cart will show empty !
I tried using "//app.ecwid.com" but the same problem occurs --> empty cart. Is there a solution ? (I'd rather not force HTTPS with a 301 Redirect because of all the old external links out there using http)
John Craighead
craigheadleather.com
Hello John.

I’ve checked your store here: http://craigheadleather.com/store.html with http protocol and it seems to redirect me to the HTTPS version of the website https://craigheadleather.com/store.html So I can assume your issue with empty shopping cart was resolved. Did you use 301 redirect for this?

Let me explain what was going on:
When a customer is on HTTP version of your site and he adds items to a cart, this information is stored in your browser for the address with HTTP protocol. When the customer clicks on a link with HTTPS protocol on your website, the browser doesn’t have any history of a customer adding any products to a cart and that’s why the bag is empty. So basically they are treated as two separate websites by your browser and that’s why this happens.

If you have any questions, please don’t hesitate to ask.
__________________
Ecwid API and App Market Team
Ecwid Developer Website
  #3  
Old 08-05-2014, 05:19 PM
John C's Avatar
John C John C is offline
Member
 
Join Date: Jun 2011
Posts: 71
Default

As you say, I've used 301 redirects to force external links to HTTPS to avoid the empty cart problem. That appears to be the only fix based on your reply. Thank you.
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
301 redirect, ecwid integration code, http, http://app.ecwid.com, https

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:42 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.