Magento Tutorial For Beginners, Full Course (2024)

  Рет қаралды 24,753

Mark Shust

Mark Shust

Күн бұрын

Have you ever thought about learning Magento development, or becoming an M2 programmer? Here's a quick course, or rather, a "Jumpstart", to get your feet wet with Magento code.
Enjoy this free 17 lesson course!
CHAPTERS
=============
00:00 - Intro
01:20 - Magento's software architecture
05:06 - Magento project & directory structure
11:21 - Common Magento development tools
14:46 - Create your first Magento module
20:16 - Magento's MVC & routing mechanism
23:13 - Create a Magento controller
27:37 - Dependency injection and Object Manager
32:11 - Constructor Property Promotion
34:02 - Interfaces in Magento 2
38:04 - Class preferences and service contracts
42:10 - Return a standard page response
45:00 - Create a template file
47:21 - Understand layout XML files
49:15 - Display a template in a block
52:09 - String translation
57:06 - Understand View Models
59:15 - Implement a View Model in a layout block
RESOURCES
=============
😄 Magento 2 Coding Jumpstart (m.academy/jumpstart/)
- Leave comments, get tech-friendly closed captions (English, Spanish, Portuguese, French & German), and more.
🚀 Magento 2 Coding Kickstart (m.academy/kickstart/)
- Dig way deeper into Magento 2 programming with this in-depth 80+ lesson course.
🎓 M.academy University (m.academy/university/)
- Unrestricted access to all premium Magento courses & lessons.
FOLLOW ME
=============
/ markshust
/ markshust
/ markshust
You can also follow all of my open source contributions on GitHub at github.com/markshust
#magento #magento2 #opensource

Пікірлер: 72
@MarkShust
@MarkShust 6 ай бұрын
You can also enroll in the course at M.academy to track course progress and leave comments on lessons at m.academy/courses/magento-2-coding-jumpstart/
@romankiashko5435
@romankiashko5435 6 ай бұрын
Perfect as always!😎
@MarkShust
@MarkShust 6 ай бұрын
Thanks Roman, always appreciate your support ❤
@aurelioflores4571
@aurelioflores4571 5 ай бұрын
Excellent content, enjoyed learning the course,😃 thank you
@MarkShust
@MarkShust 5 ай бұрын
Thank you, appreciate it!
@ReemRamzi
@ReemRamzi 4 ай бұрын
Perfect and really helpful tutorial, it helps me a lot. thank you.
@MarkShust
@MarkShust 4 ай бұрын
You're very welcome! 🤗
@BMikel
@BMikel 6 ай бұрын
You are the best magento educator. Please post Magento JavaScript tutorial on youtube.
@MarkShust
@MarkShust 6 ай бұрын
Appreciate it -- I'll see what I can do! 👍
@programmingholic
@programmingholic 6 ай бұрын
That was epic Mark, Please Allow us to Learn from you , Please post Magento full course on KZfaq 🙏🙏. as Thousands of Students cann't afford.
@MarkShust
@MarkShust 6 ай бұрын
Hi there, this is my livelihood so I cannot afford to give my courses away. I'm sure you will be very happy with any course you enroll in at M.academy!
@haroonsulahria
@haroonsulahria 6 ай бұрын
Appreciated Efforts🎉
@MarkShust
@MarkShust 6 ай бұрын
Thanks a lot 😊
@nishanthanr605
@nishanthanr605 2 ай бұрын
Quality of content is awsome ❤ best Magento tutorial in the universe
@MarkShust
@MarkShust 2 ай бұрын
Thanks so much Nishan! 🥰
@jeandamaceno5247
@jeandamaceno5247 5 ай бұрын
Thanks Again!
@MarkShust
@MarkShust 5 ай бұрын
Sure thing 👍
@tem_vremenem_v_kanade
@tem_vremenem_v_kanade 4 ай бұрын
Excellent tutorial
@MarkShust
@MarkShust 4 ай бұрын
Thanks Tem!
@pradumanpandey6065
@pradumanpandey6065 6 ай бұрын
Awesome Video 🎉🎉
@MarkShust
@MarkShust 5 ай бұрын
Thanks 😁
@amayaelessar
@amayaelessar Ай бұрын
Holy smoly it seems SOOO overwelming in the start of the video, I been used to work with shopify, that is much more intuitiv. But now due to a new job, I am going to learn Magenta 2, as they use that system, so I am prepping as MUCH I can before I start officially working. So I am SUPER thankful for this video - I subscribed immidiatly, and till binge watch what ever i can find on your channel that is relevant for my understanding of Magento 2
@MarkShust
@MarkShust Ай бұрын
Thanks for the kind words Amaya! This is truly meant as a quick "jumpstart" just to get the engine running. I highly recommend checking out my school at M.academy, specifically the University, which will get you to hit the ground running really, really quickly and also comes with an AI tutor bot that is really revolutionary in helping to understand these topics. Glad you like it, and I hope to have many more videos out on KZfaq soon!
@vijayboricha87
@vijayboricha87 6 ай бұрын
Great Video @mark
@MarkShust
@MarkShust 6 ай бұрын
Thanks Vijay 🙏
@timmytainment
@timmytainment 19 сағат бұрын
Wow!
@user-gr1iq9eb2g
@user-gr1iq9eb2g 6 ай бұрын
Yayyyyy🎉
@MarkShust
@MarkShust 6 ай бұрын
Glad you like it! 🙌
@nitishkesarwani342
@nitishkesarwani342 6 ай бұрын
Super content ❤
@MarkShust
@MarkShust 6 ай бұрын
Thanks Nitish!
@nitishkesarwani342
@nitishkesarwani342 6 ай бұрын
​@@MarkShustI'm looking for certification, what will the best approach
@nitishkesarwani342
@nitishkesarwani342 6 ай бұрын
@@MarkShust happy birthday 🎂
@MarkShust
@MarkShust 6 ай бұрын
@@nitishkesarwani342 not for a few more days, but I'll take it! Thanks! 😁
@darrenplayer2091
@darrenplayer2091 6 ай бұрын
Great video Mark, I'd be really interested in learning about Magento database tables structure schema. Also best practice deployment between staging and production environments whilst maintaining minimum downtime and subsequently synchronizing sales data during any downtime. Whilst the production server is still live during updates and testing. Especially when rolling out Magento core updates which require server infrastructure and dependencies changes. This seems to be an unspoken area of Magento 2 Have any info/ tutorials guides you can point me to? Thanks
@MarkShust
@MarkShust 6 ай бұрын
Hey Darren, thanks! My Magento 2 Coding Kickstart course (m.academy/kickstart/) goes into the database layer in extreme detail. I've had a lot of requests for Magento deployment strategies, so that is pretty high up in my queue of courses to work on (and blue/green deployments, which is similar to what you are talking about!). I don't have much info on that topic, but Jisse has a nice blog about it www.yireo.com/blog/2023-05-18-magento-blue-green-deployment. You're right, it's not talked about much but I think it can be pretty powerful.
@darrenplayer2091
@darrenplayer2091 6 ай бұрын
@@MarkShust Thanks Mark I'll take a look at those links. Look forward to the deployment strategies. Keep up the good work👍
@aurelioflores4571
@aurelioflores4571 5 ай бұрын
Hi Mark, thank you for your attention, I have a question, I have often seen in the Magento documentation the following command specifically what it performs: composer --no-ansi --no-interaction install --no-progress --prefer-dist --optimize-autoloader I have seen that after localization they recommend that command, best regards
@MarkShust
@MarkShust 5 ай бұрын
Hey Aurelio, If you remove all of the flags/arguments of this command, it's basically just "composer install". The "no-ansi no-interaction" tells composer to not prompt the user for anything, which basically runs a headless composer install command which doesn't require your interaction to proceed. The "no-progress" flag doesn't display the progress output of running this command. The "prefer-dist" flag means that it prefers a distribution (tarball) of a package rather than retrieving it from source code, and the "optimize-autoloader" builds a file->class mapping which speeds up loads on production. Note that you probably don't want to run any of these flags in developer mode, as "composer install" is just fine and is the preferred method in development. So these flags are specific to production and may vary from environment to environment. Cheers, -M
@aurelioflores4571
@aurelioflores4571 5 ай бұрын
@@MarkShustthank you so much for your reply. 😃
@MarkShust
@MarkShust 5 ай бұрын
@@aurelioflores4571 sure thing!
@only_for_fun1234r
@only_for_fun1234r 6 ай бұрын
hii, is there any way to connect my firebase social app with magento with the help of custom module ? i want to connect to firebase app and in firebase documentation , i found out some javascript code , but when i add js in my module , its actually not able to read the script and showing firebase is nnot defined ...so is there any way to connect with firebase through js??plz help.....
@MarkShust
@MarkShust 6 ай бұрын
You’ll need to be familiar with how RequireJS works and how to potentially reformat files into AMD format. This goes beyond a simple post, but I cover this all in my JS Fundamentals course at m.academy/courses/javascript-development-fundamentals-magento-2/
@aurelioflores4571
@aurelioflores4571 4 ай бұрын
Hi Mark, I have another question, What do you consider the best practice to install an extension in Adobe Commerce on cloud; push or upload both composer.json and composer.lock files or just the composer.lock file from my local environment. Thank you for your attention
@MarkShust
@MarkShust 3 ай бұрын
Adobe Commerce or Magento OS, you should always commit both the composer.json and composer.lock files. Composer.json keeps track of the package versions, and the lock file "pegs" to an exact installed package/version, which ensures consistency between environments.
@aurelioflores4571
@aurelioflores4571 3 ай бұрын
@@MarkShust thank so much, Sr.
@jacktennent171
@jacktennent171 6 ай бұрын
Hey Mark, great video. Ive got an interview with a tech company which uses Magento and is a certified developer as well. What would you recommend i learn first just to show the company that I have a basic knowledge of Magento?
@MarkShust
@MarkShust 6 ай бұрын
Hi Jack, I think this video is a great start! If you wanted to dig deeper into the topics covered within it or really want to expand your Magento skills, I'd recommend the M.academy University (m.academy/university/). It includes access to the Magento 2 Coding Kickstart course, which is a great way to really get going with Magento and cover all of the base fundamentals that you need to know for the interview. I think this will give you up to speed really quickly. Good luck! -M
@jacktennent171
@jacktennent171 6 ай бұрын
@@MarkShust Thanks Mark, really appreciate the advice. I'll take a look into it :)
@florinmtsc
@florinmtsc 2 ай бұрын
How is docker-magento when compared to ece-tools provided by adobe commerce?
@MarkShust
@MarkShust 2 ай бұрын
It's been a long while since I've tried to use ece-tools, but generally, docker-magento provides you with more flexibility to do exactly what you want, and the underpinnings of the Docker images and config are vary transparent and customizable. I don't think ece-tools match up (unless something changed recently).
@tejasshah79
@tejasshah79 2 ай бұрын
Hi @mark, Awesome tutorial thanks for posting such a grt content.. I have one doubt regarding how to setup magento development workflow like I do development locally and push code to dev, stage and then prod environments, In couldnt find any article or document around this hence requesting can you help ?
@MarkShust
@MarkShust 2 ай бұрын
Hi Tejas, thanks for the kind words! I've heard this request a ton, so I'll see what I can do. The basics come down to writing a solid script that executes on each deploy/push, and then have it kicked off on that push. You can accomplish this with something like BitBucket Pipelines or GitHub Actions.
@tejasshah79
@tejasshah79 2 ай бұрын
So @mark, i come from drupal background and in drupal we have never push vendor directory to the git repo, but when i see Magento i see they have vendor directory also pushed to github making the repo too heavy in terms of package size, secondly drupal has a config management system which help export all the configs entities into yml file and this ensure all the environment of a specific drupal site are similar so do we have something similar in magento or everytime we relia on db imports ...
@MarkShust
@MarkShust 2 ай бұрын
@@tejasshah79 Hey Tej, I come from Drupal too! The vendor directory should never be committed to version control under any circumstances and for any project, including Magento. You can confirm this because it is listed in the .gitignore file of the repo: github.com/magento/magento2/blob/2.4-develop/.gitignore#L70. Magento also has an EXTREMELY comprehensive and fully-featured config/environment setup that is like Drupal's (just more powerful). A little on that at m.academy/article/magento-2-configuration-settings-fallback-process/
@tejasshah79
@tejasshah79 2 ай бұрын
@@MarkShust Ohh Awesome ill read through it , thanks for directing to that document I was looking for it :)
@gustiagungutama5441
@gustiagungutama5441 2 ай бұрын
what code editor do you use for this?
@MarkShust
@MarkShust 2 ай бұрын
I use PhpStorm, and have been doing so for many years. Highly recommend it 👍
@timxu3866
@timxu3866 4 ай бұрын
Hi Mark, I came from China, and have a development team to work on magento project for 5 years Do you know where I can receive magento development projects?
@MarkShust
@MarkShust 4 ай бұрын
Sorry, I don't as I've been out of Magento contracting/consulting work for some time. Good luck!
@timxu3866
@timxu3866 4 ай бұрын
@@MarkShust many thanks for the reply, keep in touch, have a good weekend!
@tempura7225
@tempura7225 2 ай бұрын
where can I download magento open source??
@MarkShust
@MarkShust Ай бұрын
The standard way to download Magento these days is with Composer. Info on how to do that is at courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/8974570
@domjanzsoo
@domjanzsoo 2 ай бұрын
It gives some useful basic idea of the infrastructure of the framework, but around 40min of it explains generic PHP concepts.
@MarkShust
@MarkShust 2 ай бұрын
Tried to make it very entry-level, but do have a PHP 101 course available that goes into the details of PHP! m.academy/courses/php-101/
@user-pz7pm7tc5e
@user-pz7pm7tc5e 6 ай бұрын
Hello, could you make a tutorial in Spanish, thank you
@MarkShust
@MarkShust 6 ай бұрын
Great idea. The AI tools out there should be able to do this very, very soon... I'm keeping a beat on it. When that happens, I'll most likely create a Spanish-only channel, as 90%+ of my audience on this KZfaq channel is English. Stay tuned.
@ganeshmaharna2909
@ganeshmaharna2909 5 ай бұрын
How can you say this a tutoril you havent as you havent teach the installation and setup . How a beginner can understand what you are saying
@MarkShust
@MarkShust 5 ай бұрын
You definitely need a running instance of Magento for development first. I have a free course for that available at m.academy/courses/set-up-magento-2-development-environment-docker/
@KerryEmerson
@KerryEmerson 3 ай бұрын
Did he just pronounce 'ETC' as Etsy? Oh my lord.
@MarkShust
@MarkShust 3 ай бұрын
Flows off the tongue better 😛
@howardanddennis1776
@howardanddennis1776 Ай бұрын
Thays how it is called in tech
@KerryEmerson
@KerryEmerson Ай бұрын
@@howardanddennis1776 Nope
What's New In Magento 2.4.6
10:35
Mark Shust
Рет қаралды 10 М.
Magento 1 Beginner Tutorials - 01 What is Magento?
9:30
Digital Startup
Рет қаралды 249 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 17 МЛН
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 33 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 67 МЛН
Angular Tutorial for Beginners: Learn Angular & TypeScript
2:02:42
Programming with Mosh
Рет қаралды 4,3 МЛН
Dependency Injection Explained in 7 Minutes
7:11
ArjanCodes
Рет қаралды 54 М.
ChatGPT Made a Magento 2 Module YOU GOTTA SEE
9:39
Mark Shust
Рет қаралды 7 М.
Spring Boot Tutorials | Full Course
2:48:08
Telusko
Рет қаралды 3,1 МЛН
Can You REALLY Install Magento 2 in 5 Minutes?
7:54
Mark Shust
Рет қаралды 25 М.
What is NPM, and why do we need it? | Tutorial for beginners
14:27
Coder Coder
Рет қаралды 305 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 17 МЛН