Jump to content

Shoping cart gets empty with SEO urls turned on


Recommended Posts

its still not work :)

That is not very descriptive.  when you looked were their www's or not?  if did you add www?

 

These are 'hard' to debug so the more information you provide the better.

 

if you added www to the urls defined in the back office , then add this to the top of your .htaccess file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^YOURDOMAIN.com
RewriteRule (.*) http://www.YOURDOMAIN.com/$1 [R=301,L]
</IfModule>
Link to comment
Share on other sites

i noticed that on IE your shop does not display properly.

 

can you confirm that the shop does not display properly on IE?

 

then remove the  .htaccess  I provided above and retest on IE.

 

please check this and let us know...i.e. with .htaccess redriect removed, does IE display site correct, i.e. menu?

Link to comment
Share on other sites

Its very strange...

 

On isleeve.dk its work with sett this command in ajax cart.js

 

//if ($('#cart_block_list').hasClass('collapsed'))
            //this.expand();

 

But it dosent work on mrhojbjerg.dk

 

Its totally the same problem they have. So i guess its a problem with the ajax cart?

 

Hope you can find a solution mate! :)

Link to comment
Share on other sites

  • 3 months later...

Hello,

 

I found this topic after 3 days passed on the forum searching a solution for my problem. 

 

If I enable friendly URL and then follow a link with www, it bring me to 404 page, when I click on Home, I steel have www and if I add a product to my shopping card and then click to "Order" my car is empty, if I try to connect or register : same problem, impossible to do this step.

 

When I disable friendly URL everything works fine, If I go to www.domain.com/shop it bring me automaticly to mydomain.com/shop

 

But when my friendly URL's are enabled I have only the domain.com/shop version working, the www. version not redirect well the user to the http version. I don't know if I explain my problem well. My shop is under maintenance for the moment, because I don't want that my clients go to 404 page.

 

I've tryed also to specify the domain with or without www, I've checked my DNS, called the hosting support OVH, they told me that everything is fine. So I tried with a fresh version of prestashop => same problem. So it's from the htaccess or the dispatcher of prestashop.

 

Can you help me to solve this issue? I would like that if a user commes from www version to redirect him to the good version without www. because with www prestashop not working at all.... :(

Link to comment
Share on other sites

×
×
  • Create New...