Created
September 24, 2021 07:19
-
-
Save MushuLeDragon/0120bd294be504a5c3821d0bd922b50a to your computer and use it in GitHub Desktop.
Calculate Prestashop prices
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Paiement | |
* | |
* Prix TTC = Prix HT + TVA | |
* Prix HT = Prix TTC / (1 + taux de TVA) | |
* | |
* total_paid = Prix TTC | |
* total_paid_tax_incl = Prix TTC | |
* total_paid_tax_excl = Prix HT | |
* total_paid_real = Prix TTC | |
* total_products = (total_paid - total_shipping) / (1 + TVA) (Prix des produits sans Frais de port) HT | |
* total_products_wt = total_paid - total_shipping (Prix des produits sans Frais de port) TTC | |
* total_shipping = Frais de port TTC | |
* total_shipping_tax_incl = Frais de port TTC | |
* total_shipping_tax_excl = Frais de port HT | |
* carrier_tax_rate = Montant de la taxe | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment