daend Posted June 11, 2013 Share Posted June 11, 2013 Hi, I got problem with prestashop 1.4.4.1. This site: http://www.edelikatesy.cz/ When I activate new language (Russian in this case) add to card buttons stops working. When you click on add to card in category, subcategory, homepage, product page it just redirects you to homepage and product is not in the card. Url after clicking on add to card changes to this: http://www.edelikatesy.cz/shop/cs/?add&id_product=307&token=42ffe2b8b57d86c04591c8fe27ff1595 It is probably problem with .htaccess, because when I disable friendly URLs it works. There is right now only one language on the site, because shop must be working, which is not with two languages. Do you have any suggestions? I tried to google everywhere, but it seems like that is only my problem. How my .htaccess looks like: RewriteEngine on # URL rewriting rules RewriteRule ^api/?(.*)$ /shop/webservice/dispatcher.php?url=$1 [QSA,L] RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1-$2$3.jpg [L] RewriteRule ^([0-9]+)\-([0-9]+)/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1-$2.jpg [L] RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$1$2.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$1$2$3$4.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$1$2$3$4$5.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?/[_a-zA-Z0-9-]*\.jpg$ /shop/img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /shop/img/c/$1$2.jpg [L] RewriteRule ^c/([a-zA-Z-]+)/[a-zA-Z0-9-]+\.jpg$ /shop/img/c/$1.jpg [L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]*\.html /shop/product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)\-[a-zA-Z0-9-]* /shop/category.php?id_category=$1 [QSA,L] RewriteRule ^[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /shop/product.php?id_product=$1 [QSA,L] RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*) /shop/supplier.php?id_supplier=$1 [QSA,L] RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*) /shop/manufacturer.php?id_manufacturer=$1 [QSA,L] RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*) /shop/cms.php?id_cms=$1 [QSA,L] RewriteRule ^content/category/([0-9]+)\-([a-zA-Z0-9-]*) /shop/cms.php?id_cms_category=$1 [QSA,L] RewriteRule ^([a-z]{2})/[a-zA-Z0-9-]*/([0-9]+)\-[a-zA-Z0-9-]*\.html /shop/product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]*\.html /shop/product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)\-[a-zA-Z0-9-]* /shop/category.php?id_category=$2&isolang=$1 [QSA,L] RewriteRule ^([a-z]{2})/content/([0-9]+)\-[a-zA-Z0-9-]* /shop/cms.php?isolang=$1&id_cms=$2 [QSA,L] RewriteRule ^([a-z]{2})/content/category/([0-9]+)\-[a-zA-Z0-9-]* /shop/cms.php?isolang=$1&id_cms_category=$2 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)__[a-zA-Z0-9-]* /shop/supplier.php?isolang=$1&id_supplier=$2 [QSA,L] RewriteRule ^([a-z]{2})/([0-9]+)_[a-zA-Z0-9-]* /shop/manufacturer.php?isolang=$1&id_manufacturer=$2 [QSA,L] RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/[_a-zA-Z0-9-]*\.jpg$ /shop/img/c/$1$2.jpg [L] RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html /shop/product.php?id_product=$3&isolang=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html /shop/product.php?id_product=$2&isolang=$1 [QSA,L] RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*) /shop/category.php?id_category=$2&isolang=$1 [QSA,L] RewriteRule ^cs/404-error$ /shop/404.php?isolang=cs [QSA,L] RewriteRule ^cs/nejprodavanejsi-produkty$ /shop/best-sales.php?isolang=cs [QSA,L] RewriteRule ^cs/contact-us$ /shop/contact-form.php?isolang=cs [QSA,L] RewriteRule ^cs/guest-tracking$ /shop/guest-tracking.php?isolang=cs [QSA,L] RewriteRule ^cs/manufacturers$ /shop/manufacturer.php?isolang=cs [QSA,L] RewriteRule ^cs/new-products$ /shop/new-products.php?isolang=cs [QSA,L] RewriteRule ^cs/quick-order$ /shop/order-opc.php?isolang=cs [QSA,L] RewriteRule ^cs/forgot-your-password$ /shop/password.php?isolang=cs [QSA,L] RewriteRule ^cs/specials$ /shop/prices-drop.php?isolang=cs [QSA,L] RewriteRule ^cs/sitemap$ /shop/sitemap.php?isolang=cs [QSA,L] RewriteRule ^cs/suppliers$ /shop/supplier.php?isolang=cs [QSA,L] RewriteRule ^cs$ /shop/cs/ [QSA,L] RewriteRule ^cs/([^?&]*)$ /shop/$1?isolang=cs [QSA,L] RewriteRule ^ru/404-error$ /shop/404.php?isolang=ru [QSA,L] RewriteRule ^ru/nejprodavanejsi-produkty$ /shop/best-sales.php?isolang=ru [QSA,L] RewriteRule ^ru/contact-us$ /shop/contact-form.php?isolang=ru [QSA,L] RewriteRule ^ru/guest-tracking$ /shop/guest-tracking.php?isolang=ru [QSA,L] RewriteRule ^ru/manufacturers$ /shop/manufacturer.php?isolang=ru [QSA,L] RewriteRule ^ru/new-products$ /shop/new-products.php?isolang=ru [QSA,L] RewriteRule ^ru/quick-order$ /shop/order-opc.php?isolang=ru [QSA,L] RewriteRule ^ru/forgot-your-password$ /shop/password.php?isolang=ru [QSA,L] RewriteRule ^ru/specials$ /shop/prices-drop.php?isolang=ru [QSA,L] RewriteRule ^ru/sitemap$ /shop/sitemap.php?isolang=ru [QSA,L] RewriteRule ^ru/suppliers$ /shop/supplier.php?isolang=ru [QSA,L] RewriteRule ^ru$ /shop/ru/ [QSA,L] RewriteRule ^ru/([^?&]*)$ /shop/$1?isolang=ru [QSA,L] Link to comment Share on other sites More sharing options...
safa Posted June 11, 2013 Share Posted June 11, 2013 i looked your website and i can't see any errors. do you fixed? Link to comment Share on other sites More sharing options...
daend Posted June 11, 2013 Author Share Posted June 11, 2013 I didn't fix it, jut disable Russian version, because it is not possible to order. I have activate it now for few minutes, so you can check it. Link to comment Share on other sites More sharing options...
daend Posted June 11, 2013 Author Share Posted June 11, 2013 Ok, I have disabled Russian language again. Did you have time to look at it? Link to comment Share on other sites More sharing options...
El Patron Posted June 11, 2013 Share Posted June 11, 2013 try this, after activating a new language, clear your browser cache and cookies... Link to comment Share on other sites More sharing options...
daend Posted June 13, 2013 Author Share Posted June 13, 2013 Unfortunately it is not about cache and Cookies. I tried it in Anonimous/Incognito window and bugg is still there. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now