Ajax add to cart - non SEF links in cart

Phoca Cart - complex e-commerce extension
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Ajax add to cart - non SEF links in cart

Post by mino182 »

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

Tags:
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: Ajax add to cart - non SEF links in cart

Post by Nidzo »

I can confirm that. But after page refresh or when visit another page it becomes SEF.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Ajax add to cart - non SEF links in cart

Post by Jan »

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.
If you find Phoca extensions useful, please support the project
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: Ajax add to cart - non SEF links in cart

Post by mino182 »

Ahoj, súbor sa mi nedá stiahnuť. error 500.
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Ajax add to cart - non SEF links in cart

Post by christine »

Hi mino,

have already informed Jan before your post. Thank you.

Kind regards
Christine
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: Ajax add to cart - non SEF links in cart

Post by mino182 »

pomohlo mi zmeniť v tom súbore

Code: Select all

PhocacartRoute::getItemRoute((int)$v['id'], (int)$v['catid'], $v['alias']);
na

Code: Select all

Route::_(PhocacartRoute::getItemRoute((int)$v['id'], (int)$v['catid'], $v['alias']));
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Ajax add to cart - non SEF links in cart

Post by Jan »

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
If you find Phoca extensions useful, please support the project
User avatar
Nidzo
Phoca Professional
Phoca Professional
Posts: 387
Joined: 07 Nov 2018, 14:55

Re: Ajax add to cart - non SEF links in cart

Post by Nidzo »

Works great! Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Ajax add to cart - non SEF links in cart

Post by Jan »

Hi, thank you for the info.
If you find Phoca extensions useful, please support the project
Post Reply