Thanks that solution would work but my products are entering via a API, i have managed to do it using an if statement a linked to my SKU codes. but this option works if the producst are added via shopify store thanks for your help
is there a way to display the locations of your products on he product page. For example i have 4 locations and 4 shops add there products and add there location to the one store, but i want to show on the product page