0

My boss is convinced that since moving servers our sales have dropped. He told me today that he spoke to someone who had a similar issue when changing servers/hosts.

This person told my boss that users have cookies set and when you change the servers it also changes the ip which in turn can render checkout and other features useless for these users for up to 30 days; when the cookies expire

So the solution would be to create a notice on the site for all users notifying them of this issue and providing a button that clears the users cache if they choose to click it.

So that being said. Is this a possible issue in wordpress/woocommerce? If so.. is there any pre-built solutions? What kind of script would i need to run on click? Will it work on all devices?

Any insight in the right direction is much appreciated.

Patrick
  • 800
  • 3
  • 10
  • 36

1 Answers1

0

It's possible. New cookies should be generated when users log back in. Have you observed any issues logging into the customer account section?

Harry Manback
  • 417
  • 1
  • 5
  • 12
  • how do i add an option for our users to manually clear their cookies via a button press? – Patrick Mar 20 '17 at 23:51
  • Yes we did have issues at first but are having problems re-creating them – Patrick Mar 20 '17 at 23:52
  • Woocommerce has an option to remove customer data from the system tools section. Woocommerce > System Status > Tools. There's an option to clear custom sessions data, which should empty user carts and clear sessions data, which would require them to generate a new cookie. If people are able to log into their accounts without issue, cookies may not be a problem. – Harry Manback Mar 20 '17 at 23:54
  • Just read your last comment. If people can't log in, it could be cookie relate. How comfortable are you with PHP? – Harry Manback Mar 20 '17 at 23:57
  • Not great with php. Okay with jquery. Great with html, css, and specific styling frameworks. But not great with logic. – Patrick Mar 21 '17 at 00:04
  • So if i clear the session data. All users, including logged in ones. Will lose their cart data. And will it also force a log out and force them to log back in? – Patrick Mar 21 '17 at 00:05
  • if php is the only solution can u explain what i can do and ill have a friend help me with the php and look over this thread with me. Thanks! – Patrick Mar 21 '17 at 00:12
  • 1
    Clearing sessions data would whip user carts and force people to log in again. You could also probably clear user cookies by setting the woo and wp cookies with an expiration date set in the past by doing something like . Here are the cookies that may need to be expired. https://docs.woocommerce.com/document/woocommerce-cookies/ Has the domain for the site changed at all? – Harry Manback Mar 21 '17 at 00:26
  • If you want to play it safe though, Woocommerce also has an option to set a site wide notification in the general settings section, so you could put your notice there along with a link to an article showing people how to clear their cookies. – Harry Manback Mar 21 '17 at 00:28
  • Theres no way to just provide a button that they can click that will clear their cookies? Something like: http://stackoverflow.com/questions/10537080/html-button-that-clears-cookies-and-redirects-to-an-html-page Would that work? – Patrick Mar 21 '17 at 00:31
  • The site domain has changed but old one still re-directs to new one. – Patrick Mar 21 '17 at 00:34
  • and that was over a month ago – Patrick Mar 21 '17 at 00:35
  • Yeah, that should work. JS is probably a little safer than going the PHP route, so that's not a bad idea. – Harry Manback Mar 21 '17 at 00:40
  • it did work. Thanks for letting me swap thoughts with you. – Patrick Mar 21 '17 at 08:40
  • Happy to do it. Glad you got things straightened out. – Harry Manback Mar 21 '17 at 23:38