SyncProductsCommand
extends ContainerAwareCommand
in package
Class SyncOrdersCommand
Table of Contents
Properties
- $categoryMapping : mixed
- $output : OutputInterface
- $aliExpressFeedService : AliExpressFeedService|null
- $aliExpressService : AliExpressService
- $container : ContainerInterface
- $entityManager : EntityManagerInterface|null
- $logService : LogServiceInterface
Methods
- __construct() : mixed
- SyncOrdersCommand constructor.
- configure() : mixed
- Configure command
- execute() : int|void|null
- checkFeedJobs() : void
- Check Aliexpress feed jobs
- getPattern() : mixed
- Get product pattern
- isStillSynchronizing() : bool
- setProductsAsOffline() : mixed
- Set inactive products as offline in aliexpress
- setProductsAsOnline() : mixed
- Set Products as active
Properties
$categoryMapping
protected
mixed
$categoryMapping
= [
//Chaise
// 10 => 37013006,//Chaise
22 => 37034004,
//Chaise en inox
23 => 37033002,
//Chaise matelassée
33 => 37034004,
//Chaise empilable
37 => 37034004,
//Lot de chaises
75 => 37034004,
//Chaise de bar
94 => 37034004,
//Chaise médaillon
//Canapé
32 => 37034002,
//Canapé fixe 2 places
29 => 37034002,
//Canapé fixe 3 places
31 => 37034002,
//Canapé d'angle
28 => 37034002,
//Canapé Chesterfield
30 => 37034002,
//Canapé Chesterfield
117 => 37034002,
//Canapé d'angle convertible
16 => 37034002,
//Canapé en velours
//Tables
51 => 37033004,
//Console extensible
50 => 37033004,
//Table à rallonges
53 => 37034002,
//Table à rallonges
52 => 37034002,
//Table ronde / ovale
44 => 37034007,
//Tables basses
46 => 37034007,
//Table basse avec rangement
98 => 37033003,
//Ensemble table et chaises
120 => 37034002,
//Ensemble table et chaises
//Tables basses
19 => 37034002,
//Bout de canapé
48 => 37034002,
//Table basse rectangulaire / carrée
127 => 37034002,
//Tables basse ronde / ovale
55 => 37034002,
//Table basse relevable
121 => 37034002,
//Table basse personnalisable
108 => 37034002,
//Banc et banquette
103 => 37034002,
//Romantique Chic
102 => 37034002,
//Tendance Baroque
//Lit
42 => 37032004,
//Tête de lit
38 => 37032004,
//Lit simple
39 => 37032004,
//Lit double
41 => 37032004,
//Lit avec rangement
122 => 37032004,
//Lit enfant
82 => 37032004,
//Matelas
//Poufs
157 => 37034010,
158 => 37034010,
115 => 37034010,
//Tabourets et poufs scandinaves
//Fauteuil
91 => 37034002,
//Fauteuil scandinave
152 => 37034002,
//Fauteuil en velours
153 => 37034002,
//Fauteuil et repose-pieds
154 => 37034002,
//Fauteuil et repose-pieds
150 => 37034002,
//Fauteuil classique
17 => 37034002,
//Fauteuil
//Meubles de rangement
63 => 37032005,
//Commodes
64 => 37034002,
//Meuble TV
65 => 37032006,
//Tables de chevet
124 => 37032006,
//Consoles
70 => 37032006,
//Bureaux
126 => 37032006,
//Buffets
66 => 37032006,
//Coffre de rangement
//Deco
118 => 100003324,
//Couverts
106 => 100003324,
//Arts de la table
//others
101 => 37034002,
]
$output
protected
OutputInterface
$output
$aliExpressFeedService
private
AliExpressFeedService|null
$aliExpressFeedService
$aliExpressService
private
AliExpressService
$aliExpressService
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface|null
$entityManager
$logService
private
LogServiceInterface
$logService
Methods
__construct()
SyncOrdersCommand constructor.
public
__construct([null $name = null ][, AliExpressService|null $aliExpressService = null ][, AliExpressFeedService|null $aliExpressFeedService = null ][, EntityManagerInterface|null $entityManager = null ]) : mixed
Parameters
- $name : null = null
- $aliExpressService : AliExpressService|null = null
- $aliExpressFeedService : AliExpressFeedService|null = null
- $entityManager : EntityManagerInterface|null = null
configure()
Configure command
protected
configure() : mixed
execute()
protected
execute(InputInterface $input, OutputInterface $output) : int|void|null
Parameters
- $input : InputInterface
- $output : OutputInterface
Tags
Return values
int|void|nullcheckFeedJobs()
Check Aliexpress feed jobs
private
checkFeedJobs() : void
getPattern()
Get product pattern
private
getPattern(mixed $productInfo) : mixed
Parameters
- $productInfo : mixed
isStillSynchronizing()
private
isStillSynchronizing() : bool
Return values
boolsetProductsAsOffline()
Set inactive products as offline in aliexpress
private
setProductsAsOffline() : mixed
setProductsAsOnline()
Set Products as active
private
setProductsAsOnline() : mixed