I’ve built an integration using the Buy Button JS, and it all works great. However, I’d like each line item to link back to their (CMS) product url (like foo.com/product/23554332). I found this: https://github.com/Shopify/buy-button-js/issues/598#issuecomment-637213382 and I’ve implemented it and I can see that the custom attributes will be available in my cart, which is great.
However, how does one add custom attributes to each product?