Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Cs-Cart Shopping Cart Cache Problem In Safari Rate Topic   - - - - -

 

Posted 12 November 2014 - 03:54 AM #1

Hi,

I have had problems with my cs-cart shopping cart not working with the safari browser. I tried to clear the cache and temporary files but it still does not save the shopping cart items. You can try adding an in stock item to the shopping cart using safari browser and than click on visit shopping cart and you will see that it automatically removes the items and will not allow me to continue to checkout?

When you go through checkout it deletes all the contents in the shopping cart and shows an empty shopping cart message. Here are some screenshots.

Once you click on Proceed to checkout it brings Empty Shopping cart message.

Thanks.

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 13 November 2014 - 07:21 AM #2

Is this on a desktop or mobile device? You describe the symptoms of the session being reset which is most common with mobile devices.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • euromickey
  • Newbie
  • Trial users
  • Join Date: 15-Nov 13
  • 8 posts

Posted 13 November 2014 - 10:06 AM #3

I noticed today a similar issue with the newly released OS X Yosemite Desktop Safari. Products added to the compare list do not stick when adding new ones. In addition, the entire compare list is suddenly cleared upon page refresh. This issue was not present on OS X Maverick and is not present on OS X Chrome.

 

Posted 13 November 2014 - 02:28 PM #4

I can add -

I have been having major problems with the responsive site and IOS8 Safari browser.

Something is terrible wrong on how Safari handles HTTP cache headers. I have reported it to apple developers with no response and many places online are reporting the same problem on SOME sites.

My investigation has led to this... I turned off browser side cache in the CSCART .HTACCESS file. This has resolved most of my IOS8 problems like yours.

Until Apple fixes the problems with Safari 8... this is the only solution.
cs-cart 4.2.1

 
  • HappyPig0
  • Member
  • Members
  • Join Date: 18-Sep 14
  • 36 posts

Posted 16 December 2014 - 08:30 PM #5

Yup, I too am experiencing the same Safari (desktop) related issues. Login ok sometimes, other times login successful then kicks me out after a few seconds... and/or login, add an in stock item to basket, go to checkout, asks me to login again... login, cart now empty.

Fingers crossed safari fix soon then if not cs-cart related.... this is a sure fire way to lose orders! I did wonder why I had some registrations of late but no orders.

 
  • HappyPig0
  • Member
  • Members
  • Join Date: 18-Sep 14
  • 36 posts

Posted 14 January 2015 - 04:49 PM #6

Well, still I have this Safari issue and others like Order ID Value not allowing me to change it, instead it places an email address in there. Go to Chrome, or other popular browser and all is good. Tried cs-cart support, they can't replicate the login/cart issues in Safari or the Order Value ID. Even though I lost an order last week to a client experiencing the same issues. Login ok, add to cart, checkout, wants login again. Login, cart now empty.

I then tried Safari 8 on another new MAC on a different IP at a different location. Still the same issue!

Would love some help before I dump this out and write of months of product loading... I'm at my wits end :(
Thank you.

 
  • Fedor
  • Senior Member
  • Members
  • Join Date: 25-Feb 13
  • 158 posts

Posted 18 February 2016 - 08:59 AM #7

HappyPig0, have you managed to fix that problem?



 
  • marglar
  • Junior Member
  • Members
  • Join Date: 04-May 11
  • 23 posts

Posted 26 October 2016 - 03:32 PM #8

I had customers having the issue of dropping the products out of their cart when checking out.  I could replicate it with Safari on my mac but not in chrome or firefox.

 

I disabled the line "define('SESS_VALIDATE_UA', true);" in config.php and the problem went away.  Hopefully this doesn't cause some new, unforeseen problem.



 
  • harsh
  • Member
  • Trial users
  • Join Date: 22-Sep 17
  • 18 posts

Posted 21 June 2018 - 10:26 AM #9

Hello,

 

I have had problems with my cs-cart shopping cart not working with the chrome browser . The issue i am  facing is with mobile when i add product to cart

 

and try to do checkout it asks me login  also if i am already logged in 

 

I have tried almost everything with no success 

 

Please , suggest me with solution asap.

 

Thanks in advance



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 21 June 2018 - 06:21 PM #10

What version of cs-cart are you running?  What theme?  Are you using any addon that might disable required cookies?


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • harsh
  • Member
  • Trial users
  • Join Date: 22-Sep 17
  • 18 posts

Posted 22 June 2018 - 05:20 AM #11

Hello,

 

Thanks for your reply,

 

I am on MV 4.6.3 and using vivashop theme. Now if  i add product to cart

 

and try to do checkout it asks me login  also if i am already logged in  after login my cart gets empty.

 

In other scenario when i  add product to cart without login earlier and direct login at the time of checkout it again shows my cart is empty though i have 

 

added products to cart , and it working fine on other browsers issue is only with chrome its strange .

 

Please , suggest me with solution

 

Thanks in advance



 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 553 posts

Posted 22 June 2018 - 06:56 AM #12

Hello,

 

It rather seem to be a problem related to CS-Carts bot detetion. Somehow the Safari browser is not recognized causing it not to assign a cookie since it considers it to be a bot.

 

Kind regards,


PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21916 posts

Posted 22 June 2018 - 07:07 AM #13

Do you have Suhosin module installed on the server?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 553 posts

Posted 22 June 2018 - 07:10 AM #14

Hmm, interesting. I just checked a list of thousands of user agents and found that some have a 'bot' name for certain requests, hence CS-Cart resets the session, however, these are used for services like spotlight / siri and shouldnt be considered to be a bot (cscart checks for just the word 'bot').

 

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Applebot/0.1; +http://www.apple.com/go/applebot)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Applebot/0.1; +http://www.apple.com/go/applebot)

PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 22 June 2018 - 07:09 PM #15

As a short term solution until you find the real cause, you can try editing config.php and find the line that looks like the following:

define('SESS_VALIDATE_UA', true); // link session ID with user-agent

and change it to read

//define('SESS_VALIDATE_UA', true); // link session ID with user-agent

This will cause the session handler to ignore the User Agent.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • harsh
  • Member
  • Trial users
  • Join Date: 22-Sep 17
  • 18 posts

Posted 25 June 2018 - 09:31 AM #16

As a short term solution until you find the real cause, you can try editing config.php and find the line that looks like the following:

define('SESS_VALIDATE_UA', true); // link session ID with user-agent

and change it to read

//define('SESS_VALIDATE_UA', true); // link session ID with user-agent

This will cause the session handler to ignore the User Agent.

 

Hello ,

 

Thank you for your reply 

 

When i comment this it is working fine but as you said it is not a long term solution 

 

so, if i kept this disabled do it will harm my system in anyway ???

 

Thanks.



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 21916 posts

Posted 25 June 2018 - 12:59 PM #17

You did not answer on my question about Suhosin. If it is installed, please make sure that the following settings are used

 

suhosin.session.encrypt = Off
suhosin.session.cryptua = Off
suhosin.cookie.cryptdocroot = Off
suhosin.session.cryptdocroot = Off


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12052 posts

Posted 25 June 2018 - 07:00 PM #18

"harm" no.  But it does create an opportunity for "session hijack".  Risk is low but not but not zero.

After you try Ecom's suggestion, you should try to determine why the User Agent is being rewritten for the same browser.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.