I have to use the Prestige theme for an upcoming Shopify project due to its feature that allows linking separate product pages as if they were variants. Given the extensive catalog of the store, automation is key to efficiently leveraging this feature.
Conditions:
a) A custom product metafield referencing to multiple products (list of products) exists
b) When a product is added to the store, it comes with all SKU values of every single variant, fully populated
c) products that I need to link together share the same initial part of the sku.
Hereâs the objective:
When adding a new product, I aim to link together all products sharing the same initial string within their SKU.
Since the theme needed the creation of a custom metafield for that purpose, the automation should use that metafield to reference (select) all products with matching initial string segments in the SKU.
Does anyone know if itâs possible to achieve this result using Flow?
This is not achievable with Flow because Products or Variants cannot be queried by SKU or by SKU substring. Iterating through all Products to try and find matches is not feasibly at the moment because conditional checks only work on complete values, not substrings.
Weâre continuing to work on building more functionality to unblock these use cases in Flow and work with teams across Shopify to provide more powerful APIs, so this may become feasible in the future.
sorry for iterating on this again, but I was just wondering if it was possible to query products by tag using flow.
So, if I were to use the reference list of products metafield, I could reference all the products that share the same tag.
Yep, that field supports Liquid but youâll need to use Liquid interpolation. Also my tickâs were a force of habit trying to do inline code. Those are not necessary.
You can also try using the Log output action in your workflow to check what the output is, then use that as a filter in the admin product list to make sure itâs working as expected.
Variant Robot can automatically link your separately listed products that are perceived as separate variants, such as individually listed colors.
The app features automatic synchronization, ensuring newly added products are linked together seamlessly.
When activating the app for the first time, you only need to define a few settings. This allows the app to understand the association between your separately listed products.