2026 Community Survey results are here! See how the Craft CMS community works. results are live!

Building a Craft CMS Drop-down Field Type with Craft Commerce Data

We build a Craft field type from Craft Commerce data.

In the last cus­tom field type we did, we pop­u­lat­ed a Drop­down with sta­t­ic from an array of world lan­guages right in the method.

For this cus­tom field, we’ll do every­thing about the same as before, except this time, we’ll pop­u­late the drop­down with data from a Craft Com­merce service.

Let’s build this one a bit more quick­ly since we already know the basics of how it should work.

Transcript

Premium

Follow along with the full transcript

Search every word, click any line to jump to that moment, and read along as you watch — a CraftQuest Premium feature.

Sign up for Premium
Craft Version
Craft 4
Instructor
Level
Intermediate
Date Published
May 12, 2021