Commit d42b767b authored by Thorsten Buss's avatar Thorsten Buss
Browse files

add hasCondition to Cart

parent 24eefdb3
......@@ -349,6 +349,16 @@ class Cart implements Jsonable, \JsonSerializable, Arrayable{
return $this->getConditions()->get($conditionName);
* check if condition exists on the cart by its name
* @param $conditionName
* @return Condition
public function hasCondition($conditionName) {
return $this->getConditions()->has($conditionName);
* Get all the condition filtered by Type
* Please Note that this will only return condition added on cart bases, not those conditions added
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment