Logidav Docs

NewProductService
in package

Tags
class

NewProductService

Table of Contents

Constants

ASIR_NEW_PRODUCT_STATUS  = ['waiting_for_label' => "En attente d'assignation d'un libellé", 'in_progress' => 'En cours de validation']
coffShipping  = 9
defaultCoffShippingPrice  = 1

Properties

$asirGroupModeProductService  : ProductService
$asirGroupProductService  : ProductService
$attributeService  : AttributeService
$attributeSetService  : AttributeSetService
$bigbuyProductService  : ProductService
$cmpProductService  : ProductService
$container  : ContainerInterface
$entityManager  : EntityManagerInterface
$newProductLogService  : NewProductLogService
$newProductStatService  : mixed
$notioProductService  : NotioProductService
$priceService  : PriceService
$productApi  : mixed
$productPriceSheetService  : ProductPriceSheetService
$stores  : mixed
$vidaxlProductService  : ProductService

Methods

__construct()  : mixed
QueueService constructor.
calculateShippingAmountForLotProduct()  : void
canCreateProductInHebrewStore()  : bool
Product can be assigned to hebrew store
checkImagesDataForSyncMagento()  : array<string|int, mixed>|array<string|int, true>
checkIsAvailableForSyncMagento()  : false
checkThenInsertIntoProductPriceSheet()  : void
checkThenInsertIntoProductPriceSheetForMzProduct()  : void
consolidateDimensions()  : mixed
dissociateProducts()  : bool
Dissociate products from the given NewProduct.
getCategoriesIds()  : array<string|int, mixed>
getCleanDimensionString()  : bool
getCleanDimensionStringBigbuy()  : false|mixed
getCoeffLivraison()  : mixed
getColorsArray()  : array<string|int, mixed>
getImageData()  : array<string|int, mixed>
getMeduseCategoriesIds()  : array<string|int, mixed>
getProductBigbuyRepo()  : ProductRepository
getProductInfo()  : array<string|int, mixed>
getProductMenzzoPrice()  : false
getProductVidaxkRepo()  : ProductRepository
getRepo()  : NewProductRepository
getToDiverseCoffPriceShipping()  : false|int
getUploadFolder()  : string
hasLot()  : void
insertNewPriceSheet()  : void
mergeProducts()  : mixed
normalizeStoreDatas()  : array<string|int, mixed>|mixed
remove()  : mixed
save()  : NewProduct
Save The Entity
saveNewProduct()  : NewProduct
setLogidavAttributeSetName()  : mixed
showFieldInForm()  : false
synchroniseNewProductImages()  : mixed
uploadFiles()  : mixed
cloneNewProduct()  : NewProduct
findCategoryById()  : mixed
getProductBySku()  : Product
manageTheAssociationBetweenProductAndNewProductInDB()  : void
unsetProductColorsAfterDissociation()  : array<string|int, mixed>
updateAssociationBetweenProductAndNewProduct()  : void
updateNewProductIdForDropshiperProduct()  : mixed
updateProductInfo()  : array<string|int, mixed>
updateProductInfoAndSetProperties()  : void
updateProductInfoForAsirProducts()  : array<string|int, mixed>
updateProductInfoForNotioProducts()  : array<string|int, mixed>

Constants

ASIR_NEW_PRODUCT_STATUS

public mixed ASIR_NEW_PRODUCT_STATUS = ['waiting_for_label' => "En attente d'assignation d'un libellé", 'in_progress' => 'En cours de validation']

Properties

Methods

__construct()

QueueService constructor.

public __construct(ContainerInterface $container, EntityManagerInterface $entityManager, AttributeSetService $attributeSetService, ProductService $bigbuyProductService, ProductService $vidaxlProductService, NewProductStatService $newProductStatService, ProductService $asirGroupProductService, ProductService $asirGroupModeProductService, NotioProductService $notioProductService, PriceService $priceService, AttributeService $attributeService, ProductService $cmpProductService, NewProductLogService $newProductLogService, ProductPriceSheetService $productPriceSheetService) : mixed
Parameters
$container : ContainerInterface
$entityManager : EntityManagerInterface
$attributeSetService : AttributeSetService
$bigbuyProductService : ProductService
$vidaxlProductService : ProductService
$newProductStatService : NewProductStatService
$asirGroupProductService : ProductService

,

$asirGroupModeProductService : ProductService
$notioProductService : NotioProductService
$priceService : PriceService
$attributeService : AttributeService
$cmpProductService : ProductService
$newProductLogService : NewProductLogService
$productPriceSheetService : ProductPriceSheetService

calculateShippingAmountForLotProduct()

public calculateShippingAmountForLotProduct(mixed $price, mixed $nb) : void
Parameters
$price : mixed
$nb : mixed

canCreateProductInHebrewStore()

Product can be assigned to hebrew store

public canCreateProductInHebrewStore(NewProduct $newProduct) : bool
Parameters
$newProduct : NewProduct
Return values
bool

checkImagesDataForSyncMagento()

public checkImagesDataForSyncMagento(mixed $newProduct) : array<string|int, mixed>|array<string|int, true>
Parameters
$newProduct : mixed
Return values
array<string|int, mixed>|array<string|int, true>

checkIsAvailableForSyncMagento()

public checkIsAvailableForSyncMagento(mixed $newProduct) : false
Parameters
$newProduct : mixed
Return values
false

checkThenInsertIntoProductPriceSheet()

public checkThenInsertIntoProductPriceSheet(NewProduct $newProduct, mixed $manufacturer) : void
Parameters
$newProduct : NewProduct
$manufacturer : mixed

checkThenInsertIntoProductPriceSheetForMzProduct()

public checkThenInsertIntoProductPriceSheetForMzProduct(Product $mzProduct, mixed $manufacturer) : void
Parameters
$mzProduct : Product
$manufacturer : mixed

consolidateDimensions()

public consolidateDimensions(mixed $features) : mixed
Parameters
$features : mixed

dissociateProducts()

Dissociate products from the given NewProduct.

public dissociateProducts(NewProduct $newProduct, string $prefix) : bool
Parameters
$newProduct : NewProduct
$prefix : string
Tags
throws
JsonException
Return values
bool

getCategoriesIds()

public getCategoriesIds([mixed $categories = [] ]) : array<string|int, mixed>
Parameters
$categories : mixed = []
Return values
array<string|int, mixed>

getCleanDimensionString()

public getCleanDimensionString(mixed $description) : bool
Parameters
$description : mixed
Return values
bool

getCleanDimensionStringBigbuy()

public getCleanDimensionStringBigbuy(mixed $description) : false|mixed
Parameters
$description : mixed
Return values
false|mixed

getCoeffLivraison()

public getCoeffLivraison(mixed $produInfo, mixed $sku) : mixed
Parameters
$produInfo : mixed
$sku : mixed

getColorsArray()

public getColorsArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

getImageData()

public getImageData(mixed $image, mixed $name, mixed &$pos) : array<string|int, mixed>
Parameters
$image : mixed
$name : mixed
$pos : mixed
Return values
array<string|int, mixed>

getMeduseCategoriesIds()

public getMeduseCategoriesIds([array<string|int, mixed> $categories = [] ]) : array<string|int, mixed>
Parameters
$categories : array<string|int, mixed> = []
Return values
array<string|int, mixed>

getProductInfo()

public getProductInfo(string $sku, array<string|int, mixed> $productInfo, Product $productEntity) : array<string|int, mixed>
Parameters
$sku : string
$productInfo : array<string|int, mixed>
$productEntity : Product
Return values
array<string|int, mixed>

getProductMenzzoPrice()

public getProductMenzzoPrice(mixed $productId) : false
Parameters
$productId : mixed
Return values
false

getToDiverseCoffPriceShipping()

public getToDiverseCoffPriceShipping(mixed $produInfo, mixed $sku) : false|int
Parameters
$produInfo : mixed
$sku : mixed
Return values
false|int

getUploadFolder()

public getUploadFolder(mixed $id[, string $sku = '' ]) : string
Parameters
$id : mixed
$sku : string = ''
Return values
string

hasLot()

public hasLot(mixed $variations, mixed $dropSipRef) : void
Parameters
$variations : mixed
$dropSipRef : mixed

insertNewPriceSheet()

public insertNewPriceSheet(mixed $promoSheetCalculate, mixed $mzProduct, mixed $manufacturer) : void
Parameters
$promoSheetCalculate : mixed
$mzProduct : mixed
$manufacturer : mixed

mergeProducts()

public mergeProducts(mixed $newProducts, mixed $prefix) : mixed
Parameters
$newProducts : mixed
$prefix : mixed
Tags
throws
DBALException

normalizeStoreDatas()

public normalizeStoreDatas(mixed $storeDatas) : array<string|int, mixed>|mixed
Parameters
$storeDatas : mixed
Return values
array<string|int, mixed>|mixed

saveNewProduct()

public saveNewProduct(array<string|int, mixed> $data, string $section[, int|null $id = null ][, bool $isAdmin = false ][, mixed $readyForContent = null ][, mixed $step = null ][, mixed $isAutomatic = false ]) : NewProduct
Parameters
$data : array<string|int, mixed>
$section : string
$id : int|null = null
$isAdmin : bool = false
$readyForContent : mixed = null
$step : mixed = null
$isAutomatic : mixed = false
Tags
throws
ORMException
Return values
NewProduct

setLogidavAttributeSetName()

public setLogidavAttributeSetName(mixed $attrSet, mixed &$attr) : mixed
Parameters
$attrSet : mixed
$attr : mixed

showFieldInForm()

public static showFieldInForm(mixed $attrGroupName) : false
Parameters
$attrGroupName : mixed
Return values
false

synchroniseNewProductImages()

public synchroniseNewProductImages(Product $product, mixed $targetJsonToSynchronise) : mixed
Parameters
$product : Product
$targetJsonToSynchronise : mixed

findCategoryById()

private findCategoryById(mixed $categories, mixed $categoryId) : mixed
Parameters
$categories : mixed
$categoryId : mixed

unsetProductColorsAfterDissociation()

private unsetProductColorsAfterDissociation(array<string|int, mixed> $productInfo, string $variation) : array<string|int, mixed>
Parameters
$productInfo : array<string|int, mixed>
$variation : string
Return values
array<string|int, mixed>

updateAssociationBetweenProductAndNewProduct()

private updateAssociationBetweenProductAndNewProduct(int $newProductId, int $newProductCloneId, int $productId) : void
Parameters
$newProductId : int
$newProductCloneId : int
$productId : int

updateNewProductIdForDropshiperProduct()

private updateNewProductIdForDropshiperProduct(string $dropshiperEntityName, int $newProductCloneId, string $variation) : mixed
Parameters
$dropshiperEntityName : string
$newProductCloneId : int
$variation : string

updateProductInfo()

private updateProductInfo(array<string|int, mixed> $productInfo, string $prefix, string $variation) : array<string|int, mixed>
Parameters
$productInfo : array<string|int, mixed>
$prefix : string
$variation : string
Tags
throws
JsonException
Return values
array<string|int, mixed>

updateProductInfoAndSetProperties()

private updateProductInfoAndSetProperties(NewProduct $newProduct, array<string|int, mixed> $productInfo, string $prefix, string $sku) : void
Parameters
$newProduct : NewProduct
$productInfo : array<string|int, mixed>
$prefix : string
$sku : string
Tags
throws
JsonException

updateProductInfoForAsirProducts()

private updateProductInfoForAsirProducts(array<string|int, mixed> $productInfo, string $variation) : array<string|int, mixed>
Parameters
$productInfo : array<string|int, mixed>
$variation : string
Return values
array<string|int, mixed>

updateProductInfoForNotioProducts()

private updateProductInfoForNotioProducts(array<string|int, mixed> $productInfo, string $variation) : array<string|int, mixed>
Parameters
$productInfo : array<string|int, mixed>
$variation : string
Tags
throws
JsonException
Return values
array<string|int, mixed>

        
On this page

Search results