WooFrance Dépannage et support WordPress WooCommerce Forums Forum de Support WooCommerce WooCommerce – Problème addition de produit ht et TTC

3 sujets de 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #407305
    gregoirecadeau1976
    Participant
    Points: 12 pts

    Bonjour

    J’ai un souci de paramétrage avec woocommerce.

    Quand un client achète un produit à 16€ TTC avec un ht à 13,33€ dont 2,67€ de TVA et qu’il en commande 2 produits cela donne un résultat de 31,99€ TTC et non pas 32€ TTC.

    L’addition des 2 produits se fait sur le HT et non pas sur le TTC. Pouvez-vous m’indiquer comment résoudre ce problème? Le paramétrage du logiciel est: Non, je saisirai les tarifs HT.

    Options de TVA

    <label style= »cursor: pointer; vertical-align: middle; position: relative; display: block; » for= »woocommerce_prices_include_tax »>Tarifs saisis avec la TVA</label> <fieldset style= »padding: 0px; margin: 0px; border: 0px initial initial; »>

    • <label style= »cursor: pointer; vertical-align: middle; display: inline-block; margin: 0.35em 0px 0.5em !important; line-height: 1.4; »><input class= » » style= »font-family: inherit; font-size: 14px; font-weight: inherit; margin-top: -4px; margin-right: 4px; margin-left: 0px; border-radius: 50%; background: #ffffff; color: #50575e; clear: none; cursor: pointer; line-height: 0.714286; height: 1rem; outline: 0px; text-align: center; vertical-align: middle; width: 1rem; min-width: 1rem; appearance: none; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px inset; transition: border-color 0.05s ease-in-out 0s; float: none; padding: 0px !important; border: 1px solid #8c8f94; » name= »woocommerce_prices_include_tax » type= »radio » value= »yes » /> Oui, je saisirai les tarifs TTC</label>
    • <label style= »cursor: pointer; vertical-align: middle; display: inline-block; margin: 0.35em 0px 0.5em !important; line-height: 1.4; »><input class= » » style= »font-family: inherit; font-size: 14px; font-weight: inherit; margin-top: -4px; margin-right: 4px; margin-left: 0px; border-radius: 50%; background: #ffffff; color: #50575e; clear: none; cursor: pointer; line-height: 0.714286; height: 1rem; outline: 0px; text-align: center; vertical-align: middle; width: 1rem; min-width: 1rem; appearance: none; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px inset; transition: border-color 0.05s ease-in-out 0s; float: none; padding: 0px !important; border: 1px solid #8c8f94; » checked= »checked » name= »woocommerce_prices_include_tax » type= »radio » value= »no » /> Non, je saisirai les tarifs HT</label>

    </fieldset>

    <label style= »cursor: pointer; vertical-align: middle; position: relative; display: block; » for= »woocommerce_tax_based_on »>Calcul de la TVA basé sur</label> <select id= »woocommerce_tax_based_on » class= »wc-enhanced-select select2-hidden-accessible enhanced » style= »font-family: inherit; font-size: 14px; font-weight: inherit; margin: 0px; box-shadow: none; border-radius: 3px; border-color: #8c8f94; background: right 5px top 55% / 16px 16px no-repeat #ffffff; color: #2c3338; padding: 0px 24px 0px 8px; width: 400px; line-height: 32px; min-height: 30px; max-width: 25rem; appearance: none; cursor: pointer; vertical-align: top; border-width: 0px !important; border-style: initial !important; clip: rect(0px, 0px, 0px, 0px) !important; height: 1px !important; overflow: hidden !important; position: absolute !important; » tabindex= »-1″ name= »woocommerce_tax_based_on » aria-hidden= »true »>
    <option selected= »selected » value= »shipping »>Adresse de livraison du client</option>
    <option value= »billing »>Adresse de facturation du client</option>
    <option value= »base »>Adresse de base de la boutique</option>
    </select>Adresse de livraison du client
    <label style= »cursor: pointer; vertical-align: middle; position: relative; display: block; » for= »woocommerce_shipping_tax_class »>Classe de TVA d’expédition</label> <select id= »woocommerce_shipping_tax_class » class= »wc-enhanced-select select2-hidden-accessible enhanced » style= »font-family: inherit; font-size: 14px; font-weight: inherit; margin: 0px; box-shadow: none; border-radius: 3px; border-color: #8c8f94; background: right 5px top 55% / 16px 16px no-repeat #ffffff; color: #2c3338; padding: 0px 24px 0px 8px; width: 400px; line-height: 32px; min-height: 30px; max-width: 25rem; appearance: none; cursor: pointer; vertical-align: top; min-width: 150px; border-width: 0px !important; border-style: initial !important; clip: rect(0px, 0px, 0px, 0px) !important; height: 1px !important; overflow: hidden !important; position: absolute !important; » tabindex= »-1″ name= »woocommerce_shipping_tax_class » aria-hidden= »true »>
    <option selected= »selected » value= »inherit »>Classe de TVA d’expédition basée sur les articles panier</option>
    <option value= » »>Standard</option>
    <option value= »taux-reduit »>Taux réduit</option>
    <option value= »taux-zero »>Taux zéro</option>
    </select>Classe de TVA d’expédition basée sur les articles panier
    Arrondi <fieldset style= »padding: 0px; margin: 0px; border: 0px initial initial; »><legend class= »screen-reader-text » style= »border-width: 0px; border-style: initial; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: absolute; width: 1px; overflow-wrap: normal !important; »>Arrondi</legend><label style= »cursor: pointer; vertical-align: middle; display: inline-block; margin: 0.35em 0px 0.5em !important; line-height: 1.4; » for= »woocommerce_tax_round_at_subtotal »><input id= »woocommerce_tax_round_at_subtotal » class= » » style= »font-family: inherit; font-size: 14px; font-weight: inherit; margin: -0.25rem 0.25rem 0px 0px; border-radius: 4px; background: #ffffff; color: #50575e; clear: none; cursor: pointer; line-height: 0; height: 1rem; outline: 0px; text-align: center; vertical-align: middle; width: 1rem; min-width: 1rem; appearance: none; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 2px inset; transition: border-color 0.05s ease-in-out 0s; padding: 0px !important; border: 1px solid #8c8f94; » checked= »checked » name= »woocommerce_tax_round_at_subtotal » type= »checkbox » value= »1″ /> Arrondir la TVA au niveau du sous-total, plutôt que pour chaque ligne</label></fieldset>
    <label style= »cursor: pointer; vertical-align: middle; position: relative; display: block; » for= »woocommerce_tax_classes »>Classes additionnelles des TVA</label> <textarea id= »woocommerce_tax_classes » class= » » style= »box-sizing: border-box; font-family: inherit; font-size: 14px; font-weight: inherit; overflow: auto; padding: 0px 8px; line-height: 1.42857; resize: vertical; box-shadow: transparent 0px 0px 0px; border-radius: 4px; border-color: #8c8f94; background-color: #ffffff; color: #2c3338; width: 400px; margin: 0px; vertical-align: top; height: 65px; » name= »woocommerce_tax_classes » placeholder= » »></textarea>
    <label style= »cursor: pointer; vertical-align: middle; position: relative; display: block; » for= »woocommerce_tax_display_shop »>Affichage des tarifs dans la boutique</label> <select id= »woocommerce_tax_display_shop » class= »wc-enhanced-select select2-hidden-accessible enhanced » style= »font-family: inherit; font-size: 14px; font-weight: inherit; margin: 0px; box-shadow: none; border-radius: 3px; border-color: #8c8f94; background: right 5px top 55% / 16px 16px no-repeat #ffffff; color: #2c3338; padding: 0px 24px 0px 8px; width: 400px; line-height: 32px; min-height: 30px; max-width: 25rem; appearance: none; cursor: pointer; vertical-align: top; border-width: 0px !important; border-style: initial !important; clip: rect(0px, 0px, 0px, 0px) !important; height: 1px !important; overflow: hidden !important; position: absolute !important; » tabindex= »-1″ name= »woocommerce_tax_display_shop » aria-hidden= »true »>
    <option selected= »selected » value= »incl »>TTC</option>
    <option value= »excl »>HT</option>
    </select>TTC
    <label style= »cursor: pointer; vertical-align: middle; position: relative; display: block; » for= »woocommerce_tax_display_cart »>Affichage des tarifs sur le panier et la page commande</label> <select id= »woocommerce_tax_display_cart » class= »wc-enhanced-select select2-hidden-accessible enhanced » style= »font-family: inherit; font-size: 14px; font-weight: inherit; margin: 0px; box-shadow: none; border-radius: 3px; border-color: #8c8f94; background: right 5px top 55% / 16px 16px no-repeat #ffffff; color: #2c3338; padding: 0px 24px 0px 8px; width: 400px; line-height: 32px; min-height: 30px; max-width: 25rem; appearance: none; cursor: pointer; vertical-align: top; border-width: 0px !important; border-style: initial !important; clip: rect(0px, 0px, 0px, 0px) !important; height: 1px !important; overflow: hidden !important; position: absolute !important; » tabindex= »-1″ name= »woocommerce_tax_display_cart » aria-hidden= »true »>
    <option selected= »selected » value= »incl »>TTC</option>
    <option value= »excl »>HT</option>
    </select>TTC
    <label style= »cursor: pointer; vertical-align: middle; position: relative; display: block; » for= »woocommerce_price_display_suffix »>Suffixe d’affichage du prix</label> <input id= »woocommerce_price_display_suffix » class= » » style= »box-sizing: border-box; font-family: inherit; font-size: 14px; font-weight: inherit; margin: 0px; box-shadow: transparent 0px 0px 0px; border-radius: 4px; background-color: #ffffff; color: #2c3338; padding: 0px 8px; line-height: 2; min-height: 30px; height: auto; width: 400px; vertical-align: top; border: 1px solid #8c8f94; » name= »woocommerce_price_display_suffix » type= »text » value= » » placeholder= »ND » />
    <label style= »cursor: pointer; vertical-align: middle; position: relative; display: block; » for= »woocommerce_tax_total_display »>Affichage des totaux de TVA</label> <select id= »woocommerce_tax_total_display » class= »wc-enhanced-select select2-hidden-accessible enhanced » style= »font-family: inherit; font-size: 14px; font-weight: inherit; margin: 0px; box-shadow: none; border-radius: 3px; border-color: #8c8f94; background: right 5px top 55% / 16px 16px no-repeat #ffffff; color: #2c3338; padding: 0px 24px 0px 8px; width: 400px; line-height: 32px; min-height: 30px; max-width: 25rem; appearance: none; cursor: pointer; vertical-align: top; border-width: 0px !important; border-style: initial !important; clip: rect(0px, 0px, 0px, 0px) !important; height: 1px !important; overflow: hidden !important; position: absolute !important; » tabindex= »-1″ name= »woocommerce_tax_total_display » aria-hidden= »true »>
    <option value= »single »>Comme un total unique</option>
    <option selected= »selected » value= »itemized »>Détaillé</option>
    </select>Détaillé

    • Ce sujet a été modifié le il y a 2 années et 3 mois par gregoirecadeau1976.
    • Ce sujet a été modifié le il y a 1 année et 7 mois par WB2.
    depanagewp
    #407562
    Guy
    Participant
    Points: 5,497 pts
    ModérateurCertifiéFreelance
    Membre 2 étoiles

    Bonjour,

    Problème d’arrondi. Dans ta fiche produit indique les prix avec au moins 4 décimales, dans ce cas ci 13,3333 HT, ça devrait résoudre le problème.

     

     

    Content(e) de mon aide ? Vous pouvez m'offrir un café ! 🙂

    Avant d'appeler à l'aide: Dépannage Woocommerce

    Vous manquez de trafic ? Payez le prix d'un seul backlink et obtenez-en beaucoup plus !

    depanagewp
    #407803
    gregoirecadeau1976
    Participant
    Points: 12 pts

    Merci beaucoup Guy,

    Effectivement ca fonctionne!

    cdt

    Grégoire

    depanagewp
3 sujets de 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.