Hi,
some of our products have metafield with values, such as 26, some 48 and so on. These numbers stand for fishing zones. If a procut has the metafield “fishing zone” with the number 26, I’am printing out ‘Atlantic Ocean’, for 48 I print out ‘Pacific Ocean’ and so on. It’s a simple case/when control flow.
But now we have some products with multiple fishing zones. They come from a ERP-system with the values 26/48 for example. How do I display multiple fishing zones now? In summary there are more than 10 fishing zones so there are a lot of combinations. My plan was to split them by the slash, but how do I put them one by one into one array? I wanted to put the single numbers into an array, say that number 26 equals ‘Atlantic Ocean’ and after I’ve put all the values into the array, I wanted to print out the array. Does this work? If yes, how?