Jump to content

fherrard

Members
  • Posts

    242
  • Joined

  • Last visited

About fherrard

  • Birthday 11/13/1982

Profile Information

  • Location
    France

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

fherrard's Achievements

Rookie

Rookie (2/14)

  • Dedicated Rare
  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done Rare

Recent Badges

1

Reputation

  1. Hello Still no evolution of prestashop on 1.7.8.5 the bug is still present Did you find a solution ?
  2. Merci pour votre réponse , j'avais pas précisé mais Le mode Debug est bien activé également
  3. Merci pour votre réponse , j'avais pas précisé mais Le mode Debug est bien activé également
  4. Bonjour à tous J'ai un problème sur une version Prestashop 1.7.8.5, je souhaite faire des tests de debug en activant depuis les performances l'option "Désactiver les modules non développés par PrestaShop" mais il n'y a rien qui bouge les modules tiers sont toujours present en front office ,je vide le cache également mais rien ne change J'ai donc installé sur un autre serveur une version toute neuve et vierge d'un Prestashop 1.7.8.5, j'installe ensuite un module tiers j'active l'option et le module toujours present en front office alors que cette même option activé sur ps 1.6 désactive bien les modules concerné du front Si une personne a une idée de se bug Merci Bonne soirée
  5. Bonjour impossible d'ajouter et activer le module BlockCategories quand je clic sur installation j'ai ce message, Que faire ? Merci de votre aide si vous avez une idée [PrestaShopDatabaseException] Duplicate entry '343-1' for key 'PRIMARY' INSERT INTO `ps_tab_lang` (`id_tab`, `name`, `id_lang`) VALUES ('343', 'BlockCategories', '1') at line 791 in file classes/db/Db.php 786. if ($webservice_call && $errno) { 787. $dbg = debug_backtrace(); 788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97); 789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) { 790. if ($sql) { 791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>'); 792. } 793. 794. throw new PrestaShopDatabaseException($this->getMsgError()); 795. } 796. }
  6. Bonjour je cherche a avoir la variable " de la devise en code Iso c'est a dire EUR , GBP, USD " dans la page order confirmation J'ai surchargé la classe OrderConfirmationController j'ai bien créer un overdrive mais quand j'appel dans le tpl {$ordersCurrency} ou {$Currency} il n'y a rien qui remonte <?php class OrderConfirmationController extends OrderConfirmationControllerCore { public function initContent() { parent::initContent(); $order = new Order($this->id_order); $cart_rules = $order->getCartRules(); $this->context->smarty->assign(array( 'is_guest' => $this->context->customer->is_guest, 'HOOK_ORDER_CONFIRMATION' => $this->displayOrderConfirmation(), 'HOOK_PAYMENT_RETURN' => $this->displayPaymentReturn(), 'total_paid_tax_incl' => number_format($order->total_paid_tax_incl, 2, ',', ' '), 'total_paid_tax_excl' => number_format($order->total_paid_tax_excl, 2, ',', ' '), 'total_shipping_tax_incl' => number_format($order->total_shipping_tax_incl, 2, ',', ' '), 'total_shipping_tax_excl' => number_format($order->total_shipping_tax_excl, 2, ',', ' '), 'total_products_wt' => number_format($order->total_products_wt, 2, ',', ' '), 'total_products' => number_format($order->total_products, 2, ',', ' '), 'id_order' => $this->id_order, 'payment_method' => $order->payment, 'order_reference' => $order->reference, 'ordersTotalPaid' => $order->getOrdersTotalPaid(), 'ordersCurrency' => $currency->iso_code, 'currency'=>$order->currency->iso_code, 'reduction_wt' => isset($cart_rules[0]['id_order_cart_rule']) ? number_format($cart_rules[0]['value'], 2, ',', ' ') : 0, 'reduction_tax_excl' => isset($cart_rules[0]['id_order_cart_rule']) ? number_format($cart_rules[0]['value_tax_excl'], 2, ',', ' ') : 0, 'voucher_code' => isset($cart_rules[0]['id_cart_rule']) ? $this->getVoucherCodeById($cart_rules[0]['id_cart_rule']) : '' )); if ($this->context->customer->is_guest) { $this->context->smarty->assign(array( 'id_order' => $this->id_order, 'reference_order' => $this->reference, 'id_order_formatted' => sprintf('#%06d', $this->id_order), 'email' => $this->context->customer->email )); /* If guest we clear the cookie for security reason */ $this->context->customer->mylogout(); } $order = new Order($this->id_order); $cart = new Cart($order->id_cart); $description=""; foreach ($cart->getProducts() AS $k=>$v){ $description.=$v['name']; } $description=urlencode($description); $this->context->smarty->assign(array( 'total_products'=>$order->total_products, 'description'=>$description, 'currency'=>$order->currency->iso_code, 'vc'=>$cart->cart_rule->code )); $this->setTemplate(_PS_THEME_DIR_.'order-confirmation.tpl'); } public static function getVoucherCodeById($id_cart_rule) { if (!Validate::isCleanHtml($id_cart_rule)) { return false; } return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('SELECT `code` FROM `'._DB_PREFIX_.'cart_rule` WHERE `id_cart_rule` = \''.pSQL($id_cart_rule).'\''); } public static function curr_iso($id){ $currency = new Currency($id); return $currency->iso_code; } } Merci de votre aide
  7. Bonjour j'ai le même problème avez vous trouvé la solution ? Bien cordialement
  8. Merci pour ces correctif est pour la version 1.6.2.1 ? avez vous la solution ?
  9. Oui ce qu'il serait bien c'est que le bon s'applique sur tous les produits du panier sauf ceux qui beneficie déjà d'une promo.. Car là on bloque tout le panier et le client ne beneficie même pas de la remise du coup .
  10. J'ai exactement le meme problème sur certaines commandes il y a bien le bouton pour ajouter un produit et sur d'autre pas de bouton alors que les deux commandes on le meme statut ... Sur Prestshop 1.6
×
×
  • Create New...