Where can I find the selectCallback function in Pipeline?

I am following the instructions to “Adding color swatches to your products”, but I can not locate selectCallback function anywhere in my product.liquid or theme.liquid.

My client’s site is using the Pipeline theme.

Any ideas where “selectCallback” is located?

Link to the ‘color swatches discussion’: https://community.shopify.com/c/Shopify-Design/Product-pages-Add-color-swatches-to-products/m-p/616427

Hi @annabeth_chase

Have you tried the theme.js in the asset folder.

yeah but I havent found any selectCallback function there either. I’ve been looking into the different liquid files in the site but I really didn’t find it.

Hi @annabeth_chase

Is that your theme manual below?

https://help.groupthought.com/article/354-swatches-add-color-swatches-to-products

Pretty much shows you a step by step on how to do it :slightly_smiling_face: check your version

Hi!
Thank you for the help but I forgot to tell the version of the Pipeline theme that my client is using. They’re using Pipeline v4.2.
Does this tutorial only really works for v2 and v3? Or is there another tutorial for newer versions?

Hi @annabeth_chase

As per the picture below they say there is one for newer versions, search the website or email the developers asking where the tutorial is

Hi @annabeth_chase

https://help.groupthought.com/article/429-how-to-use-shopifys-swatches-in-pipeline-4

Yeah, I already found that page and tried it with the site and it works! Thanks a ton for helping! You have no idea how much I’ve been working on this. I’m still quite new to Shopify haha