2024-12-03
This commit is contained in:
parent
8613e0698c
commit
e27f6eaf31
11 changed files with 1727 additions and 2060 deletions
|
|
@ -100,7 +100,10 @@ $total_panier = Number::format(floatval(WC()->cart->get_totals()["total"]), prec
|
|||
|
||||
foreach (WC()->cart->get_cart() as $cle_panier => $article_panier) {
|
||||
$panier[$cle_panier] = [
|
||||
// "attributs" => recupere_et_formate_attributs_produit($article_panier["data"]?->get_attributes()),
|
||||
"attributs" =>
|
||||
$article_panier["data"]?->get_type() == "variation"
|
||||
? recupere_et_formate_attributs_produit($article_panier["data"]?->get_attributes())
|
||||
: [],
|
||||
"cle" => $cle_panier,
|
||||
"id_produit" => $article_panier["product_id"],
|
||||
"id_variation" => $article_panier["variation_id"],
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ export const initialiseBoutonCalculLivraison = (): void => {
|
|||
.when(
|
||||
// TODO: Créer une fonction utilitaire
|
||||
p => pipe(dictValues(p), arrayFind(c => c === "The provided postcode is not valid")),
|
||||
// TODO: Créer une fonction utililtaire pour fixer le texte d'un message
|
||||
// TODO: Créer une fonction utilitaire pour fixer le texte d'un message
|
||||
(): void => {
|
||||
E.MESSAGE_ADRESSES.textContent = ERREUR_ADRESSE_MAUVAIS_CODE_POSTAL;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue