view default coupon

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

Re: view default coupon

Post by mino182 »

Modul kosik (phoca cart cart module) pod tovarom je link: "view cart - checkout" - tam je spravna url.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48400
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: view default coupon

Post by Jan »

Testuju to teď, oba dva jsou standardní linky na checkout renderovaný metodou getCheckoutRoute. Ten problém asi bude tím menu linkem do kategorie, což ase ale nedá nijak ovlivnit :-(
If you find Phoca extensions useful, please support the project
mino182
Phoca Professional
Phoca Professional
Posts: 189
Joined: 12 Feb 2015, 13:30

Re: view default coupon

Post by mino182 »

Ahoj, tento problém sa mi podarilo vyriešiť tak, že som zmenil link na checkout v controllers/checkout.json.php tak isto ako to je v layouts/cart_cart.php.

controllers/checkout.json.php:

Code: Select all

$d['link_checkout'] = Route::_(PhocacartRoute::getCheckoutRoute((int)$item['id'], (int)$item['catid']));
 
 na
 
 $d['link_checkout'] = Route::_(PhocacartRoute::getCheckoutRoute());
 





mino182 wrote: 06 Jul 2023, 12:48 Nemám sef rozšírenie, verzia 4.0.7, takto to vyzerá:

Image

a takto mám menu:

Image

A keď odpublikujem menu položku na kategóriu, tak v URL pribudne ID kategórie (router phoca cartu) a vtedy sa URL na checkout zobrazuje správne...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48400
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: view default coupon

Post by Jan »

OK, díky za info.
If you find Phoca extensions useful, please support the project
Post Reply