paincuit Posted December 1, 2016 Share Posted December 1, 2016 Bonjour depuis hier sans aucune manipulation de ma part à part activer le module Dymo Label printer . Je me retrouve de l'impossibilité de regarder les paniers abandonnés par les clients. Pouvez-vous m'aider à réparer le bug ? [PrestaShopException]Invalid address #24at line 401 in file classes/Address.php 396. // if an id_address has been specified retrieve the address397. if ($id_address) {398. $address = new Address((int)$id_address);399.400. if (!Validate::isLoadedObject($address)) {401. throw new PrestaShopException('Invalid address #'.(int)$id_address);402. }403. } elseif ($with_geoloc && isset($context->customer->geoloc_id_country)) {404. $address = new Address();405. $address->id_country = (int)$context->customer->geoloc_id_country;406. $address->id_state = (int)$context->customer->id_state; AddressCore::initialize - [line 197 - classes/tax/Tax.php] - [1 Arguments]192. * @param id_address193. * @return float $tax_rate194. */195. public static function getProductEcotaxRate($id_address = null)196. {197. $address = Address::initialize($id_address);198.199. $tax_manager = TaxManagerFactory::getManager($address, (int)Configuration::get('PS_ECOTAX_TAX_RULES_GROUP_ID'));200. $tax_calculator = $tax_manager->getTaxCalculator();201.202. return $tax_calculator->getTotalRate(); TaxCore::getProductEcotaxRate - [line 610 - classes/Cart.php] - [1 Arguments]605. $this->_products = array();606. if (empty($result)) {607. return array();608. }609.610. $ecotax_rate = (float)Tax::getProductEcotaxRate($this->{Configuration::get('PS_TAX_ADDRESS_TYPE')});611. $apply_eco_tax = Product::$_taxCalculationMethod == PS_TAX_INC && (int)Configuration::get('PS_TAX');612. $cart_shop_context = Context::getContext()->cloneContext();613.614. foreach ($result as &$row) {615. if (isset($row['ecotax_attr']) && $row['ecotax_attr'] > 0) { CartCore->getProducts - [line 3324 - classes/Cart.php]3319. if (!ProductDownload::isFeatureActive()) {3320. return false;3321. }3322.3323. if (!isset(self::$_isVirtualCart[$this->id])) {3324. $products = $this->getProducts();3325. if (!count($products)) {3326. return false;3327. }3328.3329. $is_virtual = 1; CartCore->isVirtualCart - [line 1464 - classes/Cart.php]1459. if ($type == Cart::ONLY_DISCOUNTS && !CartRule::isFeatureActive()) {1460. return 0;1461. }1462.1463. // no shipping cost if is a cart with only virtuals products1464. $virtual = $this->isVirtualCart();1465. if ($virtual && $type == Cart::ONLY_SHIPPING) {1466. return 0;1467. }1468.1469. if ($virtual && $type == Cart::BOTH) { CartCore->getOrderTotal - [line 1392 - classes/Cart.php] - [2 Arguments]1387. if (!Validate::isLoadedObject($cart)) {1388. die(Tools::displayError());1389. }1390.1391. $with_taxes = $use_tax_display ? $cart->_taxCalculationMethod != PS_TAX_EXC : true;1392. return Tools::displayPrice($cart->getOrderTotal($with_taxes, $type), Currency::getCurrencyInstance((int)$cart->id_currency), false);1393. }1394.1395.1396. public static function getOrderTotalUsingTaxCalculationMethod($id_cart)1397. { CartCore::getTotalCart - [line 854 - controllers/admin/AdminCartsController.php] - [3 Arguments]849. {850. $context = Context::getContext();851. $context->cart = new Cart($id_cart);852. $context->currency = new Currency((int)$context->cart->id_currency);853. $context->customer = new Customer((int)$context->cart->id_customer);854. return Cart::getTotalCart($id_cart, true, Cart::BOTH_WITHOUT_SHIPPING);855. }856.857. public static function replaceZeroByShopName($echo, $tr)858. {859. return ($echo == '0' ? Carrier::getCarrierNameFromShopName() : $echo); AdminCartsControllerCore->getOrderTotalUsingTaxCalculationMethod - [line - ] - [2 Arguments] Argument [0]96Argument [1]Array([id_cart] => 96[date_add] => 2016-11-28 13:08:12[customer] => P. Pol[total] => 96[carrier] =>[status] => Panier abandonné[badge_success] => 0[badge_danger] => 1[id_guest] => 0) call_user_func_array - [line 321 - classes/helper/HelperList.php] - [2 Arguments]Argument [0] Link to comment Share on other sites More sharing options...
Eolia Posted December 1, 2016 Share Posted December 1, 2016 Avez-vous contacté l'auteur du module ? Link to comment Share on other sites More sharing options...
paincuit Posted December 1, 2016 Author Share Posted December 1, 2016 (edited) Non, car j'ai travaillé hier toute la journée avec et il n'y avait pas de problème... J'ai par sécurité désactivé mais le problème persiste ... Il y a-t-il un moyen de réparer les fichiers original ? ou simplement les ré uploader... C'est juste ce matin en allant regarder les commandes, je me suis dit tiens je vais relancer les panier vides... et là Une belle page avec des erreurs :s Edited December 1, 2016 by paincuit (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted December 1, 2016 Share Posted December 1, 2016 Apparemment le client P. Pol n'a pas d'id address valide, son adresse aurait été supprimée ? Link to comment Share on other sites More sharing options...
paincuit Posted December 1, 2016 Author Share Posted December 1, 2016 Bien vu ! Oui effectivement c'est un client bidon qui s'est inscrit bizarrement... les champs obligatoires n'étaient pas renseignés mais il était présent dans la db... je l'ai supprimé hier... serait-ce ca alors... Crois-tu qu'en allant dans mysql supprimer toutes les traces de ce p.pol... ca résoudrait le prob ? Link to comment Share on other sites More sharing options...
Eolia Posted December 1, 2016 Share Posted December 1, 2016 Si le client a été supprimé, il suffit de supprimer le panier correspondant en bdd Link to comment Share on other sites More sharing options...
paincuit Posted December 1, 2016 Author Share Posted December 1, 2016 Un grand merci ! ça a marché ! Tout est revenu dans l'ordre... 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