Jump to content

bernhard

Members
  • Posts

    6,659
  • Joined

  • Last visited

  • Days Won

    366

Everything posted by bernhard

  1. Yeah! Really useful feature. Has been a quite long way to get it ๐Ÿ™‚ See https://processwire.com/talk/topic/27528-weekly-update-โ€“ 2-september-2022/ for all available options. Even the link was quite hard to find, so no wonder not many know about it...
  2. Pure gold! ๐Ÿ˜Ž
  3. <?php class EventActivityPage { /** * Gets hero image or fallback hero image if one does not exist for this activity */ public function heroImage(): Pageimage { return $this->getFormatted('hero_image.first') ?: $this->eventPage()->getFormatted('activity_fallback_hero_image.first'); } } Using getFormatted + .first you can force the return type so no matter what setting or output formatting is applied your method will return the correct value.
  4. Awesome! Thank you! And shame on me - I have not yet given the module a star on github ๐Ÿ˜ฎ
  5. Hey @FireWire thx a lot for your work on this. Unfortunately it still behaves the same: HA! I found the issue when making the screenshot for this post: I realised the note below the field! Didn't see this before and expected the textarea to take one string per line! --> now it works as expected! Any reason why you did not make this textarea behave like "one word per line"? That would be a lot easier to read and a lot easier to type imho ๐Ÿ™‚
  6. Does that mean you do not get this error in other browsers? So it's FireFox only?
  7. I think being on windows is one more reason to look into ddev. You can use it in a WSL linux machine, so your local environment will be linux and your production environment will be as well (most likely). That avoids lot's of issues that you have to deal with when using laragon. For example I've been working on a PDF project and on linux it's easy to just use "poppler-utils" to create JPG from PDF. Not possible with laragon like this, so you need to either hack things together on your production environment or you have to find a way to get it working on your local dev, which means additional work and additional headache. Another example is my current multisite project. In DDEV all you have to do is add "additional_hostnames" to your config and you can access all your local sites via foo.ddev.site and bar.ddev.site and baz.ddev.site and all will be routed to the same ddev/pw project ๐Ÿš€ I don't think that these two things would be possible with laragon. But I don't know. Oh and switching php versions is as simple as changing the config and running "ddev restart". In laragon it was also not that hard, but I can remember it was also not that easy...
  8. +1 Please do that. It will help you as a developer and it will help us making exploring your module (and maybe contributing) easier. 2x speed = 12min investment ๐Ÿ˜‰ If you use VSCode Github is integrated into it very well, so you won't even need the commandline. I highly recommend installing this extension: https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph It has shed so much light on things that I didn't understand before and after using this extension it clicked and things just made sense.
  9. Would be helpful for sure! I'd need it for my current project... And likely also the next. And the one after.
  10. Yes, that's intended. It tries to better distinguish page statuses for people that might not see well where different colors alone are not enough. And it tries to do that without the linethrough which makes it less readable as well.
  11. Just added support for product discounts to v1.1.0 ๐Ÿ˜Ž
  12. I'm proud to announce that RockCommerce does now officially supports product discounts ๐Ÿค˜๐Ÿ˜Ž๐Ÿ’ช Frontend Example: Backend Example: With this update, you can: Create time-limited product discounts with just a few clicks Show attractive discount labels on your product pages Display savings clearly in the shopping cart Manage everything through ProcessWire's familiar interface Get started today and give your customers the deals they deserve! ๐Ÿ˜‰ Docs: https://www.baumrock.com/en/processwire/modules/rockcommerce/docs/discounts/ Any questions? Drop them below! ๐Ÿ‘‡
  13. Hey @LMD I can not reproduce the issue. This is what I did: created a new ddev project installed RockShell (to quickly install pw via commandline) installed pw (current dev, blank profile) clicked "install" for all modules (bottom - up) Enabled product variations and it correctly showed the warning: But I have improved that so that it shows the checkbox only if RockGrid is installed: Once RockGrid was installed i checked the box and got this (success, no errors): This is what I get when I view Setup > RockGrid: To add the Variations GUI to your products do this (I'll add this to the docs later): Add fields "rockcommerce_net" and "rockcommerce_variations" to your product template Then edit one of your products and you should see something like this: Then click on "+ new variation" at the top left corner of your variations repeater item: Save that and maybe reload the page to see the variations in the grid. Then you can select variations as mentioned above: Each variation has a price. You can either use "0" as base price and enter the variation price for each variation (eg, 10โ‚ฌ / 20โ‚ฌ / 30โ‚ฌ) or sometimes you might want to set a total price. To save you or your clients from the hassle of calculating all price differences there is the "total" column that you can use and RockCommerce will calculate the difference for you: I can't recommend DDEV enough. I've been using Laragon for several years, but trust me, DDEV is so much better so it's really worth trying it out. Installation might be a little harder than with Laragon, but once installed DDEV just runs and runs and it has so many great features that Laragon does not have. And last but not least it makes it easier for me to help you with any issues because we have the same environment. Let me know how it goes.
  14. Oh and if you need a quote for the website, this might be a starting point:
  15. this was my prompt for the AI (source = me) This is the output of the AI that I got from my prompt. ๐Ÿ™‚ I think I used claude 3.5 sonnet but I'm not 100% sure.
  16. Hey @LMD thx for your question and of course thx for your purchase ๐Ÿ™‚ Great! ๐Ÿ™‚ Yeah sorry for that! But I'm always around to help as good as I can ๐Ÿ™‚ If prices only change based on shoe size it does not sound complex ๐Ÿ™‚ If prices change depending on colour and shoe size than it's a different story ๐Ÿ™ˆ Adding variations from the backend should be straightforward! You click on "new variation" in the shop tab of your product and get something like this: Then you hit save and you get back to the shop tab. There you can filter all existing variations, so you can type "size" and get this: Then you enter the prices for each size and - important - select all variations that should be displayed on the frontend: To select/deselect variations you have two options: Select all or select a single item. When clicking on the "variation" column you select all, when clicking on the "option" column you can select individual rows: The selected variations should then show up on your frontend: Does that help? Not sure where exactly you are struggling ๐Ÿ˜‰
  17. No, spot on! Thx that was very helpful ๐Ÿ™‚
  18. Hey @teppo and @psy thx for your answers! Looks like I was not precise enough with my question. The import part is not the question - I've imported 1000+ pages for this project already from the old website using RockShell and a custom script. With RockShell it's super easy to create reusable scripts (as you have correctly mentioned as important need @teppo) and it's super easy to watch what's happening and to abort in case anything unwanted happens (just hit CTRL+C). The question is more related to e-commerce and different vendors providing different data. What we got was a total mess. From CSV with thousands of entries in one huge table to excel files with related keys like an excel copy of a relational database. Think of it as a mysql dump of a ProcessWire installation... but without ProcessWire transforming it into something useful and understandable ๐Ÿ˜… My guess is that the only way is to understand the data we get from the vendors and then try to transform it into the data format that RockCommerce needs. Sounds like a pain. But manually adding 15k products does not sound better either ๐Ÿ˜„ So I also thought about scraping the data from their websites... but I'm not sure if that was any easier than reading their messy CSVs... Anybody has some experience with that? Also happy with "no idea/not easy/not possible" answers to help me back what I told my client ^^ PS: A RockShell command to import from CSV is as simple as that if anybody has a similar need: <?php namespace Site; use ProcessWire\Page; use RockShell\Command; use function ProcessWire\wire; class ImportProducts extends Command { public function handle() { while ($row = wire()->files->getCSV('/path/to/data.csv')) { // create page and save it $p = new Page(); // ... echo "Saved page {$p->path}"; } return self::SUCCESS; } } You can then run that command via "rockshell import:products" and watch it do its work ๐Ÿ™‚ So the ProcessWire part is easy.......
  19. So you built a webshop for a client... The client is selling products from other retailers... Now they want to import thousands of products into their webshop... How would you approach this? ๐Ÿ™ˆ๐Ÿคฏ
  20. Want to share the name of the extension? ๐Ÿ™‚
  21. For me ProcessWire combines the best of two worlds: The world of CMS/Blogging Platforms like WordPress and the world of Frameworks like Laravel or Symfony. I think edit: I had to let AI write my brain-dump in a more professional way and I could not have said it better: My quick and dirty prompt (don't blame me for grammar etc ๐Ÿ˜‰ ) I know we can debate about AI in general but I think it is very interesting to get this "birds eye view" of aggregated data as it somewhat shows the current information that lies around the web at the moment: I also think that ProcessWire is a perfect alternative for systems like Typo3 and I bet that there are many many developers out there that would be super happy if they knew that ProcessWire existed! See this showcase for example. I think this says a lot! More people need to know about ProcessWire, especially the folks that are not using (or do not want to use) WordPress. All the people that expect building a website to be a "click-click install this plugin that plugin" experience are not our target audience. But all the people looking for alternatives and being unhappy with typo3/drupal/etc. are! ProcessWire lacks a good page building concept. Don't want to say more about that as it would fill a whole other topic ๐Ÿ™‚ Many need a second look. Me 10 years ago included! At first sight I totally underestimated the power and beauty of this system. I hope the new website can help to change that ๐Ÿ™‚ https://w3techs.com/technologies/details/cm-typo3 High traffic site? Loads of content? Why is nobody thinking of ProcessWire in that case? And here is what AI thinks about Typo3 vs. PW: Really excited to see the new design and website ๐Ÿคฉ Good luck and all the best ๐Ÿš€ Thx for building and sharing such a great masterpiece with us!
  22. Hey @FireWire great thank you! My project is taking shape and we will start adding content soon, so it's a bit annoying if the translation service breaks our site snippets ๐Ÿ™‚ Great to know that you can reproduce and a fix is coming ๐Ÿ™‚ All the best for your event!
ร—
ร—
  • Create New...