This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//CART SHIPMENT CALCULATE TO HIT CEP | |
case 'cart_shipment': | |
$CartTotal = 0; | |
$HeightTotal = 0; | |
$WidthTotal = 0; | |
$DepthTotal = 0; | |
$WeightTotal = 0; | |
$AmountTotal = 0; | |
$dimensoes = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Adicione as constantes logo abaixo na seção [global] do config.ini | |
* Em SKY_TEXT_START você pode informar um texto curto para ser colocado antes da descrição dos seus produtos, por exemplo, | |
* o nome da sua loja ou uma mensagem de boas vindas aos clientes. Não coloque informações de contato, pois o mercado livre irá barrar | |
* Em SKY_TEXT_END adicione um texto curto para ser colocado ao final da descrição dos seus produtos, por exemplo, "Agradecemos a preferencia!". | |
*/ | |
SKY_TEXT_START = | |
SKY_TEXT_END = | |
// Adicione as constantes logo abaixo na seção [database] do config.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ===================================================== | |
* Opcional: Box de exibição dos ultimos pedidos Mercado Livre para ser exibido na dashboard do painel. | |
* ===================================================== | |
*/ | |
<div class="box box50"> | |
<div class="panel_header alert"> | |
<h2 class="icon-cart">ÚLTIMOS PEDIDOS MERCADO LIVRE:</h2> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ============================================================ | |
* Insira as funções abaixo ao final do seu arquivo '_app/Skyhub.load.php' | |
* ============================================================ | |
*/ | |
function getMlOrderStatus($status){ | |
$StatusIds = [ | |
'paid' => [ | |
'name' => 'pago', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## WC HTTPS Redirect | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteCond %{HTTPS} off | |
RewriteCond %{REQUEST_URI} !^\/uploads\/.*?$ | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box box50"> | |
<div class="panel_header alert"> | |
<h2 class="icon-cart">ÚLTIMOS PEDIDOS MARKETPLACE:</h2> | |
</div> | |
<div class="panel dashboard_orders"> | |
<?php | |
$Read->ExeRead(DB_SKYHUB_ORDERS, "WHERE id IS NOT NULL ORDER BY id DESC LIMIT 4"); | |
if (!$Read->getResult()): | |
echo Erro("<span class='icon-info al_center'>Ainda não existem pedidos realizados através do Marketplace!</span>", E_USER_NOTICE); | |
else: |