NewProductService
in package
Tags
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']
coffShipping
public
mixed
coffShipping
= 9
defaultCoffShippingPrice
public
mixed
defaultCoffShippingPrice
= 1
Properties
$asirGroupModeProductService
private
ProductService
$asirGroupModeProductService
$asirGroupProductService
private
ProductService
$asirGroupProductService
$attributeService
private
AttributeService
$attributeService
$attributeSetService
private
AttributeSetService
$attributeSetService
$bigbuyProductService
private
ProductService
$bigbuyProductService
$cmpProductService
private
ProductService
$cmpProductService
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
$newProductLogService
private
NewProductLogService
$newProductLogService
$newProductStatService
private
mixed
$newProductStatService
$notioProductService
private
NotioProductService
$notioProductService
$priceService
private
PriceService
$priceService
$productApi
private
mixed
$productApi
Tags
$productPriceSheetService
private
ProductPriceSheetService
$productPriceSheetService
$stores
private
mixed
$stores
$vidaxlProductService
private
ProductService
$vidaxlProductService
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
boolcheckImagesDataForSyncMagento()
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
falsecheckThenInsertIntoProductPriceSheet()
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
Return values
boolgetCategoriesIds()
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
boolgetCleanDimensionStringBigbuy()
public
getCleanDimensionStringBigbuy(mixed $description) : false|mixed
Parameters
- $description : mixed
Return values
false|mixedgetCoeffLivraison()
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>getProductBigbuyRepo()
public
getProductBigbuyRepo() : ProductRepository
Return values
ProductRepositorygetProductInfo()
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
falsegetProductVidaxkRepo()
public
getProductVidaxkRepo() : ProductRepository
Return values
ProductRepositorygetRepo()
public
getRepo() : NewProductRepository
Return values
NewProductRepositorygetToDiverseCoffPriceShipping()
public
getToDiverseCoffPriceShipping(mixed $produInfo, mixed $sku) : false|int
Parameters
- $produInfo : mixed
- $sku : mixed
Return values
false|intgetUploadFolder()
public
getUploadFolder(mixed $id[, string $sku = '' ]) : string
Parameters
- $id : mixed
- $sku : string = ''
Return values
stringhasLot()
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
normalizeStoreDatas()
public
normalizeStoreDatas(mixed $storeDatas) : array<string|int, mixed>|mixed
Parameters
- $storeDatas : mixed
Return values
array<string|int, mixed>|mixedremove()
public
remove(NewProduct $product) : mixed
Parameters
- $product : NewProduct
Tags
save()
Save The Entity
public
save(NewProduct $product) : NewProduct
Parameters
- $product : NewProduct
Return values
NewProductsaveNewProduct()
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
Return values
NewProductsetLogidavAttributeSetName()
public
setLogidavAttributeSetName(mixed $attrSet, mixed &$attr) : mixed
Parameters
- $attrSet : mixed
- $attr : mixed
showFieldInForm()
public
static showFieldInForm(mixed $attrGroupName) : false
Parameters
- $attrGroupName : mixed
Return values
falsesynchroniseNewProductImages()
public
synchroniseNewProductImages(Product $product, mixed $targetJsonToSynchronise) : mixed
Parameters
- $product : Product
- $targetJsonToSynchronise : mixed
uploadFiles()
public
uploadFiles(NewProduct $newProduct, mixed &$data) : mixed
Parameters
- $newProduct : NewProduct
- $data : mixed
cloneNewProduct()
private
cloneNewProduct(NewProduct $newProduct) : NewProduct
Parameters
- $newProduct : NewProduct
Tags
Return values
NewProductfindCategoryById()
private
findCategoryById(mixed $categories, mixed $categoryId) : mixed
Parameters
- $categories : mixed
- $categoryId : mixed
getProductBySku()
private
getProductBySku(array<string|int, Product> $products, string $sku) : Product
Parameters
- $products : array<string|int, Product>
- $sku : string
Return values
ProductmanageTheAssociationBetweenProductAndNewProductInDB()
private
manageTheAssociationBetweenProductAndNewProductInDB(NewProduct $newProduct, NewProduct $newProductClone, Product $product, string $prefix) : void
Parameters
- $newProduct : NewProduct
- $newProductClone : NewProduct
- $product : Product
- $prefix : string
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
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
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