corvée(fmt) formate
This commit is contained in:
parent
c21e32ecbd
commit
4e6f3911a6
7 changed files with 10 additions and 13 deletions
|
|
@ -96,7 +96,7 @@ $methode_livraison = ['nom' => $commande->get_shipping_method(), 'cout' => $comm
|
|||
|
||||
// Le nom de la méthode de livraison ne peut être une chaîne vide.
|
||||
if (empty($methode_livraison['nom'])) {
|
||||
$methode_livraison['nom'] = 'Free';
|
||||
$methode_livraison['nom'] = 'Free';
|
||||
}
|
||||
|
||||
// Sélectionne la clé API Stripe
|
||||
|
|
|
|||
|
|
@ -45,7 +45,9 @@ $variations_produit = pipe(
|
|||
'' !== $variation->get_attribute('pa_side') => $variation->get_attribute('pa_side'),
|
||||
'' !== $variation->get_attribute('pa_stone') => $variation->get_attribute('pa_stone'),
|
||||
'' !== $variation->get_attribute('pa_size') => $variation->get_attribute('pa_size'),
|
||||
'' !== $variation->get_attribute('pa_giftcard-amount') => $variation->get_attribute('pa_giftcard-amount'),
|
||||
'' !== $variation->get_attribute('pa_giftcard-amount') => $variation->get_attribute(
|
||||
'pa_giftcard-amount',
|
||||
),
|
||||
default => '',
|
||||
},
|
||||
'prix' => $variation->get_price(),
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ function recupere_informations_produit_shop($produit) {
|
|||
if ($produit->get_sku() === 'GIFTcard') {
|
||||
$prix_maximal = '';
|
||||
}
|
||||
|
||||
|
||||
return [
|
||||
// Identifiant du Produit
|
||||
'id' => $produit->get_id(),
|
||||
|
|
|
|||
|
|
@ -309,7 +309,7 @@ export const initOrderCreationButton = (): void => {
|
|||
|
||||
// Retire toute méthode de livraison invalide.
|
||||
formArgs.shipping_lines = formArgs.shipping_lines.filter(line => line.method_id !== undefined);
|
||||
|
||||
|
||||
// Réalise la requête et traite sa réponse
|
||||
void EitherAsync
|
||||
.liftEither(safeSchemaParse(formArgs, WCV3OrdersArgsSchema))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue