Video Lesson: Retrieve product data with a ViewModel in Magento

Retrieve product data with a ViewModel in Magento

Enroll to watch this lesson

Cyber Monday The whole University for $299/yr.

Retrieve product data with a ViewModel in Magento

Learn how to retrieve product data through a ViewModel by processing identifiers and exposing the results for presentation.


Lesson Content

Create a setter function

Now, we could write all of our logic within the constructor, but I like to keep my code neat and tidy, so let’s go ahead and create a new private function dedicated ...

Premium content

Enroll to unlock the full content and all course materials.

Cyber Monday

The whole University for $299/yr.

Get the deal →
Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Cyber Monday

The whole University for $299/yr.

Every course, Maggie & Campus. The lowest price ever.

Get the deal →
Comments

Join the discussion!

Notes

Keep track of what you learn!