Jump to content

Empty Cart in 1.5.4.1


Recommended Posts

Hello,

 

I have the same empty cart problem that a lot of people have on prestashop 1.5.4.1

 

I've read a lot ofposts about it and the only "solutions" I've seen are:

 

-Clearing web browser cache !? I can't call actually all my customers and ask them to clear their cache, and they don't have to do it, this is not serious business relationship...

- Disable Ajax Cart : Tried it this morning, but as I cleaned my cache I don't know if it worked or not... And the usage of website is really worst without tihs feature.

 

And not official solutions.

 

Do anyone has experience to share about it ?

 

 

I'm hosted with OVH (mutualisé)

 

Content of my .htaccess

 

SetEnv PHP_VER 5_TEST
# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
# Images
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^.*$ - [NC,L]
RewriteCond %{HTTP_HOST} ^www.canz.fr$
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>
#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404
# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

 

 

Settings of Performance Menu in BO

 

SMARTY SECTION

Templates Cache : Recompile When update

Cache Enabled

Console : Never Open

 

 

CCC Section :

All set it keep Classic Running

Optimisation Apache : Disabled

 

Cache Section :

Cache Disabled

 

 

Settings in SEO and URL

Simple URL : Yes

Redirect to Canonic URL : Yes

Desactivate apache multiview : NO

Desactivate apache mod security : NO

 

Domain : www.canz.fr

SSL domain : www.canz.fr

Path : /

Link to comment
Share on other sites

check this: back office-->seo & urls-->scroll down to 'Set shop URL'.

 

make sure that the Shop domain and the SSL domain names area the same.

 

This fixed my issue sometime ago.

 

there are other solved threads specifically for 1.5.4 here is a list of them

https://www.google.com/search?q=prestashop+solved+1.5.4+add+to+cart+site:www.prestashop.com&client=firefox-a&hs=uHH&rls=org.mozilla:en-US:official

Link to comment
Share on other sites

I confirm those are the same:

 

Domaine : www.canz.fr

Domaine SSL : www.canz.fr

 

then continue to look through the link I posted for other alternatives. Honestly what happens a lot of times is that a module is loaded and the site is not tested for ordering...so you don't know when it broke...so consider disabling any non-native modules (use ftp to look for load dates) and then clear your cookies/cache and test the order process.

Link to comment
Share on other sites

Actually the order process if I clear the cache. I can add to cart and make all the orders. And after some days the problem come back.

 

That it means that some customers can have this problem while I don't have.

And I don't think those customers will look for this prestashop issue on google and will find how to do.

 

By the way, I've already tried this week end to disable all non native modules, it didn't affect.

 

I'm still looking on the google but I can only see unsolved topics and no replied Forge. Still looking

Link to comment
Share on other sites

I have the same issue with my Prestashop 1.5.4.1

Paypal was deleted and Ajax is ON, but it persists. Only works if I clean cache, but after a while the problem returns. Now I have changed base domain ans SSL to "mysite.com.br", insted of "www.mysite.com.br". Lets see if the issue returns.

  • Like 1
Link to comment
Share on other sites

I have the same issue with my Prestashop 1.5.4.1

Paypal was deleted and Ajax is ON, but it persists. Only works if I clean cache, but after a while the problem returns. Now I have changed base domain ans SSL to "mysite.com.br", insted of "www.mysite.com.br". Lets see if the issue returns.

 

Please let us know. I think however that if the shop domain name and ssl domain name were different it would always fail. But this feature 'bug with a suit' has perplexed many a shop owner and is not always the same thing.

 

For some 'which is easier to fix' it fails everytime. For the intermittent problem, if it was me and mine I'd also review my cookie and front office security settings. Make sure all front office security settings are turned on (can post later if you can't find them) and shorten the default cookie lifetime to say a couple days from the default which I think is 340 hours.

 

Personally I do not run our shops or customer shops with cache = file system. I had some really weird issues with module loading etc...I turned it off and never looked back..this on 1.4 platforms..if it's on, turn it off (and other cache types), to see if problem goes away. Cache can be a funny animal, and look your are not running mysql enterprise (which has real cache and not fake cheap stuff)...

 

and always always test your site (add to cart/login/registration) after loading a new module...because the developer many not have :)

Link to comment
Share on other sites

Thx for the advices,

 

For the front office security, could you show to us so we're sure to make the good changes.

 

When you say disable the cache, are you talking about smarty cache or system cache?

Link to comment
Share on other sites

Thx for the advices,

 

For the front office security, could you show to us so we're sure to make the good changes.

 

When you say disable the cache, are you talking about smarty cache or system cache?

 

back office--->preferences-->general Increase Front Office Security = 'yes'

 

another solution that helps 'some' is placing a 301 redirect when the www is missing or is present, i.e. if you have www in your seo & urls shop domain but get entered with non-www you lose cookie and cart...reverse i.e no www but shop domain www you lose cookie...lose cart...

Link to comment
Share on other sites

in my .htaccess file you can see on the first post that all is redirected to www domain, so it is ok with the config with www of SEO in back office.

 

When you talk about cache what kind of cache are you talking about ?

 

post-637657-0-27866400-1374596487_thumb.jpg

 

It's like when someone say clear the cache (does it mean clean the cache on the server or on the web browser...)

Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...