Example #1
0
 /**
  * Retrieve Minimum Qty Allowed in Shopping Cart or NULL when there is no limitation
  *
  * @return float
  */
 public function getMinSaleQty()
 {
     if ($this->getUseConfigMinSaleQty()) {
         $customerGroupId = $this->getCustomerGroupId();
         $minSaleQty = $this->stockConfiguration->getMinSaleQty($this->getStoreId(), $customerGroupId);
     } else {
         $minSaleQty = (double) $this->getData(static::MIN_SALE_QTY);
     }
     return $minSaleQty;
 }