Thrillou Posted 11 hours ago Share Posted 11 hours ago Bonjour, sur Prestashop 8.2.0 j'ai un bug lorsque j'ajoute un numéro de commande dans la commande ou lorsque je change le transporteur. j'ai ce message : Quote PrestaShop\PrestaShop\Adapter\Product\PriceCalculator::getOrderPrice(): Argument #7 ($customizationId) must be of type int, null given, called in /home/moki4155/public_html/src/Core/Cart/CartRow.php on line 366 [TypeError 0] Je comprends qu'un NULL est reçu et que ça ne lui convient pas...mais je ne sais pas comment corriger :/ voici la partie du php en question : // The $null variable below is not used, // but it is necessary to pass it to getProductPrice because // it expects a reference. $specificPriceOutput = null; $productPrices = [ 'price_tax_included' => [ 'withTaxes' => true, ], 'price_tax_excluded' => [ 'withTaxes' => false, ], ]; foreach ($productPrices as $productPrice => $computationParameters) { $productPrices[$productPrice]['value'] = null; if (null !== $this->orderId) { $productPrices[$productPrice]['value'] = $this->priceCalculator->getOrderPrice( $this->orderId, (int) $productId, (int) $rowData['id_product_attribute'], $computationParameters['withTaxes'], true, $this->useEcotax, $rowData['id_customization'] ); } Si vous avez une idée de comment corriger ça, je suis preneur. Si besoin d'autres éléments que j'aurais oubliés, n'hésitez pas Merci Yann Link to comment Share on other sites More sharing options...
Eolia Posted 10 hours ago Share Posted 10 hours ago il manque un (int) devant $rowData['id_customization'] Link to comment Share on other sites More sharing options...
Thrillou Posted 9 hours ago Author Share Posted 9 hours ago En effet, j'ai essayé, ça a l'air de fonctionner... mais je remarque que j'ai une autre erreur beaucoup moins explicite lorsque je bascule la commande avec Mondial Relay toujours dans le même onglet dans la commande Cannot instantiate abstract class Module [Error 0] Je cherche une erreur lié au module de MR alors... 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