Jump to content

danger-m

Members
  • Posts

    64
  • Joined

  • Last visited

danger-m's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter Rare
  • Dedicated Rare
  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

1

Reputation

  1. Hello, I'm trying to add custom fields to the categories in my shop under PS 1.7.8.10 (freshly installed version). According to the documentation, you need to create a custom module for this. I've tried creating a module folder and the class that goes with it, but it doesn't appear in the list of modules or in the marketplace menu, but it does appear when I search with the name via the search bar, and when I click on the name of my module, it just redirects to the marketplace page without error. I've tried using an example code, but it doesn't work either. i also make test with this example : https://github.com/PrestaShop/example-modules/tree/master/demoextendsymfonyform3 Thank you for your help
  2. Bonsoir j'ai un petit problème au niveau d'un panier ajax. Le problème c'est que lorsque j'ajoutes certains articles (pas tout) au panier, celles-ci disparaissent au moment que je mets la page récapitulatif du panier. J'avais pas Ce problème avant sachant que je ne gère pas le stock PS 1.4.2.5
  3. Bonsoir j'ai un petit problème au niveau d'un panier ajax. Le problème c'est que lorsque j'ajoutes certains articles (pas tout) au panier, celles-ci disparaissent au moment que je mets la page récapitulatif du panier. sachant que je ne gère pas le stock PS 1.4.2.5
  4. Salam Dans category.tpl de ton thème remplace {if $products} par {if !isset($subcategories)}
  5. Bonjour Tu peux soit appeler le module newsletter via maintenance.tpl de ton thème ou bien ajouter un formulaire dans ce dernier.
  6. Bonjour J'utilise votre module v 1.6.0 sur PS 1.4, lorsque j'ai activé "One Page Checkout" dans Type de processus de commande, il devient instable, pas de contrôle sur la sélection du créneau et pas de mail reçu.merci de m'aider à résoudre ces deux problèmes
  7. Bonjour je relance le sujet, j'utilise cette langue dans ma boutique et lorsque j'essai d'imprimer mes factures j'ai des ???? au lieu du texte, j'ai tenté de modifier l'encodage dans commandes>PDF mais sans succès.Quelqu'un peut il m'aider.
  8. Bonjour Ma boutique contient 4 langues dont la langue russe. En testant la facture pour cette langue je m'aperçoit que l'affichage du texte est remplacé par des "????", j'ai changé l'Encodage dans Commandes > PDF mais sans succès. Quelqu'un peut m'aider?
  9. Bonjour je rencontre un problème étrange dont je n'ai aucune idée de sont origine. lorsque j'essai de passer le statut d'une commande à "Paiement accepté" je tombe sur l'erreur suivante : Fatal error (Order -> conversion_rate is empty) cette erreur n'est que pour ce statut. PS 1.4.6.2
  10. Bonjour cette modification a été testé sur PS 1.4 et elle fonctionne très bien Vous pouvez suivre ces étapes: 1-dabord chercher ce code vers la ligne 130 dans admin/Tabs/adminsearch.php et ajouter cette ligne 'ean13' => array('title' => $this->l('EAN13')), on obtient if (!$searchType OR $searchType == 1) { $this->fieldsDisplay['catalog'] = (array( 'ID' => array('title' => $this->l('ID')), 'manufacturer' => array('title' => $this->l('Manufacturer')), 'reference' => array('title' => $this->l('Reference')), 'ean13' => array('title' => $this->l('EAN13')), 'name' => array('title' => $this->l('Name')), 'price' => array('title' => $this->l('Price')), 'stock' => array('title' => $this->l('Stock')), 'status' => array('title' => $this->l('Status')), 'action' => array('title' => $this->l('Actions')) )); /* Handle product ID */ if ($searchType == 1 AND (int)$query AND Validate::isUnsignedInt((int)$query)) if ($product = new Product((int)$query) AND Validate::isLoadedObject($product)) Tools::redirectAdmin('index.php?tab=AdminCatalog&id_product='.(int)($product->id).'&addproduct'.'&token='.Tools::getAdminToken('AdminCatalog'.(int)(Tab::getIdFromClassName('AdminCatalog')).(int)($cookie->id_employee))); /* Normal catalog search */ $this->searchCatalog($query); } 2-puis cherchez ce code vers la ligne 241 : foreach ($this->_list['products'] AS $k => $product) { echo ' <tr> <td>'.$product['id_product'].'</td> <td align="center">'.($product['manufacturer_name'] != NULL ? stripslashes($product['manufacturer_name']) : '--').'</td> <td>'.$product['reference'].'</td> <td><a href="'.$currentIndex.'?tab=AdminCatalog&id_product='.$product['id_product'].'&addproduct&token='.Tools::getAdminToken('AdminCatalog'.(int)(Tab::getIdFromClassName('AdminCatalog')).(int)($cookie->id_employee)).'">'.stripslashes($product['nameh']).'</a></td> <td>'.Tools::displayPrice($product['price'], $currency).'</td> <td align="center">'.$product['quantity'].'</td> <td align="center"><a href="'.$currentIndex.'?tab=AdminCatalog&id_product='.$product['id_product'].'&status&token='.Tools::getAdminToken('AdminCatalog'.(int)(Tab::getIdFromClassName('AdminCatalog')).(int)($cookie->id_employee)).'"> <img src="../img/admin/'.($product['active'] ? 'enabled.gif' : 'forbbiden.gif').'" alt="" /></a></td> <td> <a href="'.$currentIndex.'?tab=AdminCatalog&id_product='.$product['id_product'].'&addproduct&token='.Tools::getAdminToken('AdminCatalog'.(int)(Tab::getIdFromClassName('AdminCatalog')).(int)($cookie->id_employee)).'"> <img src="../img/admin/edit.gif" alt="'.$this->l('Modify this product').'" /></a> <a href="'.$currentIndex.'?tab=AdminCatalog&id_product='.$product['id_product'].'&deleteproduct&token='.Tools::getAdminToken('AdminCatalog'.(int)(Tab::getIdFromClassName('AdminCatalog')).(int)($cookie->id_employee)).'" onclick="return confirm(\''.$this->l('Do you want to delete this product?', __CLASS__, true, false).' ('.addslashes($product['name']).')\');"> <img src="../img/admin/delete.gif" alt="'.$this->l('Delete this product').'" /></a> </td> </tr>'; } 3-ajouter la ligne suivante : <td>'.$product['ean13'].'</td> juste après <td>'.$product['reference'].'</td> 4-On va maintenant modifier la fonction de recherche dans la classe Product.php en ajoutant la récupération de EAN13 et en ajoutant OR p.`ean13` LIKE \'%'.pSQL($query).'%\' voila le syntaxe de la nouvelle fonction public static function searchByName($id_lang, $query) { $result = Db::getInstance()->ExecuteS(' SELECT p.`id_product`, pl.`name`, p.`ean13`, p.`active`, p.`reference`, m.`name` AS manufacturer_name FROM `'._DB_PREFIX_.'category_product` cp LEFT JOIN `'._DB_PREFIX_.'product` p ON p.`id_product` = cp.`id_product` LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.(int)($id_lang).') LEFT JOIN `'._DB_PREFIX_.'manufacturer` m ON m.`id_manufacturer` = p.`id_manufacturer` LEFT JOIN `'._DB_PREFIX_.'product_attribute` pa ON pa.`id_product` = p.`id_product` WHERE pl.`name` LIKE \'%'.pSQL($query).'%\' OR p.`reference` LIKE \'%'.pSQL($query).'%\' OR p.`ean13` LIKE \'%'.pSQL($query).'%\' OR p.`supplier_reference` LIKE \'%'.pSQL($query).'%\' OR pa.`reference` LIKE \'%'.pSQL($query).'%\' GROUP BY `id_product` ORDER BY pl.`name` ASC'); if (!$result) return false; $resultsArray = array(); foreach ($result AS $row) { $row['price'] = Product::getPriceStatic($row['id_product'], true, NULL, 2); $row['quantity'] = Product::getQuantity($row['id_product']); $resultsArray[] = $row; } return $resultsArray; }
×
×
  • Create New...