By default, the store adds the following rules to the urlManager settings:
'rules' => [ '~shop-cart' => 'shop/cart', '~shop-<_a:(checkout|payment)>' => 'shop/cart/<_a>', '~shop-<_a:(finish)>' => 'shop/order/<_a>', '~shop-order/<_a>' => 'shop/order/<_a>', ]
Examples of main url
Link to the cart:
\yii\helpers\Url::to(['/shop/cart'])
Link to order:
\yii\helpers\Url::to(['/shop/cart/checkout'])
Link to order page:
\yii\helpers\Url::to(['shop/order/finish', 'key' => $order->key])
Categories
Popular
Релиз SkeekS CMS 5.5.11 работает с yii2 2.0.24
- Aug 13, 2019
Как отправить форму в yii2 и skeeks cms через ajax?
- Apr 18, 2019