44 private $minSaleQtyCache = [];
56 Json $serializer =
null 72 return !empty($qty) ? (float) $qty :
null;
85 return (
string)
$data;
96 return $this->serializer->serialize(
$data);
113 return $this->serializer->unserialize(
$value);
133 || !array_key_exists(
'customer_group_id',
$row)
134 || !array_key_exists(
'min_sale_qty',
$row)
152 $resultId = $this->mathRandom->getUniqueHash(
'_');
170 || !array_key_exists(
'customer_group_id',
$row)
171 || !array_key_exists(
'min_sale_qty',
$row)
176 $qty = $this->
fixQty($row[
'min_sale_qty']);
191 $key = $customerGroupId .
'-' .
$store;
192 if (!isset($this->minSaleQtyCache[$key])) {
193 $value = $this->scopeConfig->getValue(
194 \
Magento\CatalogInventory\Model\Configuration::XML_PATH_MIN_SALE_QTY,
213 return $this->minSaleQtyCache[$key];
253 return $this->groupManagement->getAllCustomersGroup()->getId();
encodeArrayFieldValue(array $value)
elseif(isset( $params[ 'redirect_parent']))
isEncodedArrayFieldValue($value)
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Math\Random $mathRandom, GroupManagementInterface $groupManagement, Json $serializer=null)
getConfigValue($customerGroupId, $store=null)
makeStorableArrayFieldValue($value)
makeArrayFieldValue($value)
decodeArrayFieldValue(array $value)