Beispiel #1
0
 /**
  * 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;
 }