Has anyone had any issue with using Prestashop’s Product class updateCategories() before for updating lots of products categories at once? We’re using this to map supplier categories to our own categories and we need to change 100’s-1000’s of products categories. The problem we’re running into is that updateCategories usually slows down to a crawl when updating larger amounts of products
Tag: prestashop-1.7
PHP Fatal error: require(): Failed opening required lib prestashop
I have installed prestashop api lib in local (xampp) and works great, but when I upload the it to my server, it throws a exception. Log file: autoload_files.php: composer_real.php: composer.json: I supose that laravel doesn´t get correctly the lib but I don´t know how to fix it correctly. Please help, thx. Answer Composer is case sensitive, some letters´ path were
Prestashop 1.7 module front controller 404
I am developing a Prestashop 1.7 module and I have a problem with the Front Controller Module. When I try to access the page I get a 404 error. Here are the files : modules/cbd_calculator/cbd_calculator.php modules/cbd_calculator/controller/front/display.php : modules/cbd_calculator/views/templates/front/display.tpl : I call the uri: http://localhost/modules/cbd_calculator/display or http://localhost/index.php?fc=module&module=cbd_calculator&controller=display They give me a 404 error… I am blocked with this problem, how can
PrestaShop: How to refresh cart after creating specifc price
I have small problem 😉 I working with PrestaShop 1.7.6.9 (manual instaltion on shared hosting) and 1.7.7.1 (docker image from PrestaShop) I create module where price is calculated via code and saved in DB via SpecificPrice class. Saving work excellent, but I have other problem. When i go to cart product priced didn’t change. But when I wait some time
Prestashop Repository not found
Good morning. i have a problem using the new Symfony architecture. i created a modern controller where routing is working perfect. now i want to search products with ProductRepository. MyModule/src/…
Delegating the hook handler of a module M in a class C doesn’t work: this handler is not triggered
Consider this Prestashop 1.7 module M: class M extends Module { public function __construct() { $this->c = new NegoceClassesC($this); } } As you can see, I give its …
Ordering categories alphabetically in Prestashop top menu
I have set up a Prestashop 1.7 website for a client and I’m importing his new products with a script every day. These products are put in categories that I create if they don’t yet exist. My problem is that the newly created categories are put at the end of the drop down top menu, and it would be much