We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now to use the decrease the quantity of an Item I had to make this cycle:
$positions = Yii::app()->shoppingCart->getPositions(); foreach($positions as $position) { if ($position->id == $id){ $total = $position->getQuantity(); Yii::app()->shoppingCart->update($position,$total-1); //1 item with id=1, quantity=2. $price = $position->getSumPrice(); } }
Is this right? If it is a
Yii::app()->shoppingCart->getPosition($book);
to load directly one resource without cycle trought all could be usefull.. Or maybe I just didn't find the right method to do this...
Kindly waiting for a feedback :) Thanks for your great Job!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Now to use the decrease the quantity of an Item I had to make this cycle:
Is this right?
If it is a
to load directly one resource without cycle trought all could be usefull.. Or maybe I just didn't find the right method to do this...
Kindly waiting for a feedback :) Thanks for your great Job!
The text was updated successfully, but these errors were encountered: