Skip to content

Commit

Permalink
Fixed updating of item quantity in cart
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed May 26, 2016
1 parent 5857422 commit bd63684
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/widgets/views/QuantityCell_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

use yii\helpers\Html;

/**
* @var \hiqdev\yii2\cart\CartPositionInterface $model
* @var \hiqdev\yii2\cart\widgets\QuantityCell $widget
*/

?>

<?= Html::beginForm('update-quantity', 'post', ['id' => $model->id]) ?>
<?= Html::beginForm('@cart/update-quantity', 'post', ['id' => $model->id]) ?>

<?= Html::hiddenInput('id', $model->id) ?>
<?php $quantityOptions = $model->getQuantityOptions(); ?>
Expand Down

0 comments on commit bd63684

Please sign in to comment.