/** * Retrieve Maximum Qty Allowed in Shopping Cart data wrapper * * @return float */ public function getMaxSaleQty() { if ($this->getUseConfigMaxSaleQty()) { $customerGroupId = $this->getCustomerGroupId(); $maxSaleQty = $this->stockConfiguration->getMaxSaleQty($this->getStoreId(), $customerGroupId); } else { $maxSaleQty = (double) $this->getData(static::MAX_SALE_QTY); } return $maxSaleQty; }