-
Posts
2,027 -
Joined
-
Last visited
-
Days Won
175
Content Type
Profiles
Forums
Gallery
Downloads
Articles
Store
Blogs
Everything posted by wakabayashi
-
Thanks! Github search sucks. I search there for "view" it doesn't show the "blockviewd" repository... I looked only 5 minutes in the code, but it looks sensible. I see, that tb is reading the cookie and afterwards loading the needed products.
-
The thread in prestashop forum is quite interesting. I am now with 50k of products and notice here and there some performance issues. But these are almost always issues on my own code. With 3.4 million products you will find even much more such stuff. But these issues are often not relevant, if you have only 1k products. In my expierence the perfomance issues came to 90% from modules and maybe 10% from bad hardware or missconfiguration. What is the name of the corresponding thirtybees module?
-
The core is far away of handling this in a clean way. It's not even clear when the invoice will be sent, as this is coupled with order states. In addition "invoice" isn't exactly the same in each country. That makes it very hard for the core to find a "fits-all-solution". For a single shop it's much easier to find a solution with a few overrides. But if you need such customizations you need php knowledge. An additional column with a dirty Mail::send() override might be enough.
-
TB on WAMP shows broken homepage, js files not served
wakabayashi replied to Raymond's topic in English
Are the files on your server in the folder? I would surely try deleting all caches. But the fact that /themes/niara/js/vendor/picturefill.min.js is not found, sounds like the file is missing. -
Sorry, I didn't write my question clear enough. With hypothetical I meant something different. I wanted to ask, if you have some specific Dev in mind? Cause for me it's not so easy to find someone similair to @datakick. Of course there are some Prestashop devs out there, who would like to get the job. But I need someone who is really a powerful dev, that writes clean, maintanable and secure code.
-
This is just hypothetical, right? Or do you have any powerful prestashop/thirtybees in mind? Cause my company is steadily growing and I am considering hiring a full time dev. If I can find a suitable person. He would ofc also contribute to the core.
-
I believe the project is as death as the last 5 times, this was asked 😉 But you are right, @datakick is absent for some time now. I guess it's just holidays/recovery 😊
-
Ausverkaufte Artikel nicht deaktivieren
wakabayashi replied to Batman's topic in Deutsches Forum - Generelle Fragen
Sorry ich habe das Thema total vergessen. Das wurde in meinem Shop mittlerweile auch ganz anders gelöst. Ich erachte es als sehr sinnvoll solche Produkte zurückzustellen. Wir berechnen daher bei uns einen score wo verschiedene Parameter entscheiden, wie die beste Reihenfolge ist. Aber ok das ist ein anderes Thema. Zur Lösung: der Core Code ist hier wirklich hässlich... Du verwendest auf deinem Shop das Filter Modul. Deshalb muss man die Lösung da suchen. Das Module heisst blocklayered. Suche die Datei blocklayered.php. Es gibt dort eine Funktion: public function getProducts($selected_filters, &$products, &$nb_products, &$p, &$n, &$pages_nb, &$start, &$stop, &$range) Die musst du bearbeiten... Suche die Zeile: m.name manufacturer_name, Füge danach folgendes ein: IF(stock.quantity>0,1,0) AS sort_helper, Nun füge zudem nach "ORDER BY" folgendes ein: sort_helper DESC, Nun sollte es funktionieren. Hier noch ein kleiner Screenshot: Funktioniert das so für dich? Ich konnte diesen Code nicht intensiv testen, da meine Shops nicht dieses Modul nutzen. ACHTUNG: bei jedem Update dieses Modul wirst du das wieder anpassen müssen. -
Thirty bees is still alive, that is the only thing that counts for me 😊 A lot of great things are going on github. It would be wishful, if we could clone Datakick somewow, but might be difficult 🫠
-
Damn I wasted now like 2 hours to understand why the core updater is suddenly no more working 🤦♂️ Please note: atm you can't have the setting "Server PHP version" with PHP 8.4. You have to select 8.3 🫣
-
I am now on bleeding edge and php 8.4. My first impression is, that it works pretty well beside deprecation warnings. I will keep you updated 👍
-
Thanks you very much. It works now 👍 This feature will be so great, love it. Especially, if we can save presets. 🤩 As I had this functionality in mind too. I wonder about something. Why do you implement the new $this->filters_list? I wanted to add this functionality $this->fields_list, then I would also allow an employee to select the columns he wants to display. He could then save the columns and also filters. IMO this would help merchants to customize their list to their needs even further. They can just hide unnecessary stuff and as a dev we can add more columns, without having to think a lot about "is it too much". A module like orderlistcarriers would just be obsolete with a few lines of code. Also your example with the customer email would be good. Maybe some merchants would like to see in orders list!? I hope you get my proposal. Maybe I don't see the drawbacks!? 😊
-
I am now playing around with this... What is the technique behind it, where are the filter values saved? In cookies? With a pretty basic list of my module, it seems to work fine. With a very complex list, I get the following:
-
Yeah this sounds like a very stupid idea from smarty team. But now I am little confused about the php 8.4. Does it mean the smarty version of the core, doesn't work with it? Or are we also just talking about some deprecation warnings?
-
I basically only use my own modules and a few core modules and a frew from datakick. So I am fine on this side. Ok that sounds good for me. 😏👍
-
Spring is coming, which is always the time for me to make the big upgrades. I want to update my shop to bleeding edge again. In this process I wondered, if ThirtyBees does support PHP 8.4? Officially I can only read about PHP 8.3... Are there any expected/known issues with PHP 8.4?
-
Thanks a lot for this new feature! It will be very helpful. Something similair was on my ToDo list as well 😏 I will have break in early april. Afterwards I will update our system to new PHP version and will also upgrade again to bleeding edge. Then I can test it with my live site 🤩
-
Need help with partial refund issue and reinjecting inventory
wakabayashi replied to x97wehner's topic in English
Good to know. The question is now, if this makes any sense for anyone. I really don't know why the core does this. The fact that you have issues and me too, makes this part of the code really dubious. -
Need help with partial refund issue and reinjecting inventory
wakabayashi replied to x97wehner's topic in English
It might be, that I got pissed by this issue too in the past. Cause I just checked my override and there I only check for this: if ($orderDetailList[$idOrderDetail]['quantity'] > 0) { if (Tools::isSubmit('reinjectQuantities')) { $this->reinjectQuantity($orderDetail, $orderDetailList[$idOrderDetail]['quantity'], false, Configuration::get('PS_STOCK_CUSTOMER_ORDER_REASON')); } } So basically I remove the hasBeenDelivered() function... -
Need help with partial refund issue and reinjecting inventory
wakabayashi replied to x97wehner's topic in English
Hard to say. I use this feature too, but with multiple overrides. The logic happens in AdminOrdersController.php -> postProcess() -> Tools::isSubmit('partialRefund') Also in AdminOrdersController there is function reinjectQuantity(), but IMO this should not even be called your case. if (!$order->hasBeenDelivered() || ($order->hasBeenDelivered() && Tools::isSubmit('reinjectQuantities')) && $orderDetailList[$idOrderDetail]['quantity'] > 0) { $this->reinjectQuantity($orderDetail, $orderDetailList[$idOrderDetail]['quantity']); } I would wonder, what your $order is returning on hasBeenDelivered(). Also the question is about which quantity you are talking. Are you using advanced stock management? -
-
I don't remember exactly, what I did. But for me it's working (css/js). How is your css file named? Is only one file loaded or multiple?
-
I believe it's not possible to fill the APCu cache by a cronjob. This is a big drawback in my use case. I am trying to use redis now. Doesn't seem to be much more complex 😏
-
I could solve it. In Plesk there are multiple settings. Some of them are globally on the server and some per domain. I had to adjust it in global settings 🥵