Jump to content
thirty bees forum

Traumflug

Members
  • Posts

    1,665
  • Joined

  • Last visited

  • Days Won

    82

Posts posted by Traumflug

  1. 1 hour ago, Bull said:

    FPC for ecommerce without exception is obviously a very bad idea. No one refers to FPC as actual F-u-l-l p-a-g-e caching, that would never work, and we both know that.

    Why do you bring this up, then, like so many other do? Makes no sense. Constantly asking for the impossible is, ... well, I'll stop talking here.

  2. 1 hour ago, Bull said:

    a cache should only be flushed when strictly necessary

    That's pretty much on every page load. Even when visitors just look around, sections like "recently visited" changes on about every click.

    Don't believe it? How about a look from the opposite direction, an e-commerce solution for Hugo, a static(!) web page generator: https://snipcart.com/blog/hugo-tutorial-static-site-ecommerce Essentially they use their static pages just as a placeholder for a dynamic e-commerce solution just like PrestaShop/thirty bees/Merchant's Edition.

    Third, page caching can apply to the initial HTML page load, only. And that's less than a second on a decent hosting already, so there's simply nothing which could be taken away by caching. All other time spent until the loaded page is completed is for loading images, fonts and embedded stuff like Google Maps, Google Translate, whatever.

    Full Page Caching for e-commerce is a pipe dream which simply doesn't want to die.

  3. "Einfach reinkopieren" geht nicht ganz. Die Themes sind zwar ähnlich, aber nicht gleich. Man muss also schon die Änderungen extrahieren und erneut anwenden.

    Was auch geht: das ganze PrestaShop Theme rein kopieren. Dann kann man es in Preferences -> Themes auswählen. Es gibt durchaus tb Shops, die so öffentlich laufen.

  4. Ich rate mal: es geht um das Front Office* Theme. Das wird bei einer Migration gar nicht überschrieben, denn das Standard-Theme von PrestaShop nennt sich 'default-bootstrap', während die neueren Themes andere Namen haben. Nach der Migration hat man drei Themes nebeneinander.

    Das alte Theme funktioniert weiterhin. Die Bugfixes der letzten beiden Jahre fehlen in diesem Theme natürlich.

     

    * "Front Office" ist die übliche Bezeichnung für das, was ein Shop-Besucher sieht. Das andere ist "Back Office", der Bereich mit all den Einstellungen.

  5. Unter die Arme greifen? Das kitzelt doch nur! ?

    Ansonsten ist die Sache relativ einfach: PrestaShop 1.6 und thirty bees und Merchant's Edition sind alle miteinander Theme- und Modul-kompatibel, so dass man migrieren kann, ohne die bisherige Arbeit zu verlieren.

    Vorsicht ist natürlich geboten, wenn man am offiziellen Code gebastelt hat. Solche Änderungen sollte man an eine sichere Stelle kopieren, damit man sie nach der Migration wieder einbringen kann.

    Die Migration ist recht einfach: Modul 'psonesixmigrator' installieren und los geht's. Ist in etwa so kompliziert wie ein Upgrade von PS 1.6.1.10 auf PS 1.6.1.12, dauer nur etwas länger. Das Backup im Modul schaltet man einfach ab, wenn es nicht funktioniert. Die Warnung bei der Installation klickt man auch weg, dieses Migrationsmodul ist natürlich kein offizielles PrestaShop-Modul.

    https://github.com/thirtybees/psonesixmigrator/releases/tag/2.1.0

  6. 36 minutes ago, AndyC said:

    Can you not just remove them from your database.

    One has to find out what 'the database' is. This is where looking into install() helps.

    If there's no longer any code touching this database table, the table can get removed, of course.

    It gets a bit more complicated with modules putting their stuff into the general configuration table. To clean this, one literally has to grep through the code for calls to Configuration::updateValue() and Configuration::updateGlobalValue() to find them. Such stuff is often not initialized in install().

    No rules without exceptions: payment modules often create their own order status, like 'Waiting for Bitcoin payment'. Order states can be still in use after module uninstallation, so the safe way is to just mark such states with 'active' = false and 'deleted' = true.

  7. Many many modules don't even try to uninstall properly, I fixed more than a dozen already. The probably only way to get this done right is to look into the install() method and undo everything done there.

    That said, core does a few things automatically: unregistering hooks and removing everything module related installed by core.

  8. Glad to see there's finally a release. Competition is encouraging.

     

    1 hour ago, haylau said:

    Great work, can you explain how this fits with bleeding edge?

    It's about the same as 1.1.x as of two weeks ago. On a quick glance, two commits actually affecting code, a dozen commits affecting the build system and source code comments.

    • Like 1
    • Sad 1
  9. On 2/24/2021 at 5:13 PM, veganline said:

    there's nothing in /header.tpl to point requests there

    You'd be surprised how many modules try to reinvent the wheel and request such stuff them selfs. One really needs to grep (multi file search) all templates and style files to find them. Like 'grep -rn awesome.min'.

  10. On 2/22/2021 at 8:21 PM, veganline said:

    Has anyone seen a mistake-proof guide to hosting fontawsome on-site?

    Not a guide, but the task is fairly simple:

    1. Find the URL in your (S)CSS.
    2. Download the file behind this URL manually and place it somewhere on your server.
    3. Change the URL found earlier to point to the file on your own server.
    4. To verify, reload the page in your browser and watch which font files get downloaded.

    Extra challenge in case of fonts is, they are not one, but many files. Which means, one has to download all the files. Usually, formats .woff and .woff2 are sufficient, one can drop all others (.ttf, .svg, ...).

    Experts also tweak their CSS to embed used font glyphs, and only the used ones. This eliminates downloading FontAwesome altogether. Requires tools like PostCSS, post-url, NPM, ... well, for experts.

  11. 16 minutes ago, Briljander said:

    But your tone and answers seems pretty bitter.

    Actually, I enjoy hacking away on this software more than ever. Often deep into the night, because I somehow can't stop.

    BTW., it's not "my" Merchant's Edition, it's "ours". We just don't make a big issue about ownership, bureaucracy. Enjoying improving this software and enjoying life is much more fun. It gets a tiny bit better almost every day, this sums up.

    • Like 3
  12. To get the same behavior on a desktop, make the window less than 400px wide. That's not a solution, of course, but helps debugging.

    Clicking on the image to get a large view doesn't work either, at no window width.

    Is there a module 'easyzoom' ? I'd disable/uninstall it and try again.

  13. On 2/9/2021 at 3:50 PM, Havouza said:

    Class 'ZipArchive' not found

    Did you delete cache/class_index.php? One can always do this, it'll get rebuilt automatically.

  14. 2 hours ago, Havouza said:

    The second one is a clone of the first

    Let me guess: you cloned this shop not by installing both, but by copying the shop directory on the command line. Doing it this way makes all copied files owned by the command line user. Which is usually a different one than the web server user.

    To make sure, look at the details of some files in either installation. That's 'ls -l' on the command line.

    To fix this, one can either fix ownership using 'sudo chown -R <server user> <shop directory>' or install the shop both times properly.

  15. Useful steps in such a situation:

    • back office -> Advanced Parameters -> Performance, enable 'Disable non thirty bees modules' and 'Disable all overrides'.
    • If the problem persists, file a bug on Github.
    • If it doesn't persist, it's a module bug.
    • In case it's a module bug, turn the override switch back on and try again. If it appears then, it's a bug in an override coming with one of the modules.
    • ... and so on, until the culprit is found.
×
×
  • Create New...