Sharak
Members-
Posts
362 -
Joined
-
Last visited
About Sharak
- Birthday 03/04/1983
Profile Information
-
Location
Poland
-
Activity
Freelancer
Recent Profile Visitors
5,668,139 profile views
Sharak's Achievements
-
Sharak started following Error 500 during user registration
-
‼️You should only use php version supported by the current version of your shop. It's max PHP 8.1 for PS 8.1: https://devdocs.prestashop-project.org/8/basics/installation/system-requirements/#php-compatibility-chart And to fix the problem simply setup a main mail account for your shop eg. [email protected] and use its SMTP configuration in Advanced -> E-mail. The default there is Sendmail but it doesn't work in most cases so switch to SMTP and fill the account details.
-
APCu enabled - Backend caching problem
Sharak replied to kuskov's topic in Configuring and using PrestaShop
@MerseyRay APCu is not good. It breaks stock managment. Product sold out, database shows quantity 0, but backoffice still loads initial value and front office still shows product as available for purchase. Customers get stock error only during order processing. Of all cache options available in PS 1.7 only memcached is worth considering, because it's still maintained. -
Thanks, @SmartDataSoft. I've been fighting this 💩 whole day. It did load but also generated a ton of errors in the log about undefined index 'product' or using private methods. Your code finaly works as expected. You're a savior! ❤ ...at least it's a good start. Unfortunately modal doesn't load. Reviews show inside product tabs, but are unsuable How can I use these freakin' {widget} thing? 😡
-
Change Manufacturer List Sort (order by)
Sharak replied to n13design's topic in Configuring and using PrestaShop
In case anybody is looking to sort manufacturer list on left column in prestashop 1.6 by the highest product count, here's the code to put into /override/modules/blockmanufacturer/blockmanufacturer.php (create if doesn't exist): class BlockManufacturerOverride extends BlockManufacturer { public function hookLeftColumn($params) { if (!$this->isCached('blockmanufacturer.tpl', $this->getCacheId())) { $manufacturers = Manufacturer::getManufacturers(true); if (count($manufacturers)) { usort($manufacturers, function ($a, $b) { return strnatcmp(strval($b["nb_products"]), strval($a["nb_products"])); }); } foreach ($manufacturers as &$manufacturer) { $manufacturer['image'] = $this->context->language->iso_code.'-default'; if (file_exists(_PS_MANU_IMG_DIR_.$manufacturer['id_manufacturer'].'-'.ImageType::getFormatedName('medium').'.jpg')) { $manufacturer['image'] = $manufacturer['id_manufacturer']; } } $this->smarty->assign(array( 'manufacturers' => $manufacturers, 'text_list' => Configuration::get('MANUFACTURER_DISPLAY_TEXT'), 'text_list_nb' => Configuration::get('MANUFACTURER_DISPLAY_TEXT_NB'), 'form_list' => Configuration::get('MANUFACTURER_DISPLAY_FORM'), 'display_link_manufacturer' => Configuration::get('PS_DISPLAY_SUPPLIERS'), )); } return $this->display(__FILE__, 'blockmanufacturer.tpl', $this->getCacheId()); } }- 2 replies
-
- 1
-
-
- manufacturer
- smarty
-
(and 1 more)
Tagged with:
-
It's not an error, but just a warning. Turn off debug mode by editing /config/defines.inc.php and changing this section: /* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', true); } /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true); to this: /* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', false); } /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false); This way warning won't be showing up, but errors will break your store and show blank page. Above settings should be true only in development. The moment you set your shop on production site these settings should be changed to false.
-
The problem is with permissions. 1.7.5.0 repeats old bugs (typical for presta 😣 ). It works on localhost because you have full access there, but on the server it all dependes on folders' and files' permissions and it's simply wrong. Set 755 on all folders and 644 on all files. Then delete /var/cache/ content (/dev and /prod)
-
The same happens on 1.7.5.0. Here's fix for that:
-
I installed my shop localy on my computer and then uploaded to the server. Locally everything was fine. On the server I can't access admin panel unless I'm in debug mode. FO seems to work fine everytime. Logs don't show anything. Just that it runs normally with http code 200, then I can turn off debug mode through admin advanced settings which results in blank page and http code 500 in the log or by updating values in defines.inc.php with the same result when trying to open admin page again.
-
PS 1.7 Rozjechany szablon - home.pl
Sharak replied to flamaster's question in Wsparcie i pomoc użytkowników
Przy 1.6 też to chyba było konieczne. Tyle że później i tak w pewnych miejscach były problemy. Ktoś może potwierdzić, że potem już wszystko działa ok na preście 1.7? Nic nie działa! Home+Presta=MASAKRA i tyle w temacie -
Nie warto Właśnie postawiłem nowy sklep na 1.7.3.2 i żałuję, że nie zostałem przy 1.6, które niemal pod każdym względem jest lepsza. Gdzie się nie obrócisz, tam na pewno znajdziesz jakiś błąd, a przecież już masa wersji wyszła, chyba nawet więcej niż do 1.6! Moduł RODO, który dla 1.7 jest darmowy, też ma masę błędów aktualnie, więc i tak trzeba będzie kupić gdzie indziej. Miałem się brać za robienie szablonów pod 1.7 na Material Design, ale chyba szkoda czasu się w to bawić akurat z prestą 1.7 E: O najważniejszym zapomniałem. Wrzuciłem właśnie tą 1.7.3.2 na serwer home.pl i oczywiście dalej są problemy. Style w ogóle się nie ładują :/
-
Problems with the new layout
Sharak replied to musicmaster's question in IP. Board Forum Questions and Issues
Quotes - lame as hell! What's the point of making it so huge? HTML tags also huge and even bordered while other parts of the code are normal size. Who on earth thought this would be helpful in any way? It seems some parts of this forum are made for chrome users only. Just noticed that when you make user reference i.e. @Antoine F you get stuck in it and can't write any more while on firefox. You've made a mess, presta team, now please bring back the old forums!
.png.022b5452a8f28f552bc9430097a16da2.png)