Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

3,110,654 profile views

razvypp's Achievements


Newbie (1/14)

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

Recent Badges



  1. Hello, I am trying to get the orders from a specific date interval (date_add) using webservices and tried using the filter option like this it does not work 'filter[date_add]' => '[2022-08-10 14:35:18,2022-09-10 14:35:18]' and i cannot find another option to filter orders by, i cannot get all orders because on big shops, it would timeout, can anyone help with this?
  2. You can use a cron job to reset it, this is how i do it $sql = 'SELECT * FROM `'._DB_PREFIX_.'product_attribute` GROUP by id_product'; $results = Db::getInstance(_PS_USE_SQL_SLAVE_)->executes($sql); if($results) { foreach($results as $res) { $sql = 'SELECT * FROM `'._DB_PREFIX_.'product_attribute` WHERE quantity > 0 AND id_product = '.(int)$res['id_product']; $new_res = Db::getInstance(_PS_USE_SQL_SLAVE_)->getRow($sql); if($new_res) { Db::getInstance(_PS_USE_SQL_SLAVE_)->execute('UPDATE `'._DB_PREFIX_.'product_attribute_shop` SET default_on = 1 WHERE id_product_attribute = '.(int)$new_res['id_product_attribute']); Db::getInstance(_PS_USE_SQL_SLAVE_)->execute('UPDATE `'._DB_PREFIX_.'product_attribute` SET default_on = 1 WHERE id_product_attribute = '.(int)$new_res['id_product_attribute']); Db::getInstance(_PS_USE_SQL_SLAVE_)->execute('UPDATE `'._DB_PREFIX_.'product_attribute_shop` SET default_on = NULL WHERE id_product_attribute = '.(int)$res['id_product_attribute']); Db::getInstance(_PS_USE_SQL_SLAVE_)->execute('UPDATE `'._DB_PREFIX_.'product_attribute` SET default_on = NULL WHERE id_product_attribute = '.(int)$res['id_product_attribute']); } } }
  3. Mine looks the same protected static $is_addons_up = true; public static function addonsRequest($request, $params = array()) { return false; // PUT THIS JUST AFTER THE FIRST { if (!self::$is_addons_up) { return false; } ... .... ....
  4. If you have problems with the prestashop admin today, i want to tell you the reason and give you a solution. Reason: it's because prestashop connects to addons.prestashop.com to download latest modules, get info about your account if you are logged in, etc and as you probably noticed addons.prestashop.com is loading very slow also. Fix: The fix is very easy but you need to be able to edit a php file in the FTP, just go to CLases/Tools.php go to line 3371 or where you see protected static $is_addons_up = true; public static function addonsRequest($request, $params = array()) { Just add a return false; when the function starts, it should look like this protected static $is_addons_up = true; public static function addonsRequest($request, $params = array()) { return false; Afterwards, clear the cache or delete the cache_index.php file from /cache
  5. Hello, I have a shop where i want to allow orders to be placed even when stock is below 0, i have the following settings in PREFERENCES -> PRODUCTS -> PRODUCTS STOCK Allow ordering of out-of-stock products : Yes If i set Enable stock managemen to: Yes, When i placed an order for a product that has -4 stock, after i click place order, i get: Invalid new order state on https://site.ro/module/cashondelivery/validation Anyone can help with this issue?
  6. Hello, I am a seller on addons.prestashop.com for some time now, i want to display some of my modules in the module list in the backoffice of the merchant page, like many other modules. I do not know how to achieve this, or who i need to contact, as any contact of prestashop regarding this has not helped me at all. If anyone can tell me how can i do this, it would help me greatly.
  7. I didn't do anything, it was a prestashop problem and they fixed it.
  8. It's impossible i have dedicated server with unlimited resources, on which I am a shop with 200.000 products and it's running smoothly. There isn't anything i am doing wrong, they have the same problem on their theme demo page. Also, i keep telling them it's not normal and they keep trying to convince me that their theme is very complex and it's normal for it to load like this and i should activate cache.
  9. Hello, I have bought a theme from addons.prestashop.com, but it has huge loading time after installing it, i mean like 60 seconds on the homepage, I contacted the seller and he gave me some retarded answers ( all were non sense ), after which his final answer was to enable the prestashop cache cause it's faster ! After asking for a refund, because the theme is unusable and his lack of interest to fix it he did not answer anymore. Outrageous ! My question is this, how can I get a refund, I cannot find a way to contact prestashop regarding this issue, when i select problem with a product I have, it sends the messages to the seller, not to the prestashop theme.
  10. I received an answer from prestashop administrators, it was temporary glitch. Modules appeared.
  11. Hello, 4 modules that were under review and never been approved before have disappeared from my seller account. I have contacted prestashop support but they always answer very late, anyone else had this problem?
  12. Hello, I have a problem, we are using prestashop 1.5.6.x, and there is a problem with the search engine, some combinations/keywords do not show all the products. For example: https://plantum.ro/search?controller=search&orderby=position&orderway=desc&search_query=mladite&submit_search=Caut%C4%83 does not show https://plantum.ro/gemoderivate/1885-mladite-de-mur-30-monodoze.html, i have checked the ps_search_index and the keyword is there.
  13. found the answer, you must set define('_PS_DEBUG_PROFILING_', true);
  14. How can i get the statistic posted by "agusluc" on the first post? I have a similar problem with www.plantum.ro, the php is generated very slowly... in 6 seconds. Load time: 18.898s You'd better run your shop on a toaster config: 8.46s constructor: 0ms init: 6.496s checkAccess: 0ms setMedia: 0ms postProcess: 0ms initHeader: 0ms initContent: 3.559s initFooter: 191ms display: 192ms Hook processing: 3.95s / 12.81 Mb displayHeader: 2.398s / 4.51 Mb displayTop: 794ms / 4.75 Mb displayHome: 259ms / 1.03 Mb moduleRoutes: 201ms / 1.02 Mb displayFooter: 191ms / 0.22 Mb displayRightColumn: 105ms / 1.28 Mb displayLeftColumn: 3ms / 0.01 Mb DisplayOverrideTemplate: 0ms / 0 Mb displayMyAccountBlock: 0ms / 0 Mb actionDispatcher: 0ms / 0 Mb actionFrontControllerSetMedia: 0ms / 0 Mb Memory peak usage: 26.89 Mb config: 9.14 Mb constructor: 0 Mb init: 4.76 Mb checkAccess: 0 Mb setMedia: 0 Mb postProcess: 0 Mb initHeader: 0.01 Mb initContent: 11.6 Mb initFooter: 0.24 Mb display: 0.44 Mb Total cache size (in Cache class): 0.46 Mb DB type: DbPDO SQL Queries: 183 queries Time spent querying: 1.122s
  • Create New...