Jump to content

renaud2263

Members
  • Posts

    300
  • Joined

  • Last visited

  • Days Won

    1

renaud2263 last won the day on August 26 2021

renaud2263 had the most liked content!

Profile Information

  • Location
    Perros-Guirec France
  • First Name
    Renaud
  • Last Name
    Primois

Recent Profile Visitors

902 profile views

renaud2263's Achievements

  1. Hi, As the title of the topic, I would like to save the PDF invoices automatically when order is complete. I overrided the 2 PDF classes : <?php class PDF extends PDFCore { public function render($display = true) { if($this->template == PDF::TEMPLATE_INVOICE) parent::render('F', true); //This renders to automatic save return parent::render($display); } } ?> and PDFGenerator class PDFGenerator extends PDFGeneratorCore { public function render($filename, $display = true) { if (empty($filename)) { throw new PrestaShopException('Missing filename.'); } $this->lastPage(); if ($display === true) { $output = 'D'; } elseif ($display === false) { $output = 'S'; } elseif ($display == 'D') { $output = 'D'; } elseif ($display == 'S') { $output = 'S'; } elseif ($display == 'F') { $output = 'F'; $filename = _PS_ROOT_DIR_.'/Compta/tva-new/invoices/'.$filename; } else { $output = 'I'; } return $this->output($filename, $output); } Then : the files are saved in the folder, but if a customer (or from admin) wants to download his invoice, the file is blank. So how it's possible to have both : invoices downloadable from admin or frontend AND automatically saved in the folder. Many thanks in advance.
  2. Non, du tout. Pour bénéficier du HT, les pros doivent avoir un N° de TVA intra vérifié et la mention Exonération de TVA, article 283-2 du Code général des impôts doit figurer en pied de facture. Cela s'appelle l'autoliquidation.
  3. J'en suis conscient, raison pour laquelle je travaille avec un cabinet d'experts comptables 😉 Je vais tester avec le groupe remise + HT. Merci et bonne soirée.
  4. Non, en fait je livre depuis la Hollande, donc les pros Français (et Européens) payent HT. Il règlent à leur centre des impôts respectifs. 🙂
  5. Bonjour, un 3ème groupe ? Tu veux dire que tu paramètres la remise + le HT dans le groupe lui-même ? Oui ce serait bien mais j'ai aussi besoin que les factures soient HT (c'est même plus important que l'affichage).
  6. PS 1.7.7.1 existante depuis plusieurs années PHP 7.3 Hébergeur : Hostinger Bonjour à tous, Lorsqu'un client appartient à 2 groupes, comment combiner les particularités des 2 groupes ? Un exemple concret : Un client appartient au groupe "R25" qui a 25% de remise ET au groupe "Pro Europe" qui achète hors taxes. Si le groupe par défaut est R25, il a bien les prix affichés avec 25 de remise mais ils sont affichés TTC Si le groupe défaut est Pro Europe, il a bien ses prix affichés HT mais il perd sa remise de 25% Du coup comment faire pour combiner les deux : 25 de remise avec les prix affichés HT ? J'ai trouvé divers modules qui proposent le B2B mais ça cloche dès qu'on attribue un autre groupe (avec remise par exemple) au client. Une idée ? Un conseil ? D'avance merci beaucoup.
  7. @ndiaga so in the hook function I need to write this piece of request ? with which Db method ? And I also have to Db execute and return the result ? Could you show me an example ?
  8. @ndiaga @SmartDataSoft Ok, I will do that. Thanks for your help. Have a nice day !
  9. My reviews are managed by a module, but yes, it's exactly what I'm searching to do...But where can I use WHERE reviews_table.id_product=this_id_product ? I need to build a new module and hook it on "ProductReviews" ? And in this hook I must write this request ? Sorry I don't really understand...
  10. Hello, yes ! I need to get customer reviews from another table and display them on the product's miniatures on category page (stars)
  11. Hi All, I need to add informations from my own tables on the product listing on category page. What could be the best way to do ? How modify the SQL request to add some LEFT JOIN request to get additionnal infos in my product.tpl ? Many thanks in advance !
  12. Hello Daniel, i'm trying to execute your code to update the order history, but some orders are bugging with the fatal error : and I really don't understand why. Do you have an idea ? Thanking you in advance. Renaud.
  13. Bonjour, avez vous pu résoudre ce bug ? J'ai le même et je galère. Merci d'avance !
  14. Bonjour à Tous, J'ai un groupe de clients nommé "Club". Pour ce groupe, j'ai une règle catalogue qui offre 10% de remise sur tout le catalogue. Pendant une durée déterminée, je souhaite offrir 20% à ce même groupe sur une catégorie précise (soit +10% par rapport à d'habitude). J'ai tenté une seconde règle catalogue avec 10% (j'ai aussi essayé avec 20%) sur le groupe ET la catégorie. Cela ne s'applique pas. Ca reste à 10. J'ai tenté de mettre 20% sur la catégorie via le groupe lui même (paramètres=>clients=>groupes). C'est toujours à 10. J'ai tenté une règle panier paramétrée sur le groupe et la catégorie : PS 1.7.6 a pas aimé : erreur 500 et aucun affichage même en mode debug... Une idée ? D'avance merci !
×
×
  • Create New...