Logidav Docs

UpdateAndCorrectComposedProductPricesCommand extends ContainerAwareCommand
in package
uses LockableTrait

Table of Contents

Properties

$dbConnection  : Connection
$em  : EntityManager
$limit  : int
$output  : OutputInterface
$priceService  : PriceService
$user  : mixed

Methods

__construct()  : mixed
configure()  : mixed
execute()  : mixed
calculateComposedProductPrice()  : mixed
calculateComposedProductSpecialPrice()  : mixed
calculateEnsembleProductPrice()  : float|null
calculateEnsembleSpecialPrice()  : array<string|int, mixed>|null
getAllComposedProducts()  : array<string|int, mixed>
Récupère tous les produits composés de la base de données
getComponentPrices()  : mixed
getComponentsGroupedBySku()  : array<string|int, mixed>
getUniqueParentSku()  : mixed
processComposedProduct()  : mixed
updateProductPrice()  : mixed
writeDataToCsv()  : mixed
Écrit les données dans un fichier CSV

Properties

Methods

calculateComposedProductPrice()

private calculateComposedProductPrice(array<string|int, mixed> $parentProductPrices[, array<string|int, mixed> $childProductData = [] ]) : mixed
Parameters
$parentProductPrices : array<string|int, mixed>
$childProductData : array<string|int, mixed> = []

calculateComposedProductSpecialPrice()

private calculateComposedProductSpecialPrice(array<string|int, mixed> $parentProductPrices[, array<string|int, mixed> $childProductData = [] ]) : mixed
Parameters
$parentProductPrices : array<string|int, mixed>
$childProductData : array<string|int, mixed> = []

calculateEnsembleProductPrice()

private calculateEnsembleProductPrice(array<string|int, mixed> $components, int $storeId) : float|null
Parameters
$components : array<string|int, mixed>
$storeId : int
Return values
float|null

calculateEnsembleSpecialPrice()

private calculateEnsembleSpecialPrice(array<string|int, mixed> $components, int $storeId) : array<string|int, mixed>|null
Parameters
$components : array<string|int, mixed>
$storeId : int
Return values
array<string|int, mixed>|null

getAllComposedProducts()

Récupère tous les produits composés de la base de données

private getAllComposedProducts() : array<string|int, mixed>
Return values
array<string|int, mixed>

getComponentsGroupedBySku()

private getComponentsGroupedBySku(mixed $productComposition) : array<string|int, mixed>
Parameters
$productComposition : mixed
Return values
array<string|int, mixed>

getUniqueParentSku()

private getUniqueParentSku(mixed $productComposition[, mixed $ensParentSku = null ]) : mixed
Parameters
$productComposition : mixed
$ensParentSku : mixed = null

processComposedProduct()

private processComposedProduct(mixed $childProductData, mixed $parentSku, mixed $storeId) : mixed
Parameters
$childProductData : mixed
$parentSku : mixed
$storeId : mixed

updateProductPrice()

private updateProductPrice(mixed $childProductData[, mixed $productNewPrice = null ][, mixed $productNewSpecialPriceData = null ][, mixed $promo = null ][, mixed $storeId = 3 ]) : mixed
Parameters
$childProductData : mixed
$productNewPrice : mixed = null
$productNewSpecialPriceData : mixed = null
$promo : mixed = null
$storeId : mixed = 3

writeDataToCsv()

Écrit les données dans un fichier CSV

private writeDataToCsv(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>

Les données à écrire


        
On this page

Search results