Skip to content

Added support for custom field matching on Commerce Products and Variants fields#1717

Open
jmauzyk wants to merge 1 commit intocraftcms:5.xfrom
jmauzyk:feature/commerce-fields-matches
Open

Added support for custom field matching on Commerce Products and Variants fields#1717
jmauzyk wants to merge 1 commit intocraftcms:5.xfrom
jmauzyk:feature/commerce-fields-matches

Conversation

@jmauzyk
Copy link

@jmauzyk jmauzyk commented Jan 19, 2026

Description

I created this pull request to address #902. To add a bit more context regarding our specific use case, we use a PIM to manage our product data, and import the product data into Craft using Feed Me. Currently, there is no way to match Commerce Products or Variants fields using custom fields as is possible for with other element fields like Entries. It's also not possible to match Commerce Products by default SKU.

As a result, the only way we're currently able to match Commerce elements is by ID, which requires ingesting that data from Craft back into our PIM. This PR would allow us to match products and variants using data that is already in our PIM instead, reducing additional work.

While I'm not deeply familiar with the inner workings of Feed Me, it seemed like the functionality to support this was already in place and it mostly needed field options to be populated for selection. I tested matching products using default SKU and a custom field in my local dev environment, and both worked without issue.

Thanks for your consideration!

@jmauzyk jmauzyk requested a review from angrybrad as a code owner January 19, 2026 18:43
@jmauzyk jmauzyk changed the title Added support for custom fields on Commerce Products and Variants fields Added support for custom field matching on Commerce Products and Variants fields Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant