Skip to content

Instantly share code, notes, and snippets.

@rafhaelhp
Last active January 1, 2020 12:10
Show Gist options
  • Save rafhaelhp/00e97e7041da590e21b71aff07c83c2c to your computer and use it in GitHub Desktop.
Save rafhaelhp/00e97e7041da590e21b71aff07c83c2c to your computer and use it in GitHub Desktop.
BOX DE ALERTA DE CONTA DESCONECTADA MERCADO LIVRE
/*
* BOX DE ALERTA DE CONTA DESCONECTADA MERCADO LIVRE.
* Insira esse trecho no arquivo admin/dashboard.php logo após a abertura da tag '<div class="dashboard_fix">'
*/
if (!is_null(ML_APP_ID) && !empty(ML_APP_ID) && !isset(SessionData::getInfo()['ml_access_token']) && $getViewInput != "mercadolivre/contas"):
echo "<div>";
echo Erro('<span class="al_center"><b class="icon-warning">ATENÇÃO:</b> Sua conta do Mercado Livre esta desconectada de sua loja virtual, <a href="dashboard.php?wc=mercadolivre/contas" title="Fazer login no Mercado Livre">clique aqui</a> para logar novamente!</span>', E_USER_ERROR);
echo "</div>";
endif;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment