I have setup 2 Store Views i want to call different attributes based on store view on category and product detail pages.
Screenshot 1 https://nimb.ws/ljVb0W
if store id == 1
getResource()->getAttribute('fit-option1'); if ($attributeName) { $labelValue = $attributeName->getFrontend()->getValue($_product); } echo $labelValue; // END DISPLAY ATTRIBUTE ?>else if store id == 2
getResource()->getAttribute('fit-option2'); if ($attributeName) { $labelValue = $attributeName->getFrontend()->getValue($_product); } echo $labelValue; // END DISPLAY ATTRIBUTE ?>