Fichier commandes_fonctions.php
Fonctions du plugin Commandes
Plugin
-
Commandes
Copyright
-
2014
Licence
-
GPL 3
Source
Liste des fonctions
array
|
string
commande_totalise_taxes(
null
|
float
$prix_ht
=
null
,
null
|
float
$prix_ttc
=
null
)
Paramètres
-
null | float $prix_ht = null
-
null | float $prix_ttc = null
Retour
-
array | string
Source
void
commandes_afficher_prix_detaille_abbr(
$prix_ttc
,
$quantite
,
$prix_unit_ht
,
$reduction
,
$taxe
)
Paramètres
-
$prix_ttc
-
$quantite
-
$prix_unit_ht
-
$reduction
-
$taxe
Source
string
commandes_afficher_quantite(
integer
|
float
$quantite
,
string
$objet
=
''
,
integer
$id_objet
)
Paramètres
-
integer | float $quantite
-
string $objet = ''
-
integer $id_objet
Retour
-
string
Source
string
commandes_afficher_quantite_descriptif(
integer
|
float
$quantite
,
string
$objet
=
''
,
integer
$id_objet
)
Paramètres
-
integer | float $quantite
-
string $objet = ''
-
integer $id_objet
Retour
-
string
Source
void
commandes_afficher_reduction_si(
$reduction
)
Paramètres
-
$reduction
Source
integer
|
float
commandes_arrondir_quantite(
integer
|
float
$quantite
,
string
$objet
=
''
,
integer
$id_objet
)
Paramètres
-
integer | float $quantite
-
string $objet = ''
-
integer $id_objet
Retour
-
integer | float
Source
string
commandes_hash(
integer
$id_commande
)
Paramètres
-
integer $id_commande
Retour
-
string
Source
Soit la commande est en session, soit on prend celle dans la db. Nb : il ne peut en théorie y avoir qu'une seule commande en cours par auteur, dans le cas improbable où il y en aurait plusieurs, on prend la plus récente.
integer
commandes_id_commande_encours_visiteur(
)
Retour
-
integer
Numéro de la commande ou 0 s'il n'y en a pas
Source
integer
|
boolean
commandes_id_premier_webmestre(
)
Retour
-
integer | boolean
identifiant du premier webmestre false sinon (improbable...)
Utilisé par
Source
array
|
string
commandes_lister_statuts(
boolean
|
string
$statut
=
false
)
Paramètres
-
boolean | string $statut = false
- vide ou false pour retourner un tableau
- nom d'un statut précis pour retourner sa chaîne de langue
Retour
-
array | string
- array: tableau associatif des statuts possibles et leurs chaînes de langue
- string: chaîne de langue d'un statut
Utilisé par
Filtre
-
commandes_lister_statuts
Source
void
critere_COMMANDES_encours_visiteur_dist(
string
$idb
,
object
&
$boucles
,
object
$crit
)
Paramètres
-
string $idb
-
object & $boucles
-
object $crit
Exemples
-
<BOUCLE_commande(COMMANDES) {encours_visiteur}>
Utilise
- commandes_calculer_critere_encours_visiteur()
Source
Critere
-
COMMANDES_encours_visiteur
string
filtre_generer_url_commande_facture_dist(
integer
$id_commande
)
Paramètres
-
integer $id_commande
Identifiant de la commande
Retour
-
string
Retourne l'URL d'une page contenant la facture, ou rien si on n'en veut pas
Source
Filtre
-
generer_url_commande_facture
Liste des erreurs
Gravité | Ligne | Description |
---|---|---|
Erreur | 157 |
|
Erreur | 194 |
|
Notice | 211 |
|