Logidav Docs

ProductService
in package
uses DatatablesExportTrait

Table of Contents

Constants

CMP_CATEGORIES  = ['CHAISE FAUTEUIL DE TABLE' => [228], 'POUF ET COUSSIN DE SOL' => [228, 245], 'COFFRE ET BANC PLIABLE' => [228, 245], "TABLE D'APPOINT - GIGOGNE" => [200, 44], "TABLE DE REPAS" => [200, 201], "TABLE BASSE" => [200, 44], "RANGEMENT DE CUISINE" => [286, 190], "PORTANT ET CINTRE" => [269, 276], "BOITE ET HOUSSE" => [334, 134], "CHAUSSANT" => [269, 276], "ETAGERE" => [270, 169], "ETENDOIR ET PINCE" => [286, 291, 294], "BOITE DE RANGEMENT" => [334, 134, 351], "PANIER ET CORBEILLE" => [334, 134, 351]]
COEFF_CALCULE_WHOLE_SALE_PRODUCT  = 2.15
EXPORT_HEADER  = ['id' => 'ID', 'img' => 'Photo', 'sku' => 'SKU', 'name' => 'Nom', 'cat' => 'Catégorie', 'qty' => 'Qté', 'price' => 'Prix']
sameColors  = ["Argenté" => 23, "Beige/Marron" => 291, "Beu Foncé" => 25, "Multicouleur" => 254, "Dark" => 24, "Marron clair" => 59, "Fuchsia" => 590]

Properties

$container  : ContainerInterface
$header  : array<string|int, mixed>
$attributeService  : AttributeService
$entityManager  : EntityManagerInterface
$productRepository  : ProductRepository

Methods

__construct()  : mixed
export()  : StreamedResponse
Exporting sales
exportXls()  : mixed
Exporting as Xls
getCalculatedPrice()  : false|float
Get calculated price
getDimensions()  : false|array<string|int, string>
getMapCatgeory()  : array<string|int, mixed>|array<string|int, int>
getMappingData()  : array<string|int, mixed>
getRepo()  : ProductRepository
getShippingPrice()  : float|int
Get shipping price
mappingShippingPrice()  : float|int
Mapping cmp price
mappingShippingPriceHorsGabret()  : float|int
Mapping cmp price
save()  : Product
exportCsv()  : StreamedResponse
Exporting as csv

Constants

CMP_CATEGORIES

public mixed CMP_CATEGORIES = ['CHAISE FAUTEUIL DE TABLE' => [228], 'POUF ET COUSSIN DE SOL' => [228, 245], 'COFFRE ET BANC PLIABLE' => [228, 245], "TABLE D'APPOINT - GIGOGNE" => [200, 44], "TABLE DE REPAS" => [200, 201], "TABLE BASSE" => [200, 44], "RANGEMENT DE CUISINE" => [286, 190], "PORTANT ET CINTRE" => [269, 276], "BOITE ET HOUSSE" => [334, 134], "CHAUSSANT" => [269, 276], "ETAGERE" => [270, 169], "ETENDOIR ET PINCE" => [286, 291, 294], "BOITE DE RANGEMENT" => [334, 134, 351], "PANIER ET CORBEILLE" => [334, 134, 351]]

COEFF_CALCULE_WHOLE_SALE_PRODUCT

public mixed COEFF_CALCULE_WHOLE_SALE_PRODUCT = 2.15

EXPORT_HEADER

public mixed EXPORT_HEADER = ['id' => 'ID', 'img' => 'Photo', 'sku' => 'SKU', 'name' => 'Nom', 'cat' => 'Catégorie', 'qty' => 'Qté', 'price' => 'Prix']

sameColors

public mixed sameColors = ["Argenté" => 23, "Beige/Marron" => 291, "Beu Foncé" => 25, "Multicouleur" => 254, "Dark" => 24, "Marron clair" => 59, "Fuchsia" => 590]

Properties

Methods

export()

Exporting sales

public export(mixed $title, mixed $data, mixed $columns, mixed $format[, array<string|int, mixed> $customHeader = [] ]) : StreamedResponse
Parameters
$title : mixed
$data : mixed
$columns : mixed
$format : mixed
$customHeader : array<string|int, mixed> = []
Return values
StreamedResponse

exportXls()

Exporting as Xls

public exportXls(mixed $data, mixed $columns, mixed $title[, bool $toFile = false ]) : mixed
Parameters
$data : mixed
$columns : mixed
$title : mixed
$toFile : bool = false

getCalculatedPrice()

Get calculated price

public getCalculatedPrice(mixed $unitPrice, mixed $weightKg, mixed $horsGabaret[, int $by = 1 ]) : false|float
Parameters
$unitPrice : mixed
$weightKg : mixed
$horsGabaret : mixed
$by : int = 1
Return values
false|float

getDimensions()

public getDimensions(mixed $dim) : false|array<string|int, string>
Parameters
$dim : mixed
Return values
false|array<string|int, string>

getMapCatgeory()

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

getMappingData()

public getMappingData(mixed $product[, mixed $color = [] ]) : array<string|int, mixed>
Parameters
$product : mixed
$color : mixed = []
Return values
array<string|int, mixed>

getShippingPrice()

Get shipping price

public getShippingPrice(mixed $weight[, bool $horsGabaret = false ]) : float|int
Parameters
$weight : mixed
$horsGabaret : bool = false
Return values
float|int

mappingShippingPrice()

Mapping cmp price

public mappingShippingPrice(mixed $weight) : float|int
Parameters
$weight : mixed
Return values
float|int

mappingShippingPriceHorsGabret()

Mapping cmp price

public mappingShippingPriceHorsGabret(mixed $weight) : float|int
Parameters
$weight : mixed
Return values
float|int

exportCsv()

Exporting as csv

private exportCsv(mixed $data, mixed $columns, mixed $title) : StreamedResponse
Parameters
$data : mixed
$columns : mixed
$title : mixed
Return values
StreamedResponse

        
On this page

Search results