Jump to content

Anto Webcraft

Members
  • Posts

    32
  • Joined

  • Last visited

About Anto Webcraft

  • Birthday 01/01/1985

Contact Methods

Profile Information

  • Location
    Nantes
  • Activity
    Freelancer

Recent Profile Visitors

325 profile views

Anto Webcraft's Achievements

Newbie

Newbie (1/14)

5

Reputation

1

Community Answers

  1. Cannot access to "Installed modules" in Prestashop 1.7.2.4 (local install) : Blank page, Apache2 log says : AH01071: Got error 'PHP message: PHP Fatal error: Uncaught GuzzleHttp\\Exception\\ServerException: Server error response [url] https://api-addons.prestashop.com?format=json&iso_lang=fr&iso_code=FR&version=1.7.2.4&method=listing&action=categories [status code] 500 [reason phrase] Internal Server Module main page provide : Cannot get catalog data, please try again later. Reason: Server error response https://api-addons.prestashop.com?format=json&iso_lang=fr&iso_code=FR&version=1.7.2.4&method=listing&action=categories [status code] 500 [reason phrase] Internal Server Error Request randomly provide 500 error and I can't manage Installed modules.
  2. Bonjour, Si jamais cela vous intéresse, il est possible de faire un export à partir de l'administration : Paramètres avancés > Gestionnaire SQL : Ajouter une nouvelle requête SQL => Exporter. Voici la requête qui exporte notamment les sous-totaux des produits par règles de taxes (à personnaliser en fonction de votre configuration : d.id_tax_rules_group= XX => ID règle de Taxe / AS `XX` => Nom de la colonne) SELECT a.id_order, a.invoice_number AS `Numéro facture`, a.invoice_date AS `Date facture`, b.firstname AS `Prénom`, b.lastname AS `Nom`, a.total_products AS `Total produit HT`, a.total_products_wt AS `Total produit TTC`, SUM(CASE WHEN d.id_tax_rules_group = 1 THEN d.total_price_tax_excl ELSE 0 END) AS `Sous-total produit HT (20%)`, SUM(CASE WHEN d.id_tax_rules_group = 2 THEN d.total_price_tax_excl ELSE 0 END) AS `Sous-total produit HT (7%)`, SUM(CASE WHEN d.id_tax_rules_group = 3 THEN d.total_price_tax_excl ELSE 0 END) AS `Sous-total produit HT (5.5%)`, SUM(CASE WHEN d.id_tax_rules_group = 4 THEN d.total_price_tax_excl ELSE 0 END) AS `Sous-total produit HT (2.1%)`, SUM(CASE WHEN d.id_tax_rules_group = 5 THEN d.total_price_tax_excl ELSE 0 END) AS `Sous-total produit HT (10%)`, a.total_shipping_tax_excl AS `Total frais de port HT`, a.total_shipping_tax_incl AS `Total frais de port TTC`, a.total_discounts_tax_incl AS `Réduction TTC`, a.total_discounts_tax_excl AS `Réduction HT`, a.total_paid_tax_incl AS `Total payé`, a.payment AS `Moyen de paiement`, c.name AS `Boutique` FROM ps_orders a LEFT JOIN ps_customer b ON (a.id_customer = b.id_customer) LEFT JOIN ps_shop c ON (a.id_shop = c.id_shop) LEFT JOIN ps_order_detail d ON (a.id_order=d.id_order) WHERE a.invoice_number != 0 GROUP BY a.`id_order` ORDER BY `a`.`invoice_date` DESC
  3. Bonjour, Non il n'y a pas de moyen simple de modifier la boutique par défaut d'un produit, mais ces modifications devraient fonctionner sur un prestashop 1.6 : https://github.com/GraalNetwork/PrestaShop/commit/cd7c32c2cec258fe82f4d7f68012b6a510bd9fb2
  4. Up with a solution on ps 1.6, to avoid infinite loop recursion on actionProductSave calling Product->save() (for example) : /modules/mymodule/mymodule.php class MyModule extends Module { /** Only enable one execution per Module instance */ public static $executed = false; [...] public function hookactionProductSave($params){ // Test if hook as has already been executed (as there is only one instance per module in ps 1.6) $executed = Self::$executed; if($executed == true) return // Set executed static property Self::$executed = true; $product = $params[0]['product']; [...] $product->save(); } [...] Be aware that this will only allow this hookactionProductSave() to be executed once.
  5. Hello, What is your Paypal module configuration ? And youre Paypal account options (like PayPal Account Optional = On) ?
  6. Half correct ! You can't set the default shop of a product if it is not associated with the concerned shop but "migrated" is not the correct terme as you can associate Product with shops by saving them in Shop Context. And last, yes it's quite a big thing... for the current project (online soon), the goal is to share carts beetween shops with different domains and different order process. I created two shops in the same group with same catalogs, customers and quantities, I forced "All shops" edition for Products and Categories. The above snippet avoid dupplicate content (as the catalog is shared) by allowing redirection based on id_shop_default.
  7. Bonjour, Déterrage de sujet mais une contribution a été faite dans ce sens : - Edition de la boutique par défaut pour les produits et les catégories - Configuration pour forcer la génération des liens avec l'URLs de la shop par défaut des produits et catégories Pull request faite sur Github : https://github.com/P...aShop/pull/4662 Et si vous souhaitez que ça soit pris en compte pour la prochaine version de Prestashop, vous pouvez voter ici : http://forge.prestas...owse/PSCSX-7540 Bonne journée
  8. Hi everyone, A larger contribution has been made on github with pull request : https://github.com/PrestaShop/PrestaShop/pull/4662 You can vote for it on : http://forge.prestashop.com/browse/PSCSX-7540 It includes : - Admin edit default_shop field for Products and Categories - Configuration var to force default shop URL on link generation for them. Cheers Anto
  9. Bonjour, Je serais disponible immédiatement pour ce projet. Je vous contacte par Message privé pour les questions. Cordialement, Antonin
  10. Salut, Le module m'intéresse pour un projet. Qqun à un retour d'expérience ? Version 1.5 ou 1.6 ? Bonne journée Antonin
  11. You can try to set the correct files/folders permissions with the FTP access : => login on FTP server => select all Prestashop files => change permissions (right click on filezilla > File permissions... ) to 775 = Owner : read/write/execute, Group: read/write/execute, Public:read/execute. => Don't forget to set the recursive option for the changes to be applied in sub-folder/directories, it can take à while... => Select /cache directory : delete class_index.php and the content of /cache/smarty/*
  12. Did you verifiy the correct settings in : - /config/settings.inc.php : _DB_SERVER_ / _DB_NAME_ / _DB_USER_ / _DB_PASSWD_ - /config/defines.inc.php => define('_PS_MODE_DEV_', true); - in phpmyadmin : table : xx_shop_url > domain / domain_ssl / physical_uri - in phpmyadmin : table : xx_configuration > PS_SHOP_DOMAIN / PS_SHOP_DOMAIN_SSL Otherwise you can try to disable overrides and non-native prestashop modules in phpmyadmin : table : xx_configuration : PS_DISABLE_OVERRIDES = 1 / PS_DISABLE_NON_NATIVE_MODULE = 1 Don't forget to clear the class cache by deleting /cache/class_index.php file If nothing works next step should be to reach the apache/php error log to now exactly what's happening.
  13. hI, Did you clear all the cache and set correct permissions ? => login on FTP server => select all Prestashop files => change permissions (right click on filezilla > File permissions... ) to 755 = Owner : read/write/execute, Group: read/execute, Public:read/execute. => Don't forget to set the recursive option for the changes to be applied in sub-folder/directories, it can take à while... => Select /cache directory : delete class_index.php and the content of /cache/smarty/* and apply the same rights to /cache folder with 775 = Owner: read/write/execute, Group:read/write/execute, Public:read/execute (don't forget the recursive option) Cheers Antonin
  14. Hi, Have you tried to clear the cache and reset file permissions ? => login on FTP server => select all Prestashop files => change permissions (right click on filezilla > File permissions... ) to 755 = Owner : read/write/execute, Group: read/execute, Public:read/execute. => Don't forget to set the recursive option for the changes to be applied in sub-folder/directories, it can take à while... => Select /cache directory : delete class_index.php and the content of /cache/smarty/* and apply the same rights to /cache folder with 775 = Owner: read/write/execute, Group:read/write/execute, Public:read/execute (don't forget the recursive option)
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More