Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Segue o código da região com problema:
global.lang.php
<?php
$_['text_menu_inside'] = 'Dentro de';
$_['text_menu_brands'] = 'Marcas';
$_['text_menu_home'] = 'Página inicial';
$_['text_menu_information'] = 'Informações';
$_['text_contact_us'] = 'Contate-nos';
$_['text_login'] = 'Login';
$_['text_compare'] = 'Compare';
$_['text_wishlist'] = 'Favoritos';
$_['text_grid'] = 'Grade';
$_['text_list'] = 'Lista';
$_['text_sort_by'] = 'Sortiado por';
$_['text_show'] = 'Mostrar';
$_['text_images'] = 'Imagens';
$_['text_success'] = 'Successo';
$_['text_failure'] = 'Failhado';
$_['text_continue'] = 'Continuar';
$_['text_continue_shopping'] = 'Continue Shopping';
$_['text_shopping_cart'] = 'Carrinho de compras';
// Account
$_['text_ordered_products'] = 'Ordens';
$_['text_logout'] = 'Sair';
// Product
$_['text_product_tab_images'] = 'Fotos';
$_['text_product_not_yet_rated'] = 'Sem nota';
$_['text_product_wishlist_added'] = 'Produto adicionado aos favoristo!';
$_['text_product_compare_added'] = 'Produto adicionado ao compare!';
$_['text_product_order_quantity'] = 'Quantidade de ordem';
$_['text_product_discount'] = 'Quantidade de desconto';
$_['text_product_discount_items'] = '%s ou mais';
$_['text_product_rating_stars_many'] = '%s fora de 5 estrelas!';
$_['text_product_rating_stars_one'] = 'fora de 5 estrelas!';
$_['text_product_price_per_item'] = 'Preço por item';
$_['text_product_add_wishlist'] = 'Produto adicionado aos favoritos!';
$_['text_product_add_compare'] = 'Produto adicionado ao compare!';
//Cart
$_['text_cart'] = '';
$_['text_cart_view'] = 'Veja o carrinho';
$_['text_cart_title_add'] = 'Produto adicionado ao carrinho!';
$_['text_cart_add'] = '<a href="%s"><strong>%s</strong></a><br /> adicionado para <a href="%s">carrinho de compras</a>!';
$_['text_cart_title_remove'] = 'Produto removido do carrinho!';
$_['text_cart_remove'] = '<a href="%s"><strong>%s</strong></a><br /> removido do <a href="%s">carrinho de compras</a>!';
$_['text_cart_voucher_remove'] = 'Voucher removido para <a href="%s">shopping carrinho</a>!';
$_['text_cart_failure'] = 'Failhado';
//Account
$_['text_account_agree'] = 'Eu li e concordo com o <a class="s_main_color" rel="prettyPhoto[ajax]" href="%s" alt="%s"><b>%s</b></a>';
//Affiliate
$_['text_agree_affiliate'] = 'Eu li e concordo com o <a class="s_main_color" rel="prettyPhoto[ajax]" href="%s" alt="%s"><b>%s</b></a>';
// Checkout
$_['text_checkout_options'] = '<strong class="s_main_color">1</strong> Opções check-out';
$_['text_checkout_account'] = '<strong class="s_main_color">2</strong> Conta & Endereço de Faturamento';
$_['text_checkout_payment_address'] = '<strong class="s_main_color">2</strong> Endereço de Faturamente';
$_['text_checkout_shipping_address'] = '<strong class="s_main_color">3</strong> Endereço de entrega';
$_['text_checkout_shipping_method'] = '<strong class="s_main_color">4</strong> Método de entrega';
$_['text_checkout_payment_method'] = '<strong class="s_main_color">5</strong> Método de pagamento';
$_['text_checkout_confirm'] = '<strong class="s_main_color">6</strong> Ordem confirmada';
$_['text_checkout_continue'] = 'Continuar';
$_['text_checkout_agree'] = 'Eu li e concordo com o <a class="s_main_color" rel="prettyPhoto[ajax]" href="%s" alt="%s"><b>%s</b></a>';
// Validation
$_['text_error_email'] = 'Por favor, coloque um email válido';
$_['text_error_password'] = 'Por favor, coloque uma senha válida';
$_['text_error_password_match'] = 'As senhas não são iguais';
$_['text_error_required'] = 'Este campo é necessário';
checkout.tpl:
<?php echo $header; ?>
<!-- ---------------------- -->
<!-- I N T R O -->
<!-- ---------------------- -->
<div id="intro">
<div id="intro_wrap">
<div class="s_wrap">
<div id="breadcrumbs" class="s_col_12">
<?php foreach ($breadcrumbs as $breadcrumb): ?>
<?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
<?php endforeach; ?>
</div>
<h1><?php echo $heading_title; ?></h1>
</div>
</div>
</div>
<!-- end of intro -->
<!-- ---------------------- -->
<!-- C O N T E N T -->
<!-- ---------------------- -->
<div id="content" class="s_wrap">
<?php if ($tbData->common['column_position'] == "left" && $column_right): ?>
<div id="left_col" class="s_side_col">
<?php echo $column_right; ?>
</div>
<?php endif; ?>
<div class="checkout s_main_col">
<?php echo $content_top; ?>
<div id="checkout">
<div class="checkout-heading"><?php echo $tbData->text_checkout_options; ?></div>
<div class="checkout-content"></div>
</div>
<?php if (!$logged): ?>
<div id="payment-address">
<div class="checkout-heading"><span><?php echo $tbData->text_checkout_account; ?></span></div>
<div class="checkout-content"></div>
</div>
<?php else: ?>
<div id="payment-address">
<div class="checkout-heading"><span><?php echo $tbData->text_checkout_payment_address; ?></span></div>
<div class="checkout-content"></div>
</div>
<?php endif; ?>
<?php if ($shipping_required): ?>
<div id="shipping-address">
<div class="checkout-heading"><?php echo $tbData->text_checkout_shipping_address; ?></div>
<div class="checkout-content"></div>
</div>
<div id="shipping-method">
<div class="checkout-heading"><?php echo $tbData->text_checkout_shipping_method; ?></div>
<div class="checkout-content"></div>
</div>
<?php endif; ?>
<div id="payment-method">
<div class="checkout-heading"><?php echo $tbData->text_checkout_payment_method; ?></div>
<div class="checkout-content"></div>
</div>
<div id="confirm">
<div class="checkout-heading"><?php echo $tbData->text_checkout_confirm; ?></div>
<div class="checkout-content"></div>
</div>
<?php echo $content_bottom; ?>
</div>
<?php if ($tbData->common['column_position'] == "right" && $column_right): ?>
<div id="right_col" class="s_side_col">
<?php echo $column_right; ?>
</div>
<?php endif; ?>
<script type="text/javascript">
$('#checkout .checkout-content input[name=\'account\']').live('change', function() {
if ($(this).attr('value') == 'register') {
$('#payment-address .checkout-heading').html('<?php echo $tbData->text_checkout_account; ?>');
} else {
$('#payment-address .checkout-heading').html('<?php echo $tbData->text_checkout_payment_address; ?>');
}
});
$('.checkout-heading a').live('click', function() {
$('.checkout-content').slideUp('slow');
$(this).parent().parent().find('.checkout-content').slideDown('slow');
});
<?php if (!$logged): ?>
$(document).ready(function() {
$.ajax({
url: 'index.php?route=checkout/login',
dataType: 'html',
success: function(html) {
$('#checkout .checkout-content').html(html);
$('#checkout .checkout-content').slideDown('slow');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
<?php else: ?>
$(document).ready(function() {
$.ajax({
url: 'index.php?route=checkout/payment_address',
dataType: 'html',
success: function(html) {
$('#payment-address .checkout-content').html(html);
$('#payment-address .checkout-content').slideDown('slow');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
<?php endif; ?>
// Checkout
$('#button-account').live('click', function() {
$.ajax({
url: 'index.php?route=checkout/' + $('input[name=\'account\']:checked').attr('value'),
dataType: 'html',
beforeSend: function() {
$('#button-account').attr('disabled', true);
$('#button-account').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-account').attr('disabled', false);
$('.wait').remove();
},
success: function(html) {
$('.s_server_msg').remove();
$('#payment-address .checkout-content').html(html);
$('#checkout .checkout-content').slideUp('slow');
$('#payment-address .checkout-content').slideDown('slow');
$('.checkout-heading a').remove();
$('#checkout .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
}
});
});
// Login
$('#button-login').live('click', function() {
if (!$("#returning_customer_login").valid()) {
return false;
}
$.ajax({
url: 'index.php?route=checkout/login/validate',
type: 'post',
data: $('#returning_customer_login :input'),
dataType: 'json',
beforeSend: function() {
$('#button-login').attr('disabled', true);
$('#button-login').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-login').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
$('.s_server_msg').remove();
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
$('#checkout .checkout-content').prepend('<div class="s_server_msg s_msg_red" style="display: none;"><p>' + json['error']['warning'] + '</p></div>');
$('.s_server_msg').fadeIn('slow');
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
// Register
$('#button-register').live('click', function() {
if (!$("#register_details_form").valid()) {
return false;
}
$.ajax({
url: 'index.php?route=checkout/register/validate',
type: 'post',
data: $('#payment-address input[type=\'text\'], #payment-address input[type=\'password\'], #payment-address input[type=\'checkbox\']:checked, #payment-address input[type=\'radio\']:checked, #payment-address input[type=\'hidden\'], #payment-address select'),
dataType: 'json',
beforeSend: function() {
$('#button-register').attr('disabled', true);
$('#button-register').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-register').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
$('.s_server_msg').remove();
$("p.s_error_msg").remove();
$("div.s_row_2").removeClass("s_error_row");
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
if (json['error']['warning']) {
$('#payment-address .checkout-content').prepend('<div class="s_server_msg s_msg_red" style="display: none;"><p>' + json['error']['warning'] + '</p></div>');
$('.s_server_msg').fadeIn('slow');
}
var elements = { "firstname" : "", "lastname" : "", "email" : "", "telephone" : "", "company_id" : "", "tax_id" : "", "address_1" : "", "city" : "", "postcode" : "", "country" : "select:country_id", "zone" : "select:zone_id", "password" : "", "confirm" : "" };
highlightErrors(elements, json['error'], "payment-address");
} else {
location.reload(true);
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
// Payment Address
$('#payment-address a.payment_button-address').live('click', function() {
var submit_button = this;
if ($("#payment-address-new").is(":checked") && !$("#payment_form").valid()) {
return false;
}
$.ajax({
url: 'index.php?route=checkout/payment_address/validate',
type: 'post',
data: $('#payment-address input[type=\'text\'], #payment-address input[type=\'password\'], #payment-address input[type=\'checkbox\']:checked, #payment-address input[type=\'radio\']:checked, #payment-address select'),
dataType: 'json',
beforeSend: function() {
$(submit_button).attr('disabled', true);
$(submit_button).after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$(submit_button).attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
$("p.s_error_msg").remove();
$("div.s_row_2").removeClass("s_error_row");
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
if (json['error']['warning']) {
$('#payment-address .checkout-content').prepend('<div class="s_server_msg s_msg_red" style="display: none;"><p>' + json['error']['warning'] + '</p></div>');
$('.s_server_smg').fadeIn('slow');
}
var elements = { "firstname" : "", "lastname" : "", "email" : "", "telephone" : "", "company_id" : "", "tax_id" : "", "address_1" : "", "city" : "", "postcode" : "", "country" : "select:country_id", "zone" : "select:zone_id" };
highlightErrors(elements, json['error'], "payment-address");
} else {
<?php if ($shipping_required): ?>
$.ajax({
url: 'index.php?route=checkout/shipping_address',
dataType: 'html',
success: function(html) {
$('#shipping-address .checkout-content').html(html);
$('#payment-address .checkout-content').slideUp('slow');
$('#shipping-address .checkout-content').slideDown('slow');
$('#payment-address .checkout-heading a').remove();
$('#shipping-address .checkout-heading a').remove();
$('#shipping-method .checkout-heading a').remove();
$('#payment-method .checkout-heading a').remove();
$('#payment-address .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
<?php else: ?>
$.ajax({
url: 'index.php?route=checkout/payment_method',
dataType: 'html',
success: function(html) {
$('#payment-method .checkout-content').html(html);
$('#payment-address .checkout-content').slideUp('slow');
$('#payment-method .checkout-content').slideDown('slow');
$('#payment-address .checkout-heading a').remove();
$('#payment-method .checkout-heading a').remove();
$('#payment-address .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
<?php endif; ?>
$.ajax({
url: 'index.php?route=checkout/payment_address',
dataType: 'html',
success: function(html) {
$('#payment-address .checkout-content').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
// Shipping Address
$('#shipping-address a.shipping_button-address').live('click', function() {
if ($("#shipping-address-new").is(":checked") && !$("#shipping_form").valid()) {
return false;
}
$.ajax({
url: 'index.php?route=checkout/shipping_address/validate',
type: 'post',
data: $('#shipping-address input[type=\'text\'], #shipping-address input[type=\'password\'], #shipping-address input[type=\'checkbox\']:checked, #shipping-address input[type=\'radio\']:checked, #shipping-address select'),
dataType: 'json',
beforeSend: function() {
$('#shipping-address #button-address').attr('disabled', true);
$('#shipping-address #button-address').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#shipping-address #button-address').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
$("p.s_error_msg").remove();
$("div.s_row_2").removeClass("s_error_row");
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
if (json['error']['warning']) {
$('#shipping-address .checkout-content').prepend('<div class="s_server_msg s_msg_red" style="display: none;"><p>' + json['error']['warning'] + '</p></div>');
$('.s_server_smg').fadeIn('slow');
}
var elements = { "firstname" : "", "lastname" : "", "email" : "", "telephone" : "", "address_1" : "", "city" : "", "postcode" : "", "country" : "select:country_id", "zone" : "select:zone_id" };
highlightErrors(elements, json['error'], "shipping-address");
} else {
$.ajax({
url: 'index.php?route=checkout/shipping_method',
dataType: 'html',
success: function(html) {
$('#shipping-method .checkout-content').html(html);
$('#shipping-address .checkout-content').slideUp('slow');
$('#shipping-method .checkout-content').slideDown('slow');
$('#shipping-address .checkout-heading a').remove();
$('#shipping-method .checkout-heading a').remove();
$('#payment-method .checkout-heading a').remove();
$('#shipping-address .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
$.ajax({
url: 'index.php?route=checkout/shipping_address',
dataType: 'html',
success: function(html) {
$('#shipping-address .checkout-content').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
// Guest
$('#button-guest').live('click', function() {
if (!$("#guest_details_form").valid()) {
return false;
}
$.ajax({
url: 'index.php?route=checkout/guest/validate',
type: 'post',
data: $('#payment-address input[type=\'text\'], #payment-address input[type=\'checkbox\']:checked, #payment-address select'),
dataType: 'json',
beforeSend: function() {
$('#button-guest').attr('disabled', true);
$('#button-guest').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-guest').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
$("p.s_error_msg").remove();
$("div.s_row_2").removeClass("s_error_row");
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
if (json['error']['warning']) {
$('#payment-address .checkout-content').prepend('<div class="s_server_msg s_msg_red" style="display: none;"><p>' + json['error']['warning'] + '</p></div>');
$('.s_server_smg').fadeIn('slow');
}
var elements = { "firstname" : "", "lastname" : "", "email" : "", "telephone" : "", "company_id" : "", "tax_id" : "", "address_1" : "", "city" : "", "postcode" : "", "country" : "select:country_id", "zone" : "select:zone_id" };
highlightErrors(elements, json['error'], "payment-address");
} else {
<?php if ($shipping_required): ?>
var shipping_address = $('#payment-address input[name=\'shipping_address\']:checked').attr('value');
if (shipping_address) {
$.ajax({
url: 'index.php?route=checkout/shipping_method',
dataType: 'html',
success: function(html) {
$('#shipping-method .checkout-content').html(html);
$('#payment-address .checkout-content').slideUp('slow');
$('#shipping-method .checkout-content').slideDown('slow');
$('#payment-address .checkout-heading a').remove();
$('#shipping-address .checkout-heading a').remove();
$('#shipping-method .checkout-heading a').remove();
$('#payment-method .checkout-heading a').remove();
$('#payment-address .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
$('#shipping-address .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
$.ajax({
url: 'index.php?route=checkout/guest_shipping',
dataType: 'html',
success: function(html) {
$('#shipping-address .checkout-content').html(html);
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
} else {
$.ajax({
url: 'index.php?route=checkout/guest_shipping',
dataType: 'html',
success: function(html) {
$('#shipping-address .checkout-content').html(html);
$('#payment-address .checkout-content').slideUp('slow');
$('#shipping-address .checkout-content').slideDown('slow');
$('#payment-address .checkout-heading a').remove();
$('#shipping-address .checkout-heading a').remove();
$('#shipping-method .checkout-heading a').remove();
$('#payment-method .checkout-heading a').remove();
$('#payment-address .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}
<?php else: ?>
$.ajax({
url: 'index.php?route=checkout/payment_method',
dataType: 'html',
success: function(html) {
$('#payment-method .checkout-content').html(html);
$('#payment-address .checkout-content').slideUp('slow');
$('#payment-method .checkout-content').slideDown('slow');
$('#payment-address .checkout-heading a').remove();
$('#payment-method .checkout-heading a').remove();
$('#payment-address .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
<?php endif; ?>
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
// Guest Shipping
$('#button-guest-shipping').live('click', function() {
if (!$("#guest_shipping_form").valid()) {
return false;
}
$.ajax({
url: 'index.php?route=checkout/guest_shipping/validate',
type: 'post',
data: $('#shipping-address input[type=\'text\'], #shipping-address select'),
dataType: 'json',
beforeSend: function() {
$('#button-guest-shipping').attr('disabled', true);
$('#button-guest-shipping').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-guest-shipping').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
$("p.s_error_msg").remove();
$("div.s_row_2").removeClass("s_error_row");
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
if (json['error']['warning']) {
$('#shipping-address .checkout-content').prepend('<div class="s_server_msg s_msg_red" style="display: none;"><p>' + json['error']['warning'] + '</p></div>');
$('.s_server_smg').fadeIn('slow');
}
var elements = { "firstname" : "", "lastname" : "", "email" : "", "address_1" : "", "address_2" : "","city" : "", "postcode" : "", "country" : "select:country_id", "zone" : "select:zone_id" };
highlightErrors(elements, json['error'], "shipping-address");
} else {
$.ajax({
url: 'index.php?route=checkout/shipping_method',
dataType: 'html',
success: function(html) {
$('#shipping-method .checkout-content').html(html);
$('#shipping-address .checkout-content').slideUp('slow');
$('#shipping-method .checkout-content').slideDown('slow');
$('#shipping-address .checkout-heading a').remove();
$('#shipping-method .checkout-heading a').remove();
$('#payment-method .checkout-heading a').remove();
$('#shipping-address .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
$('#button-shipping').live('click', function() {
$.ajax({
url: 'index.php?route=checkout/shipping_method/validate',
type: 'post',
data: $('#shipping-method input[type=\'radio\']:checked, #shipping-method textarea'),
dataType: 'json',
beforeSend: function() {
$('#button-shipping').attr('disabled', true);
$('#button-shipping').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-shipping').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
$('.s_server_msg').remove();
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
if (json['error']['warning']) {
$('#shipping-method .checkout-content').prepend('<div class="s_server_msg s_msg_red" style="display: none;"><p>' + json['error']['warning'] + '</p></div>');
$('.s_server_smg').fadeIn('slow');
}
} else {
$.ajax({
url: 'index.php?route=checkout/payment_method',
dataType: 'html',
success: function(html) {
$('#payment-method .checkout-content').html(html);
$('#shipping-method .checkout-content').slideUp('slow');
$('#payment-method .checkout-content').slideDown('slow');
$('#shipping-method .checkout-heading a').remove();
$('#payment-method .checkout-heading a').remove();
$('#shipping-method .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
$('#button-payment').live('click', function() {
$.ajax({
url: 'index.php?route=checkout/payment_method/validate',
type: 'post',
data: $('#payment-method input[type=\'radio\']:checked, #payment-method input[type=\'checkbox\']:checked, #payment-method textarea'),
dataType: 'json',
beforeSend: function() {
$('#button-payment').attr('disabled', true);
$('#button-payment').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-payment').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
$('.s_server_msg').remove();
if (json['redirect']) {
location = json['redirect'];
} else if (json['error']) {
if (json['error']['warning']) {
$('#payment-method .checkout-content').prepend('<div class="s_server_msg s_msg_red" style="display: none;"><p>' + json['error']['warning'] + '</p></div>');
$('.s_server_msg').fadeIn('slow');
}
} else {
$.ajax({
url: 'index.php?route=checkout/confirm',
dataType: 'html',
success: function(html) {
$('#confirm .checkout-content').html(html);
$('#payment-method .checkout-content').slideUp('slow');
$('#confirm .checkout-content').slideDown('slow');
$('#payment-method .checkout-heading a').remove();
$('#payment-method .checkout-heading').append('<a><?php echo $text_modify; ?></a>');
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
}
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});
});
function highlightErrors(elements, json, wrapper_id) {
jQuery.each(elements, function(i, val) {
if (json[i]) {
var selector = "input";
var el_name = val ? val : i;
if (val) {
var el_parts = val.split(":");
if (el_parts.length == 2) {
var selector = el_parts[0];
var el_name = el_parts[1];
}
}
var element = $("#" + wrapper_id + " " + selector + "[name='" + el_name + "']");
element.after('<p class="s_error_msg">' + json[i] + '</p>');
element.parent("div.s_row_2").addClass("s_error_row");
}
});
}
</script>
<link rel="stylesheet" type="text/css" href="<?php echo $tbData->theme_javascript_url; ?>prettyphoto/css/prettyPhoto.css" media="all" />
<script type="text/javascript" src="<?php echo $tbData->theme_javascript_url; ?>prettyphoto/js/jquery.prettyPhoto.js"></script>
<script type="text/javascript" src="http<?php if($tbData->isHTTPS) echo 's'?>://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
<script type="text/javascript">
jQuery.validator.setDefaults({
errorElement: "p",
errorClass: "s_error_msg",
errorPlacement: function(error, element) {
error.insertAfter(element);
},
highlight: function(element, errorClass, validClass) {
$(element).addClass("error_element").removeClass(validClass);
$(element).parent("div").addClass("s_error_row");
},
unhighlight: function(element, errorClass, validClass) {
$(element).removeClass("error_element").addClass(validClass);
$(element).parent("div").removeClass("s_error_row");
}
});
</script>
</div>
<!-- end of content -->
<?php echo $footer; ?>
Eu fiz uma tradução de um template e está dando erro em alguns carateres especiais segue a imagem do erro:
/applications/core/interface/imageproxy/imageproxy.php?img=http://www.lojazix.com.br/problema.png&key=3ffb177af3a14000bebd9cbdcf1e946a50e3a3ba4bab7bf87af5a92300b51578" alt="problema.png" />
coloca isso na conexão
mysql_query("SET NAMES 'utf8'");
mysql_query('SET character_set_connection=utf8');
mysql_query('SET character_set_client=utf8');
mysql_query('SET character_set_results=utf8');
no index coloca assim
<?php ini_set('default_charset','UTF-8');?>
no mysql coloca tudo utf8_unicode_ci
se estiver problema também no assunto no recebimento do e-mail me fala, pois cada servidor vai interpretar de um jeito, ocorre sempre erro no hotmail quando se recebe.
Provavelmente a codificação do documento é UTF-8 por isso ele não está lendo o "ç" e nem vai ler acentos como "á,é,ó, etc...", dificilmente isso pode ser resolvido incluindo esse bloco no head:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
caso não funcione (o que eu tenho certeza que vai acontecer) substitua os caracteres especias pelas suas entidades html que vai dar certo exemplo:
ç = ç
caso você queira descobrir as entidades html de uma letra como o "ç" utilize a função PHP:
htmlentities("ç");
a saída será:
ç
ai é só você substituir os "ç" do seu arquivo por ç
Lista de entidades:
Á ................... Á
á ................... á
 ................... Â
â ................... â
À ................... À
à ................... à
Å ................... Å
å ................... å
à ................... Ã
ã ................... ã
Ä ................... Ä
ä ................... ä
Æ ................... Æ
æ ................... æ
É ................... É
é ................... é
Ê ................... Ê
ê ................... ê
È ................... È
è ................... è
Ë ................... Ë
ë ................... ë
Ð ................... Ð
ð ................... ð
Í ................... Í
í ................... í
Î ................... Î
î ................... î
Ì ................... Ì
ì ................... ì
Ï ................... Ï
ï ................... ï
Ó ................... Ó
ó ................... ó
Ô ................... Ô
ô ................... ô
Ò ................... Ò
ò ................... ò
Ø ................... Ø
ø ................... ø
Õ ................... Õ
õ ................... õ
Ö ................... Ö
ö ................... ö
Ú ................... Ú
ú ................... ú
Û ................... Û
û ................... û
Ù ................... Ù
ù ................... ù
Ü ................... Ü
ü ................... ü
Ç ................... Ç
ç ................... ç
Ñ ................... Ñ
ñ ................... ñ
< ................... <
& ................... &
" ................... "
® ................... ®
© ................... ©
Ý ................... Ý
ý ................... ý
Þ ................... Þ
þ ................... þ
ß ................... ß