-
Posts
2,011 -
Joined
-
Last visited
-
Days Won
168
Content Type
Profiles
Forums
Gallery
Downloads
Articles
Store
Blogs
Everything posted by wakabayashi
-
Is it somehow possible to get the controller name and id_entity by throwing an url? I want something like: function getControllerAndId($url) { // Use $url somewow $dispatcher->getController(); } I want to use this in a module... The idea is to recognize posted urls by customers in FrontOffice as product links and replace them. For example: www.domain.ch/category/productXY I want: Controller=ProductController id_product=352
-
This is a little confusing to me. Once there is jpg and once webp 🥵 But ok, as we can drop it anyway, we won't have this issue in future 👍
-
I went live my branch of consistent webp images. In general it works well. But I just found another big issue, but I want someone to confirm. I need someone, that uses webp and google search console. Please open an url in google search console and check the html of the crawled page. Is there webp or jpg used? @datakick Do you think we need to keep this browserSupport? https://github.com/thirtybees/thirtybees/blob/e6ca6b43d5235c80c1ebeff087ece88fd4541c83/classes/ImageManager.php#L881 In alot of usages it causes troubles. You have to adjust all ajax calls for webp support and it seems that crawlers might fall to it.
-
@datakick I have just installed consitency module and used it a little. Very useful! But I noticed some "issues": Carrier with ID 28 is not associated with any shops. This carrier is not showing up for me in BO. Not surprising as the column deleted equals 1. Image with ID 4284 is not associated with any shops. This message is correct, but it would be helpful to show the id_product as well. Otherwise a newbie can't fix it IMO. Don't forget to add alternative images extension in the image test, once we offer it. A few days ago I have switched my live shop to webp. 😋
-
@datakick thanks a lot for this detailed answer! I was aware of the table issue, but I guess I understood the message wrong. It's not about an exception handler? It's about registering displayLeftColumn and not having the function hookDisplayLeftColumn() right? I can tell you, that this issue arises in my cases differently, than you maybe expected. This modules had this hooks registered. But then I removed them. Does the inconsistency check happen during installing/updating process? Cause for some modules I just deleted the function without doing a new installation. Maybe this is a problem? I guess I can just unhook this module under "positions" or calling unregisterHook() ... Oh I will test your consistency module. 😋 I am already a big fan of the collect logs module. IMO it would be much more helpful, if such warnings would be added to collect logs instead of the normal log. In the normal log you must be Sherlook Holmes to distingue between logs and issues.
-
I am not sure, how many of you are aware, that the core logs can slow down your shop drastically. I am optimizing my site these days and kind of analyze all chains of code. I suddenly noticed, that a huge table (215k rows in my case) of "ps_log" slowed my shop for around 300ms. After truncating this table I have now kind of 500ms instead of 800ms. This is kind of sick 🙃 The reason is mainly this one: https://github.com/thirtybees/thirtybees/blob/main/classes/Hook.php#L564
-
ThirtyBees 1.5 OFFICIAL is here!
wakabayashi replied to the.rampage.rado's topic in Announcements about thirty bees
Great update post @the.rampage.rado -
Yes that sounds logical. Cause also here: the warehouse is not the same. Do you want the split up? And why do you have some entries with asm and some without?
-
Every year again 😅 I finally understood what in my case brought up this order splitting. It's missing entries in warehouse_product_location table. It happened for me, if we are adding combinations or deleting combinations. Not sure, if it's a bug in core or if it came to bad overrides on my side. Maybe someone else can confirm, if he has this issue too due to combinations.
-
The issue is in public function isParentCategoryAvailable($idShop) in Category Class. IMO it doesn't join the category correctly. I have 3 shops. (id_shop=3 is the default one). But in ps_category I have some entries, that have id_shop_default=1 (don't ask me how I can even controll this as an user). In this case isParentCategoryAvailable($idShop) returns false, even if a category is associated to shop with id_shop=3. https://github.com/thirtybees/thirtybees/blob/main/classes/Category.php#L2427 Should be changed to: ->join(Shop::addSqlAssociation('category', 'c', true, null, true)) This is a very edge case, which explains why I am probably the only one suffering from it 🙄
-
Thats what I thought. That's why I asked here and didn't open a github issue. I will investigate this further, to understand, why it happens.
-
Ok likely the id_parent is not always set, when editing a category. Maybe it's related to multistore. 😶🌫️
-
Do you have also issues when saving categories? I had this in my teststore. Now I have it also in the live store. I just saved a category X and now the tree in BO is completly broken. I can't find them anymore there... @datakick is the complexity with level_depth, nleft, nright, is_root_category any good for? To me this looks overcomplex and that's why it's no wonder, that its kind of broken.
-
Yes, since I use cloudflare turnstile all my spam problems (over the website) are gone.
-
I was working on this recently as well. What I do: Only load the conversion pixel on the confirmation page, then submit it and on next page refresh delete all the cookies again. Like that you have the conversions, but you basically don't let the big sites track your users on your site. If this is a clever or a nonsense solution, is up to priority. I also don't know, how negatively it affects retargeting stuff. I believe in general one has to decide, if we want to protect customer data or get the best results from ads. To have both in perfection is probably not possible.
-
Bist du sicher @Occam? Ich verstehe den Text gleich wie @30knees. Technisch würde ich sagen, dass der reverse DNS zum Problem wird. Da kann man mit herkömmlichen Mitteln (soviel ich weiss) nur eine Domain hinterlegen. Somit wird das problematisch. Aber ok, bin kein Experte rund um Server... Da frage ich mich gerade, ob ich dieselben Probleme bekommen werde als Multishop User trotz eigenem Server 🙈 Naja wird bei mir eh bald Geschichte sein mit Multistore...
-
@datakick I am working again a bit on this as my shop relaunch comes closer. Today I checked, how rewrite rules should look like and generated them quickly. This works fine for me: rewrite ^/categories/([0-9]+)-([^\s/]+)/([^\s/]+)\.webp$ /img/c/$1-$2.webp break; rewrite ^/categoriesthumb/([0-9]+)-([^\s/]+)/([^\s/]+)\.webp$ /img/c/thumb/$1-$2.webp break; rewrite ^/genzoportallink/([0-9]+)-([^\s/]+)/([^\s/]+)\.webp$ /img/genzo_portal/links/$1-$2.webp break; rewrite ^/manufacturers/([0-9]+)-([^\s/]+)/([^\s/]+)\.webp$ /img/m/$1-$2.webp break; rewrite ^/scenes/([0-9]+)-([^\s/]+)/([^\s/]+)\.webp$ /img/scenes/$1-$2.webp break; rewrite ^/scenesthumb/([0-9]+)-([^\s/]+)/([^\s/]+)\.webp$ /img/scenes/thumbs/$1-$2.webp break; rewrite ^/stores/([0-9]+)-([^\s/]+)/([^\s/]+)\.webp$ /img/st/$1-$2.webp break; rewrite ^/suppliers/([0-9]+)-([^\s/]+)/([^\s/]+)\.webp$ /img/su/$1-$2.webp break; rewrite ^/products/([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$1$2$3.webp break; rewrite ^/products/([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$1$2$3$4.webp break; rewrite ^/products/([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$1$2$3$4$5.webp break; rewrite ^/products/([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$1$2$3$4$5$6.webp break; rewrite ^/products/([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.webp break; rewrite ^/products/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.webp break; rewrite ^/products/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.webp break; rewrite ^/products/([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.webp$ /img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.webp break; You see genzoportallink is just a module from myself, that uses the ObjectModel image definition. Still some stuff left, that need to be fixed: The multistore thing with different themes and with different sizes for same imageType The gathering and include of objectModelFiles that use $definition['images']. Probably other stuff as well, but on my shops things look quite good 😳 😏
-
Order status showing on order detail page but not on order overview page
wakabayashi replied to 30knees's question in Technical help
Have you checked the error_logs? You need this module "Collect PHP Logs" to be installed... -
Order status showing on order detail page but not on order overview page
wakabayashi replied to 30knees's question in Technical help
It happens when something fails. The current_state couldn't be saved. But likely through an expection, that is not related to order states. You should check error_logs. -
Cookies verhindern Login im Shopsystem
wakabayashi replied to Batman's topic in Deutsches Forum - Generelle Fragen
15959#0: *1869971 upstream sent too big header while reading response header from upstream Found now this in the logs. Which clearly indicates, that you were right @datakick. What confuses me a lot: he has apache selected, so why is there a nginx error? I contacted the webhoster. As it is shared, they refuse to increase any values. Is this normal? Does it mean, that thirtybees and shared webhosting is not really an option? I mean personally I have a dedicated server for multiple reasons, but I always thought, that it's possible to use shared hostings as well. What is your experience with this? Is this hoster total shitty or is it kind of normal to get problems with it? I noted, that it's not so easy to go the next step after shared webhosting. Let's say you pay 2-15$ for shared and often 80$ or more for private managed server. An unmanaged server is no option for 99% of merchants. I see a lot of vps/cloud stuff, but often this is not managed as well. Am I missing something or is it not so easy to get something managed for 35$, that is better than shared webhosting offers? -
New features, improvements or something else?
wakabayashi replied to the.rampage.rado's topic in English
If this was possible at PS 1.6, then there is some point in your request. I am not totally sure, if it was and if it was intended... https://devdocs.prestashop-project.org/8/modules/concepts/module-class/#name But ok lets get productive. What is the problem in renaming them? I understand that this is no option for a merchant, but I am asking YOU as a DEV. Which modules are you actually talking about, cause in my years I have never seen one with capital letters... -
New features, improvements or something else?
wakabayashi replied to the.rampage.rado's topic in English
Not worth the time 😅 Sorry, but if you are a module dev you have no reason to use uppercase. It's just not clever. Exactly as naming your module generic "paypal" is also not clever... Luckily I read at the beginning of my coding "life" the book from Fabien Serny about prestashop (modules). He explained this very well... That's why all my modules have prefix "genzo_". @musicmaster Are these really the main issues you have with tb and ecommerce in general? I mean then you are the luckiest dev/merchant around here. -
How easy would it be to implement Cloudflare Turnstile free Captcha?
wakabayashi replied to ukclearance's topic in Modules
Thanks to @datakick, who submitted a PR and improved some minor issues! In general this module works great for me to block spam. Personally I have none at all, right now. So it was time to make an official release of v.1.0.0. https://github.com/eschiendorfer/genzo_turnstile/releases/tag/v.1.0.0