Post by yo99vld » Tue Dec 09, 2014 5:12 am

http://www.boutique-fashion.eu/index.ph ... uct_id=129


as dori sa stiu cum rezolv si eu eroarea aceasta? :( va multumesc

New member

Posts

Joined
Fri Apr 06, 2012 8:34 pm

Post by inactiveaccount9912 » Tue Dec 09, 2014 1:26 pm

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.

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by yo99vld » Wed Dec 10, 2014 4:16 am

poti sa ma ajuti tu ce sa sterg te rog frumos.

New member

Posts

Joined
Fri Apr 06, 2012 8:34 pm

Post by inactiveaccount9912 » Thu Dec 11, 2014 4:10 am

Codul:

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; ?>
si optional:

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']);
			}	
		}
	});
});

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am
Who is online

Users browsing this forum: Amazon [Bot] and 68 guests