http://www.boutique-fashion.eu/index.ph ... uct_id=129
as dori sa stiu cum rezolv si eu eroarea aceasta? va multumesc
Instalezi tema compatibila cu versiunea ta de opencart , profilele sunt din opencart 1.5.6.x , tema e pentru acea versiune, magazinul tau banuiesc e o versiune mai veche.Sau faci upgrade, sau editezi product.tpl din tema si stergi codul profilelor.
Codul:
si optional:
Code: Select all
<?php if ($profiles): ?>
<div class="option">
<h2><span class="required">*</span><?php echo $text_payment_profile ?></h2>
<br />
<select name="profile_id">
<option value=""><?php echo $text_select; ?></option>
<?php foreach ($profiles as $profile): ?>
<option value="<?php echo $profile['profile_id'] ?>"><?php echo $profile['name'] ?></option>
<?php endforeach; ?>
</select>
<br />
<br />
<span id="profile-description"></span>
<br />
<br />
</div>
<?php endif; ?>
Code: Select all
$('select[name="profile_id"], input[name="quantity"]').change(function(){
$.ajax({
url: 'index.php?route=product/product/getRecurringDescription',
type: 'post',
data: $('input[name="product_id"], input[name="quantity"], select[name="profile_id"]'),
dataType: 'json',
beforeSend: function() {
$('#profile-description').html('');
},
success: function(json) {
$('.success, .warning, .attention, information, .error').remove();
if (json['success']) {
$('#profile-description').html(json['success']);
}
}
});
});
Who is online
Users browsing this forum: Amazon [Bot] and 68 guests