Parse error: syntax error, unexpected 'endforeach' (T_ENDFOREACH), expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) in /app/app/code/BMC/Theme/view/frontend/templates/store/switcher.phtml on line 47