Some points.
Part 2 : add serverVersion to DATABASE_URL in Changing the Environment Variable step make:controller ProductController => HomeController
Part 3 : add step for bin/console doctrine:database:create before migration
I'm not sure if float is the correct type for the price. Maybe store price with cents in an integer ?
Part 4 : it's relation, not relations (in CLI make:entity)
Part 10 : replace EntityManager by EntityManagerInterface in RemoveExpiredCartsCommand
With user-linked cart we wouldn't need an "expired" cart system :D
I didn't make a user-linked cart because I didn't want to make the tutorial complicated. We would have managed the cart on different devices based on a context and defined a cart flow for anonymous and logged in users.
Bonjour quentin et félicitation pour ce tuto qui m'a beaucoup aidé pour cette partie difficile de la gestion d'un panier sur un site de e-commerce...Je m'adresse à toi en français si tu préfères je peux le faire en anglais....Je ne vais pas m'étaler sur cette réponse mais je ne sais pas comment te joindre et j'aimerais pouvir discuter avec toi de ton code car je suis en reconversion pro devweb et pour mon projet de soutenance il y a des parties qui ne fonctionnent pas et je n'ai pas assez de connaissances malgré mes recherches pour résoudre mes problèmes seul....Peux-tu m'aider?
Je te remercie par avance de ta réponse
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi, good work.
Some points.
Part 2 : add serverVersion to
DATABASE_URL
in Changing the Environment Variable stepmake:controller ProductController
=>HomeController
Part 3 : add step for
bin/console doctrine:database:create
before migrationI'm not sure if
float
is the correct type for the price. Maybe store price with cents in an integer ?Part 4 : it's relation, not relations (in CLI make:entity)
Part 10 : replace
EntityManager
byEntityManagerInterface
in RemoveExpiredCartsCommandWith user-linked cart we wouldn't need an "expired" cart system :D
Thanks
Thanks for your feedback Steven!
I fixed them! The database creation has been added in part 2: dev.to/qferrer/getting-started-bui...
Regarding the data type for the price, you're probably right. Sylius use the integer type for the price column in the database: github.com/Sylius/Sylius/blob/mast.... But, Prestashop uses the decimal type: github.com/pal/prestashop/blob/0c5....
I didn't make a user-linked cart because I didn't want to make the tutorial complicated. We would have managed the cart on different devices based on a context and defined a cart flow for anonymous and logged in users.
Thanks again!
Bonjour quentin et félicitation pour ce tuto qui m'a beaucoup aidé pour cette partie difficile de la gestion d'un panier sur un site de e-commerce...Je m'adresse à toi en français si tu préfères je peux le faire en anglais....Je ne vais pas m'étaler sur cette réponse mais je ne sais pas comment te joindre et j'aimerais pouvir discuter avec toi de ton code car je suis en reconversion pro devweb et pour mon projet de soutenance il y a des parties qui ne fonctionnent pas et je n'ai pas assez de connaissances malgré mes recherches pour résoudre mes problèmes seul....Peux-tu m'aider?
Je te remercie par avance de ta réponse