steve_c Posted December 27, 2012 Share Posted December 27, 2012 Hi I have a major problem, I changed the domain on my client's site from site.com to www.site.com I had a few problems with customers telling me that they had empty carts. I contacted PS support who told me they altered the .htaccess file and it should be fine. As usual, the problem appears to be present still. Is there anything I can do short of telling all of my client's clients to clear their cache / temp files? Please any help greatly appreciated. Thanks Link to comment Share on other sites More sharing options...
El Patron Posted December 27, 2012 Share Posted December 27, 2012 (edited) what ps version? also why change it?..this has caused untold problems with other 1.5 shops Edited December 27, 2012 by elpatron (see edit history) Link to comment Share on other sites More sharing options...
steve_c Posted December 27, 2012 Author Share Posted December 27, 2012 (edited) PS version 1.5 This is the message I received from a customer: "There seems to be an issue with the site. When I select an item it registers in my cart but when I select another item the first item disappears?" In BO you can see multiple identical carts where a customer is trying to add a product to the cart time and time again. Edited December 27, 2012 by steve_c (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted December 27, 2012 Share Posted December 27, 2012 would it not be simpler to change it back to www? and even if you change the .htaccess file...there is no back office box for keeping the change (like 1.4), hence any changes will be overlayed when ps regenerates .htaccess... Link to comment Share on other sites More sharing options...
steve_c Posted December 27, 2012 Author Share Posted December 27, 2012 it was originally http://shop.com Client wanted it changed to www.shop.com I made the change and the problems occurred. I paid PS support to fix the problem. They said they had fixed it. I tested the cart many times but was unable to reproduce any problems and so client was happy to go ahead with the change. It looks as if customers which had visited the site months before and had an item in the cart have now got this problem. Unfortunately we cannot change it back. Link to comment Share on other sites More sharing options...
El Patron Posted December 27, 2012 Share Posted December 27, 2012 try adding this to your .htaccess.... to ensure www: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] </IfModule> for non-www <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com [NC] RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301] </IfModule> in the future you may want to reconsider installing a release that is not proven...any search of the forum tells us that 1.5 is only for the brave of heart it was originally http://shop.com Client wanted it changed to www.shop.com I made the change and the problems occurred. I paid PS support to fix the problem. They said they had fixed it. I tested the cart many times but was unable to reproduce any problems and so client was happy to go ahead with the change. It looks as if customers which had visited the site months before and had an item in the cart have now got this problem. Unfortunately we cannot change it back. maybe also post what ps support did...if it's old customers change the cookie lifetime in the back office.... Link to comment Share on other sites More sharing options...
steve_c Posted December 27, 2012 Author Share Posted December 27, 2012 try adding this to your .htaccess.... to ensure www: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] </IfModule> for non-www <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com [NC] RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301] </IfModule> in the future you may want to reconsider installing a release that is not proven...any search of the forum tells us that 1.5 is only for the brave of heart Thanks very much. I have mailed this suggestion to the PS support team. PS 1.5 is marked as stable and my client wanted multi-store capability. I was unable to deter. Link to comment Share on other sites More sharing options...
El Patron Posted December 27, 2012 Share Posted December 27, 2012 marked as stable but the forum indicates otherwise... good luck Link to comment Share on other sites More sharing options...
bostamaster Posted February 12, 2014 Share Posted February 12, 2014 Hello; I have the same problem but I really need to stay with "www". I changed the domain name from pres.yukkaz.com to yukkaz.com yukkaz.com was by default redirecting to www.yukkaz.com so google is indexing our old URLs with "www". I was forced to make www.yukkaz.com the default domain since my indexed URLs were adding ?controller=404. I found the solution here http://www.prestashop.com/forums/topic/283497-solved-prestashop-google-indexed-links-adding-controller404-to-the-end-of-url/?do=findComment&comment=1427304 but now i have the empty cart issue. Link to comment Share on other sites More sharing options...
bostamaster Posted February 12, 2014 Share Posted February 12, 2014 Hello; I have the same problem but I really need to stay with "www". I changed the domain name from pres.yukkaz.com to yukkaz.com yukkaz.com was by default redirecting to www.yukkaz.com so google is indexing our old URLs with "www". I was forced to make www.yukkaz.com the default domain since my indexed URLs were adding ?controller=404. I found the solution here http://www.prestashop.com/forums/topic/283497-solved-prestashop-google-indexed-links-adding-controller404-to-the-end-of-url/?do=findComment&comment=1427304 but now i have the empty cart issue. I deleted the cookies and it worked fine 1 Link to comment Share on other sites More sharing options...
Recommended Posts