isteph26 Posted November 21, 2024 Share Posted November 21, 2024 Bonjour, j'ai activé dans le BO un minimum de commande qui est exprimé en HT , j'ai donc mis 20€ HT pour faire un 24€ TTC. Sur mon front office quand je n'atteins pas ce minimum , il m'affiche un message. Dans ce message les prix sont exprimés en HT ... ??? comment puis je mettre le message avec les prix TTC ? donc avoir : Un montant total de 24€ minimum est requis pour valider votre commande. Le montant actuel de votre commande est de 7,00€. actuellement j'ai cela : Merci de votre aide Link to comment Share on other sites More sharing options...
Eolia Posted November 21, 2024 Share Posted November 21, 2024 si version < 1.7 c'est facile, sinon... Link to comment Share on other sites More sharing options...
isteph26 Posted November 21, 2024 Author Share Posted November 21, 2024 Just now, Eolia said: si version < 1.7 c'est facile, sinon... Version 8.1 ... ;/ Link to comment Share on other sites More sharing options...
Eolia Posted November 21, 2024 Share Posted November 21, 2024 (edited) dans /controllers/front/ParentOrderController.php remplacer $this->errors[] = sprintf( Tools::displayError('A minimum purchase total of %1s (tax excl.) is required to validate your order, current purchase total is %2s (tax excl.).'), Tools::displayPrice($minimal_purchase, $currency), Tools::displayPrice($this->context->cart->getOrderTotal(false, Cart::ONLY_PRODUCTS), $currency) ); par $this->errors[] = sprintf( Tools::displayError('A minimum purchase total of %1s is required to validate your order, current purchase total is %2s.'), Tools::displayPrice($minimal_purchase * (1 + $this->context->cart->getAverageProductsTaxRate()), $currency), Tools::displayPrice($this->context->cart->getOrderTotal(true, Cart::ONLY_PRODUCTS), $currency) ); Edited November 21, 2024 by Eolia (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted November 21, 2024 Share Posted November 21, 2024 Ben, il faut trouver où ils ont planqué le code et faire un override. Link to comment Share on other sites More sharing options...
isteph26 Posted November 21, 2024 Author Share Posted November 21, 2024 5 minutes ago, Eolia said: Ben, il faut trouver où ils ont planqué le code et faire un override. je fouille aussi mais sans succès pour l'instant Link to comment Share on other sites More sharing options...
Eolia Posted November 21, 2024 Share Posted November 21, 2024 https://github.com/PrestaShop/PrestaShop/commit/678a8361106dfb5a91cb0d5e4723ec4348913af2 Link to comment Share on other sites More sharing options...
isteph26 Posted November 22, 2024 Author Share Posted November 22, 2024 10 hours ago, Eolia said: https://github.com/PrestaShop/PrestaShop/commit/678a8361106dfb5a91cb0d5e4723ec4348913af2 mon fichier CartPresenter.php présent dans src/Adapter/Cart/CartPresenter.php est quasi vide. j'ai copié collé tout le code qui est fourni à la place mais ca ne change rien. j'ai un theme d'installer peut etre que ce n'est pas le bon fichier du coup en attendant de trouver mieux j'ai modfier la traduction, ca fait le taff mais pas terrible Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now