Ahoj, keď pridám tovar do košíka cez ajax, adresy v košíku sa zmenia na "nie SEF". Čo by nebol až taký problém ale tie adresy nie sú platné a idú rovno do 404
video:
https://i.imgur.com/TRyIADZ.mp4
Ajax add to cart - non SEF links in cart
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: Ajax add to cart - non SEF links in cart
I can confirm that. But after page refresh or when visit another page it becomes SEF.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Ajax add to cart - non SEF links in cart
Ahoj, díky za info.
Stáhni si následující soubor https://www.phoca.cz/forumfiles/cart_cart.php.zip
a nakopíruj soubor cart_cart.php ze ZIPu do následující složky:
components/com_phocacart/layouts/
Mělo by to být opraveno, viz zde: https://www.phoca.cz/phocacartdemo/
Dej m prosím vědět.
===
Download the following file https://www.phoca.cz/forumfiles/cart_cart.php.zip
and copy the cart_cart.php file from the ZIP to the following folder:
components/com_phocacart/layouts/
It should be fixed, see here: https://www.phoca.cz/phocacartdemo/
Please let me know.
Díky/Thanks.
Stáhni si následující soubor https://www.phoca.cz/forumfiles/cart_cart.php.zip
a nakopíruj soubor cart_cart.php ze ZIPu do následující složky:
components/com_phocacart/layouts/
Mělo by to být opraveno, viz zde: https://www.phoca.cz/phocacartdemo/
Dej m prosím vědět.
===
Download the following file https://www.phoca.cz/forumfiles/cart_cart.php.zip
and copy the cart_cart.php file from the ZIP to the following folder:
components/com_phocacart/layouts/
It should be fixed, see here: https://www.phoca.cz/phocacartdemo/
Please let me know.
Díky/Thanks.
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Re: Ajax add to cart - non SEF links in cart
Ahoj, súbor sa mi nedá stiahnuť. error 500.
-
- Phoca Hero
- Posts: 2819
- Joined: 28 Nov 2010, 17:20
Re: Ajax add to cart - non SEF links in cart
Hi mino,
have already informed Jan before your post. Thank you.
Kind regards
Christine
have already informed Jan before your post. Thank you.
Kind regards
Christine
-
- Phoca Professional
- Posts: 189
- Joined: 12 Feb 2015, 13:30
Re: Ajax add to cart - non SEF links in cart
pomohlo mi zmeniť v tom súbore
na
Code: Select all
PhocacartRoute::getItemRoute((int)$v['id'], (int)$v['catid'], $v['alias']);
Code: Select all
Route::_(PhocacartRoute::getItemRoute((int)$v['id'], (int)$v['catid'], $v['alias']));
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Ajax add to cart - non SEF links in cart
Hi, thank you for the info, the server has some specific protection, the new link is:
https://www.phoca.cz/forumfiles/cart_cart.zip
Yes, the Router class added to the link is the right way.
Jan
https://www.phoca.cz/forumfiles/cart_cart.zip
Yes, the Router class added to the link is the right way.
Jan
If you find Phoca extensions useful, please support the project
- Nidzo
- Phoca Professional
- Posts: 387
- Joined: 07 Nov 2018, 14:55
Re: Ajax add to cart - non SEF links in cart
Works great! Thanks!
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Ajax add to cart - non SEF links in cart
Hi, thank you for the info.
If you find Phoca extensions useful, please support the project