# 6.1- Les constantes cachées qui peuvent vous être utiles

<span style="color: rgb(0,0,0);">Ici il s'agit de **<span style="color: rgb(24,139,175);">constantes dite cachées</span>**, car elles ne sont pas une option intégrée à la configuration du module.</span>

<span style="color: rgb(0,0,0);">Il s'agit principalement de paramètres réservés pour les développeurs et paramétrage avancé uniquement.  
</span>

<span style="color: rgb(0,0,0);">Si l'une d’elles vous convient dans votre utilisation du module, vous pouvez aller dans **Accueil** &gt; **C**onfiguration &gt; **D**ivers.</span>

<span style="color: rgb(0,0,0);"><span style="color: rgb(24,139,175);">**Indiquez** </span>le nom de la constante et mettez sa valeur 1 pour l'activer 0 pour la désactiver, vous pouvez mettre un commentaire (optionnel) puis cliquez sur <span style="color: rgb(24,139,175);">**Ajouter**</span>.</span>

<span style="color: rgb(0,0,0);">Pour **<span style="color: rgb(24,139,175);">modifier une valeur de la constante,</span>** il faut suffit de changer la valeur et de cliquer en bas à droite en bas du tableau sur **<span style="color: rgb(24,139,175);">modifier </span>**(la case de droite se coche automatiquement).</span>

<span style="color: rgb(0,0,0);">Pour**<span style="color: rgb(24,139,175);"> supprimer une constante</span>**, coché la case de droite et cliquer à droite en bas du tableau sur <span style="color: rgb(24,139,175);">**Supprimer**</span>.</span>

<table id="bkmrk-les-constantes-cach%C3%A9" style="border-collapse: collapse; width: 100%; height: 1090.8px;"><colgroup><col style="width: 50.0397%;"></col><col style="width: 8.33995%;"></col><col style="width: 41.6998%;"></col></colgroup><tbody><tr style="height: 46.6px;"><td class="align-center" colspan="3" style="background-color: rgb(236, 240, 241); vertical-align: middle; height: 46.6px;"><span style="color: rgb(0,0,0);">**Les constantes cachées**</span>

<span style="color: rgb(0,0,0);">**Liées à l'utilisation du module en général**</span>

</td></tr><tr style="height: 46.6px;"><td class="align-center" style="background-color: rgb(236, 240, 241); vertical-align: middle; height: 46.6px;"><span style="color: rgb(0,0,0);">**Nom de la constante**</span>  
</td><td style="background-color: rgb(236, 240, 241); vertical-align: middle; height: 46.6px;"><span style="color: rgb(0,0,0);">**Valeur à noter** </span></td><td class="align-center" style="background-color: rgb(236, 240, 241); vertical-align: middle; height: 46.6px;"><span style="color: rgb(0,0,0);">**Ce que ça fait**</span>  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">PRICES\_KEEP\_REF\_FOURN</span>  
</td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">1 ou 0  
</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">Garde la réf fournisseur</span></td></tr><tr style="height: 46.6px;"><td style="height: 46.6px;"><span style="color: rgb(0,0,0);">PRICES\_DONT\_UPDATE\_STATUS</span>  
</td><td style="height: 46.6px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 46.6px;"><span style="color: rgb(0,0,0);">Permet de ne pas toucher au statut (en vente, en achat) des produits mis à jour. V2024-02-13</span></td></tr><tr style="height: 80.2px;"><td style="height: 80.2px;"><span style="color: rgb(0,0,0);">PRICES\_VALIDATE\_EMPTY\_BUYPRICE</span>  
</td><td style="height: 80.2px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 80.2px;"><span style="color: rgb(0,0,0);">Valider le prix d'achat vide mais un prix de vente non nul (le prix de vente est à importer explicitement dans le champ "prix de vente non remisé").</span>  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">PRICES\_USE\_PREFERRED\_SUPPLIER  
</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">Utiliser un fournisseur préféré</span></td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">PRICES\_FORCE\_EMPTY\_PRICE  
</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">Permet d'importer un prix à 0</span>  
</td></tr><tr style="height: 147.4px;"><td style="height: 147.4px;"><span style="color: rgb(0,0,0);">PRICES\_CATALOG\_INIT\_DONE  
</span></td><td style="height: 147.4px;"><span style="color: rgb(0,0,0);">1 ou 0</span>  
</td><td style="height: 147.4px;"><span style="color: rgb(0,0,0);">L'initialisation ne peut se faire qu'une fois. À la suite de quoi, cette constante est à 1 dans la base de données. Passez la à 0 si vous devez refaire la procédure d'initialisation. Pensez à la remettre à 1 ensuite (ou la supprimer de la liste)</span>

<span style="color: rgb(0,0,0);">**Attention** : la réinitialisation et l'usage de cette variable doit se faire avec le contrôle du contenu des tables de données propres au module.</span>

</td></tr><tr style="height: 97px;"><td style="height: 97px;"><span style="color: rgb(0,0,0);">PRICES\_EXTRAFIELDS\_USED  
</span></td><td style="height: 97px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 97px;"><span style="color: rgb(0,0,0);">Lister ici les extrafields que vous souhaitez pouvoir mettre à jour avec vos imports de catalogue en indiquant le code de l'extrafield. Séparez plusieurs extrafields par une virgule (sans espace après la virgule).</span></td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">PRICES\_UPDATE\_COSTPRICE  
</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">Mettre à jour le prix de revient</span>  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">PRICES\_FORCE\_MIN\_RESELL\_PRICE  
</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">Force le prix minimum de revente</span>  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">PRICES\_UPDATE\_MULTILANGS  
</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 29.8px;"><span style="color: rgb(0,0,0);">Met à jour le multilangs</span>  
</td></tr><tr style="height: 130.6px;"><td style="height: 130.6px;"><span style="color: rgb(0,0,0);"><span style="font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; word-spacing: 0px; white-space: pre-wrap; background-color: rgb(255,255,255); display: inline; float: none;">PRICES\_ONE\_CATEGORY\_PER\_PRODUCT</span></span></td><td style="height: 130.6px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 130.6px;"><span style="color: rgb(0,0,0);">Implique qu'un produit ne sera quand dans une seule catégorie.   
Le produit sera ajouté à la catégorie spécifiée à l'import. S'il était déjà dans d'autres catégories, il sera supprimé de ses autres catégories (sauf si utilisation de la constante PRICES\_SPECIAL\_CATEGORIES).</span>

</td></tr><tr style="height: 80.2px;"><td style="height: 80.2px;"><span style="color: rgb(0,0,0);">PRICES\_SPECIAL\_CATEGORIES  
</span></td><td style="height: 80.2px;"><span style="color: rgb(0,0,0);">..,..,...</span></td><td style="height: 80.2px;"><span style="color: rgb(0,0,0);">Liste, séparée par des virgules, des catégories dont l'association avec les produits ne sera pas supprimée si <span style="font-family: 'Open Sans', sans-serif; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; word-spacing: 0px; white-space: pre-wrap; background-color: rgb(255,255,255); display: inline; float: none;">PRICES\_ONE\_CATEGORY\_PER\_PRODUCT</span> est activé</span></td></tr><tr style="height: 113.8px;"><td style="height: 113.8px;"><span style="color: rgb(0,0,0); background-color: rgb(0,0,0);"><span style="background-color: rgb(255,255,255);">PRICES\_INIT\_MULTIPRICES</span>  
</span></td><td style="height: 113.8px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 113.8px;"><span style="color: rgb(0,0,0);">**Attention** : constante temporaire à 0 lors de l'installation du module : elle passe à 1 une fois l'initialisation de la partie multi-prix réalisée.</span>

<span style="color: rgb(0,0,0);">L'usage de cette constante doit se faire avec le contrôle du contenu des tables de données propres au module.</span>

</td></tr><tr style="height: 29.8px;"><td class="align-center" colspan="3" style="background-color: rgb(236, 240, 241); vertical-align: middle; height: 29.8px;"><span class="align-center" style="color: rgb(0,0,0);">**Lié à l'utilisation de Pricebox**  
</span></td></tr><tr style="height: 63.4px;"><td style="height: 63.4px;"><span style="color: rgb(0,0,0);">PRICES\_PRICEBOX\_QUICKSEARCH\_ON\_FIELDS  
</span></td><td style="height: 63.4px;"><span style="color: rgb(0,0,0);">1 ou 0</span></td><td style="height: 63.4px;"><span style="color: rgb(0,0,0);">Recherche rapide sur les champs (impacte très fortement les performances si le nombre de produits est important)</span></td></tr></tbody></table>