Comments (4)
Hi @Zales0123, and thanks for your review!
Regarding PHP 7.4 and Sylius 1.7, when we start a new project we always use the latest versions of the dependencies to reduce the maintenance burden and increase the code quality. As you can see in @jacquesbh's proposal, not using the latest features makes the code less reliable, less readable and harder to maintain. We prefer pushing users to upgrade to use a new project like this one than supporting old versions of PHP (and other dependencies).
- I'm not sure of what you mean, the interfaces are mentioned section 6 ("update the native entities")
- It looks like a timezone issue. It should be handled properly here https://github.com/coopTilleuls/CoopTilleulsSyliusClickNCollectPlugin/blob/master/src/Form/Extension/ShipmentTypeExtension.php#L72 (at least it works with my config), but it looks like there still is a problem. Can you provide me your browser's timezone, and the timezone configured in php.ini? Any help to debug this would be very welcome. Because of browsers limitations, the hour should be using GMT client-side, and converted to the good timezone server-side (by the snippet I linked to).
- Can you give a bit more information about this problem?
Best regards!
from cooptilleulssyliusclickncollectplugin.
We've done the Sylius 1.6 compatibility (and PHP ~7.2), if you want 💪.
We've also updated the recipe to be more precise and the tests CI is totally taking care of that.
We haven't updated the README yet.
The hour issue is just about Timezones I think.
We've had a lot of issues with FullCalendar in a project and it's really a problem.
Especially since Sylius admin panel is UTC (if server is in UTC).
from cooptilleulssyliusclickncollectplugin.
Hello @dunglas, thank you for your answer!
- I had a moment of blindness, definitely, these interfaces are there 😄
- Definitely a timezone issue 👍 I think it was also a problem with my configuration (I've switched to the PHP7.4 which apparently had no timezone configured 😱), it works well right now. Maybe it could be highlighted in the installation instruction that some problems with timezones may occur in case of misconfiguration? No hard opinion in that topic, generally 👌
- I had a problem when using a custom location for Click'n'Collect (other than Paris or Lille) - it was not displayed as a reserved time block. I've just checked it out and it seems to work - so either my laptop had a worse day, or me 💃
I totally agree with the approach to use the newest possible versions of dependencies 👌 My only concern was how many people would be able to use this (with no doubts very useful) plugin, as, from my experience, it's often hard for people to switch to newer PHP versions, especially with the application that is already on the production. Again, I see no blocker in that, it's just thinking out loud for the possible issues.
Maybe it would be good to link the compatibility changes provided by @jacquesbh somewhere in the README? Something like "this plugin is based on PHP 7.4 and Sylius 1.7, if you want to use it with 7.2/1.6 check out this changes"? It would not force you to support dependencies you don't want to and still give an alternative for people that want/need to do that 🖖
Anyway - it's a good piece of code in the good moment of time. I would be happy to place it in our Sylius Store. I will probably do it today and ping you with a link :)
Thanks! 🚀
from cooptilleulssyliusclickncollectplugin.
Regarding 2, actually it can affect all Sylius installations, regardless of if this plugin is used or not. Couldn't you provide an option to set the timezone for a given channel?
👍 to add a link in the readme to @jacquesbh's version!
from cooptilleulssyliusclickncollectplugin.
Related Issues (20)
- The calendar design is not suitable when we have several possible slots in the same hour HOT 3
- checkout/select-shipping empty calendar HOT 1
- Quick question about end dates
- Selecting a picking slot is not mandatory HOT 3
- Add export button in Click N Collect Collection page
- Time slot error when selecting another shipping method HOT 2
- The slot stays booked even if the shipping method is not Click n' Collect HOT 2
- If the Rule contains more than a month old dates, no slots are displayed HOT 1
- ShippingMethodTypeExtension doesn't reference to overrided Location entity HOT 2
- Override SlotAvailable Constraint HOT 1
- Timezone issue while validating slot
- In admin the fetch of collection times fails if collection time is outside the window HOT 3
- Timezones guys… It's hell.
- Php 7.3 Support
- Add different hours for different days HOT 2
- Issue with Sylius 1.9 and doctrine/common ^3.0 HOT 1
- Please, be compatible with last Sylius install HOT 1
- add support for Symfony 6 (for all SF dependencies) HOT 1
- jakubroztocil.github.io does not exists
- bug : current rrule link is dead, use CDN instead
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cooptilleulssyliusclickncollectplugin.