PriceService
in package
Table of Contents
Properties
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $logService : LogService
- $queueService : QueueServiceInterface
Methods
- __construct() : mixed
- FilesImportService constructor.
- calculFdpByProductCoeff() : false|float
- calculProductInfoNewCoeff() : float|int
- checkPriceOrSpecialPrice() : mixed
- getComposedProductsPriceCoefs() : array<string|int, mixed>
- getData() : array<string|int, mixed>
- getDatesByStore() : false|mixed
- updateCoeffQueueService() : mixed
- updatePriceProductInfo() : mixed
- updatePriceSpecialPrice() : mixed
- Up
- updateProductAndComposedProd() : mixed
- updateProductInfoCoeffLivraison() : mixed
- updateQueueService() : mixed
- Update Queue
- updateSpecialPriceProductInfo() : mixed
Properties
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
$logService
private
LogService
$logService
$queueService
private
QueueServiceInterface
$queueService
Methods
__construct()
FilesImportService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager, QueueServiceInterface $queueService, LogService $logService) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $queueService : QueueServiceInterface
- $logService : LogService
calculFdpByProductCoeff()
public
calculFdpByProductCoeff(mixed $shippingCoeff[, int $storeId = 3 ]) : false|float
Parameters
- $shippingCoeff : mixed
- $storeId : int = 3
Return values
false|floatcalculProductInfoNewCoeff()
public
calculProductInfoNewCoeff(mixed $fdp[, int $storeId = 3 ]) : float|int
Parameters
- $fdp : mixed
- $storeId : int = 3
Return values
float|intcheckPriceOrSpecialPrice()
public
checkPriceOrSpecialPrice(mixed $product, mixed $user, mixed $storeId, mixed $price, mixed $promo, mixed $from, mixed $to, mixed $oldSpecialprice, mixed $oldPrice, mixed $specialPrice) : mixed
Parameters
- $product : mixed
- $user : mixed
- $storeId : mixed
- $price : mixed
- $promo : mixed
- $from : mixed
- $to : mixed
- $oldSpecialprice : mixed
- $oldPrice : mixed
- $specialPrice : mixed
getComposedProductsPriceCoefs()
public
getComposedProductsPriceCoefs() : array<string|int, mixed>
Return values
array<string|int, mixed>getData()
public
getData(mixed $products, mixed $storeId, mixed $format, mixed $user, mixed $isAdmin) : array<string|int, mixed>
Parameters
- $products : mixed
- $storeId : mixed
- $format : mixed
- $user : mixed
- $isAdmin : mixed
Return values
array<string|int, mixed>getDatesByStore()
public
getDatesByStore(mixed $dates, mixed $id) : false|mixed
Parameters
- $dates : mixed
- $id : mixed
Return values
false|mixedupdateCoeffQueueService()
public
updateCoeffQueueService(mixed $productId, mixed $storeId, mixed $coeff[, null $params = null ]) : mixed
Parameters
- $productId : mixed
- $storeId : mixed
- $coeff : mixed
- $params : null = null
Tags
updatePriceProductInfo()
public
updatePriceProductInfo(mixed $product, mixed $user, mixed $storeId, mixed $price, mixed $oldPrice, mixed $promo, mixed $from, mixed $to[, mixed $specialPrice = null ]) : mixed
Parameters
- $product : mixed
- $user : mixed
- $storeId : mixed
- $price : mixed
- $oldPrice : mixed
- $promo : mixed
- $from : mixed
- $to : mixed
- $specialPrice : mixed = null
updatePriceSpecialPrice()
Up
public
updatePriceSpecialPrice(Product $product, mixed $user, mixed $updateAll, mixed $updateDD, mixed $storeId, mixed $price, mixed $promo, mixed $specialPriceFrom, mixed $specialPriceTo[, null $datesByStore = null ][, null $specialPrice = null ]) : mixed
date price and/or special price
Parameters
- $product : Product
- $user : mixed
- $updateAll : mixed
- $updateDD : mixed
- $storeId : mixed
- $price : mixed
- $promo : mixed
- $specialPriceFrom : mixed
- $specialPriceTo : mixed
- $datesByStore : null = null
- $specialPrice : null = null
Tags
updateProductAndComposedProd()
public
updateProductAndComposedProd(mixed $product, mixed $user, mixed $updateAll, mixed $updateDD, mixed $storeId, mixed $price[, null $specialPriceFrom = null ][, null $specialPriceTo = null ][, null $promo = null ][, null $datesByStore = null ][, mixed $specialPrice = null ][, mixed $fdp = null ][, mixed $isUpdatedPriceInfo = false ][, mixed $isUpdatedFdp = false ]) : mixed
Parameters
- $product : mixed
- $user : mixed
- $updateAll : mixed
- $updateDD : mixed
- $storeId : mixed
- $price : mixed
- $specialPriceFrom : null = null
- $specialPriceTo : null = null
- $promo : null = null
- $datesByStore : null = null
- $specialPrice : mixed = null
- $fdp : mixed = null
- $isUpdatedPriceInfo : mixed = false
- $isUpdatedFdp : mixed = false
Tags
updateProductInfoCoeffLivraison()
public
updateProductInfoCoeffLivraison(mixed $product, mixed $fdp, mixed $store, mixed $user) : mixed
Parameters
- $product : mixed
- $fdp : mixed
- $store : mixed
- $user : mixed
Tags
updateQueueService()
Update Queue
public
updateQueueService(mixed $productId, mixed $storeId, mixed $price[, null $params = null ]) : mixed
Parameters
- $productId : mixed
- $storeId : mixed
- $price : mixed
- $params : null = null
Tags
updateSpecialPriceProductInfo()
public
updateSpecialPriceProductInfo(Product $product, mixed $user, mixed $storeId, mixed $price, mixed $promo[, mixed $from = null ][, mixed $to = null ][, null $oldSpecialprice = null ][, mixed $specialPrice = null ]) : mixed
Parameters
- $product : Product
- $user : mixed
- $storeId : mixed
- $price : mixed
- $promo : mixed
- $from : mixed = null
- $to : mixed = null
- $oldSpecialprice : null = null
- $specialPrice : mixed = null