Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

Размер границы окна продукции 1.5.6.1


maks37614

Recommended Posts

Помогите разобраться, где изменить размер границы?

 В Админке в настройках выставил размеры изображений, но границы мешают...

 

Product.tpl

 

 

<?php 
$this->load->model('mk/breadcrumbs');
$this->load->model('mk/products');
$this->load->model('mk/languages');
 
$_mk = $this->model_mk_languages->get();
?>
 
<?php echo $header; ?>
 
<?php echo $content_top; ?>
 
<div class="container">
<div class="row"> 
 
 
<div class="span3">
 
<?php if ($thumb || $images) { ?>
<div  id="gallery_01">
 
<ul class="media-gallery">
<?php if ($thumb) { ?>
<li class="large-image">
<a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>">
<img id="zoom_03" src="<?php echo $thumb; ?>" data-zoom-image="<?php echo $popup; ?>" />
</a>
</li>
<?php } ?>
<?php if ($images) { ?>
<?php foreach ($images as $image) { ?>
<li><a  href="#" class="elevatezoom-gallery" 
data-image="<?php echo $image['thumb']; ?>" 
data-zoom-image="<?php echo $image['popup']; ?>">
<img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" />
</a></li>
<?php } ?>
<?php } ?>
 
</ul>
</div>
<?php } ?>
 
<?php echo $column_left; ?>
</div>
<!-- Products List -->
<div class="span9"> 
<div class="product-info"> 
 
<div class="message-container"></div>
 
<!-- Breadcrumb -->
<?
echo $this->model_mk_breadcrumbs->set($this->data['breadcrumbs'])->render();
?>
<h1><?php echo $heading_title; ?></h1>
 
<ul class="nav nav-stacked product-info">
<li><strong><?php echo $text_stock; ?></strong> <?php echo $stock; ?></li>
<?php if ($manufacturer) { ?>
<li><strong><?php echo $text_manufacturer; ?></strong> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a></li>
<?php } ?>
<li><strong><?php echo $text_model; ?></strong> <?php echo $model; ?></li>
<?php if ($reward) { ?>
<li></li><strong><?php echo $text_reward; ?></strong> <?php echo $reward; ?></li>
<?php } ?>
</ul>
 
 
<?php if ($price) { ?>
<?
$pnew = $special ? $special : $price;
$pold = $special ? $price : "";
?>
<p class="main-price">
<span><?=$pold?></span> <strong><?=$pnew?></strong>
 
<!-- TASSE -->
<?php if ($tax) { ?>
<span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span>
<?php } ?>
 
</p>
 
<?php if ($review_status) { ?>
<div class="main-rating review">
<div>
<a class="mk-review-btn" href="#"><?php echo $reviews; ?></a>
<a class="mk-review-btn" href="#"><?php echo $text_write; ?></a>
</div>
<?=$this->model_mk_products->rate($rating)?>
 
</div>
<?php } ?>
 
<!-- AddThis Button BEGIN -->
<div class="addthis_default_style">
<a class="addthis_button_compact"><?php echo $text_share; ?></a> 
<a class="addthis_button_email"></a>
<a class="addthis_button_print"></a> 
<a class="addthis_button_facebook"></a> 
<a class="addthis_button_twitter"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js"></script> 
<!-- AddThis Button END --> 
 
 
 
 
<!-- POINTS -->
<?php if ($points) { ?>
<p class="reward"><small><?php echo $text_points; ?> <?php echo $points; ?></small></p>
<?php } ?>
 
 
<!-- DISCOUNTS -->
<?php if ($discounts) { ?>
<ul class="nav nav-stacked product-info">
<?php foreach ($discounts as $discount) { ?>
<li><?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?></li>
<?php } ?>
</ul>
<?php } ?>
<?php } ?>
 
 
<?php if ($options) { ?>
<div class="select-option options">
<h2><?php echo $text_option; ?></h2>
<?php foreach ($options as $option) { ?>
<?php if ($option['type'] == 'select') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<select name="option[<?php echo $option['product_option_id']; ?>]">
<option value=""><?php echo $text_select; ?></option>
<?php foreach ($option['option_value'] as $option_value) { ?>
<option value="<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
</option>
<?php } ?>
</select>
</div>
<?php } ?>
 
 
 
<?php if ($option['type'] == 'radio') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
 
<b><?php echo $option['name']; ?>:</b><br />
<?php foreach ($option['option_value'] as $option_value) { ?>
<label  class="radio" for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
<input class="radio" type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
</label>
<?php } ?>
</div>
<?php } ?>
 
 
 
<?php if ($option['type'] == 'checkbox') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<?php foreach ($option['option_value'] as $option_value) { ?>
<label class="checkbox" for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
<input class="checkbox" type="checkbox" name="option[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" />
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
</label>
<?php } ?>
</div>
<?php } ?>
 
 
 
<?php if ($option['type'] == 'image') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<table class="option-image">
<?php foreach ($option['option_value'] as $option_value) { ?>
<tr>
<td style="width: 1px;"><input type="radio" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>" /></td>
<td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" /></label></td>
<td><label for="option-value-<?php echo $option_value['product_option_value_id']; ?>"><?php echo $option_value['name']; ?>
<?php if ($option_value['price']) { ?>
(<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>)
<?php } ?>
</label></td>
</tr>
<?php } ?>
</table>
</div>
<?php } ?>
 
 
 
<?php if ($option['type'] == 'text') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" />
</div>
<?php } ?>
 
 
 
<?php if ($option['type'] == 'textarea') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<textarea name="option[<?php echo $option['product_option_id']; ?>]" cols="40" rows="5"><?php echo $option['option_value']; ?></textarea>
</div>
<?php } ?>
 
 
 
<?php if ($option['type'] == 'file') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<input type="button" value="<?php echo $button_upload; ?>" id="button-option-<?php echo $option['product_option_id']; ?>" class="button">
<input type="hidden" name="option[<?php echo $option['product_option_id']; ?>]" value="" />
</div>
<?php } ?>
 
 
 
<?php if ($option['type'] == 'date') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="date" />
</div>
<?php } ?>
 
 
 
<?php if ($option['type'] == 'datetime') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="datetime" />
</div>
<?php } ?>
 
 
 
<?php if ($option['type'] == 'time') { ?>
<div id="option-<?php echo $option['product_option_id']; ?>" class="option">
<?php if ($option['required']) { ?>
<span class="required">*</span>
<?php } ?>
<b><?php echo $option['name']; ?>:</b><br />
<input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="time" />
</div>
<?php } ?>
 
 
 
<?php } ?>
</div>
<?php } ?>
 
 
<?php if ($minimum > 1) { ?>
<div class="minimum"><?php echo $text_minimum; ?></div>
<?php } ?>
 
<!-- Add Buttons --> 
<a href="#" data-pid="<?=$product_id?>" class="add-list-detail mk-wish-list"><i class="icon-star"></i></a>
<a href="#" data-pid="<?=$product_id?>" class="add-comp-detail mk-compare"><i class="icon-tasks"></i></a>
 
 
<input data-pid="<?=$product_id?>" type="button" class="btn btn-add-cart mk-add-cart" value="<?php echo $button_cart; ?>" id="button-cart" />
<input type="text" class="input-quantity" name="quantity" size="2" value="<?php echo $minimum; ?>" placeholder="<?php echo $minimum; ?>" />
<span class="input-quantity-text"><?php echo $text_qty; ?></span>
<input type="hidden" name="product_id" size="2" value="<?php echo $product_id; ?>" />
 
</div>
 
 
 
 
 
<div class="clearfix"></div>
 
 
<!-- Product ACCORDION -->
<div class="accordion" id="accordion2">
 
<!-- description tab -->
<div class="accordion-group">
<div class="accordion-heading"> 
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne"> <?php echo $tab_description; ?> </a> 
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner"> 
<?php echo $description; ?>
</div>
</div>
</div>
<!-- description tab end -->
 
<!-- attribute tab -->
<?php if ($attribute_groups) { ?>
<div class="accordion-group">
<div class="accordion-heading"> 
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo"> <?php echo $tab_attribute; ?> </a> 
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner"> 
<?php foreach ($attribute_groups as $attribute_group) { ?>
<h6><?php echo $attribute_group['name']; ?></h6>
<ul>
<?php foreach ($attribute_group['attribute'] as $attribute) { ?>
<li><strong><?php echo $attribute['name']; ?></strong> <?php echo $attribute['text']; ?></li>
<?php } ?>
</ul>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
<!-- attribute tab end -->
 
 
<!-- review tab -->
<?php if ($review_status) { ?>
 
<div class="accordion-group">
<div class="accordion-heading"> 
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree"> <?php echo $tab_review; ?> </a> 
</div>
<div id="collapseThree" class="accordion-body collapse">
<div class="accordion-inner">
 
<div id="mk-review-area"></div>
 
<!-- Write Review -->
<h5><?php echo $text_write; ?></h5>
<div class="mk-review-message"></div>
<form action="write-review" class="write-review">
<fieldset>
<input type="text" name="name" placeholder="<?php echo $entry_name; ?>" />
<textarea rows="5" name="text" placeholder="<?php echo $entry_review; ?>"></textarea>
 
<span><?php echo $entry_bad; ?></span>
<input type="radio" name="rating" id="optionsRadios1" value="1" />
<input type="radio" name="rating" id="optionsRadios2" value="2" />
<input type="radio" name="rating" id="optionsRadios3" value="3" />
<input type="radio" name="rating" id="optionsRadios4" value="4" />
<input type="radio" name="rating" id="optionsRadios5" value="5" />
<span><?php echo $entry_good; ?></span>
 
<br />
<br />
<?php echo $entry_captcha; ?>
<input type="text" name="captcha" value="" />
<img src="index.php?route=product/product/captcha" alt="" id="captcha" />
<br />
<br />
<div class="right">
<input type="button" class="btn mk-btn-review" value="<?php echo $button_continue; ?>" />
</div>
</fieldset>
</form>
</div>
</div>
</div>
<?php } ?>
<!-- review tab end -->
 
 
<!-- tags tab -->
<?php if ($tags) { ?>
<div class="accordion-group">
<div class="accordion-heading"> 
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseFour"> <?php echo $text_tags; ?> </a> 
</div>
<div id="collapseFour" class="accordion-body collapse">
<div class="accordion-inner">
<ul>
<?php for ($i = 0; $i < count($tags); $i++) { ?>
<li><a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a></li>
<?php } ?>
</ul>
</div>
 
</div>
</div>
<?php } ?><!-- tags tab end -->
 
</div><!-- END Product ACCORDION -->
 
 
<!-- related tab -->
<?php if ($products) { ?>
<div class="products-list products-list-small">
<h3><?=$_mk['related_prods']?></h3>
<?php echo $this->model_mk_products
->__init(array('products' => $products))
->set_span("span2")
->render(); ?>
</div>
<?php } ?>
<!-- related end -->
 
<?php echo $column_right; ?>
</div>
</div>
<?php echo $content_bottom; ?>
</div>
 
<script type="text/javascript">
$(function() {
 
// ---------------------------------------------------------------------------
$("#zoom_03").elevateZoom({
gallery: 'gallery_01',
cursor: 'pointer',
zoomType: "inner",
galleryActiveClass: "active"
});
 
$("#zoom_03").bind("click", function(e) {
var ez = $('#zoom_03').data('elevateZoom');
ez.closeAll();
$.fancybox(ez.getGalleryList());
return false;
});
// ---------------------------------------------------------------------------
 
$(".mk-review-btn").click(function(e){
$("#accordion2 .accordion-body").removeClass("in");
$("#accordion2 .accordion-body").css("height", "0");
 
$("#collapseThree").addClass("in");
$("#collapseThree").css("height", "auto");
 
 
e.preventDefault();
});
 
 
$('.mk-btn-review').click(function() {
 
$('.mk-review-message').html("");
 
$.ajax({
url: 'index.php?route=product/product/write&product_id=<?php echo $product_id;?>',
type: 'post',
dataType: 'json',
data: 'name=' + encodeURIComponent($("input[name=name]").val()) + 
 '&text=' + encodeURIComponent($("textarea[name=text]").val()) + 
 '&rating=' + encodeURIComponent($("input[name=rating]:checked").val() ? $("input[name=rating]:checked").val() : '') + 
 '&captcha=' + encodeURIComponent($("input[name=captcha]").val()),
beforeSend: function() 
{
$('.success, .warning').remove();
$('.mk-btn-review').attr('disabled', true);
$('.mk-review-message').html('<div class="attention"><img src="catalog/view/theme/default/image/loading.gif" alt="" /> <?php echo $text_wait;?></div>');
},
complete: function() 
{
$('.mk-btn-review').attr('disabled', false);
$('.attention').remove();
},
success: function(data) 
{
if (data['error']) {
$('.mk-review-message').html('<div class="alert alert-error">' + data['error'] + '</div>');
}
 
if (data['success']) {
$('.mk-review-message').after('<div class="alert alert-success">' + data['success'] + '</div>');
$('input[name=\'name\']').val('');
$('textarea[name=\'text\']').val('');
$('input[name=\'rating\']:checked').attr('checked', '');
$('input[name=\'captcha\']').val('');
}
}
});
});
 
$('#mk-review-area .pagination a').click(function() {
$('#mk-review-area').fadeOut('slow');
$('#mk-review-area').load(this.href);
$('#mk-review-area').fadeIn('slow');
return false;
});
 
$('#mk-review-area').load('index.php?route=product/product/review&product_id=<?php echo $product_id;?>');
});
</script>
 
<?php echo $footer; ?>
 
 
 
<script type="text/javascript">
$('#button-cart').bind('click', function() {
$.ajax({
url: 'index.php?route=checkout/cart/add',
type: 'post',
data: $('.product-info input[type=\'text\'], .product-info input[type=\'hidden\'], .product-info input[type=\'radio\']:checked, .product-info input[type=\'checkbox\']:checked, .product-info select, .product-info textarea'),
dataType: 'json',
success: function(json) {
$('.success, .warning, .attention, information, .error').remove();
if (json['error']) {
if (json['error']['option']) {
for (i in json['error']['option']) {
$('#option-' + i).after('<span class="error">' + json['error']['option'] + '</span>');
}
}
}
 
if (json['success']) {
$('#notification').html('<div class="alert alert-success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
$('.success').fadeIn('slow');
$('#cart-total').html(json['total']);
$('html, body').animate({scrollTop: 0}, 'slow');
}
}
});
});
</script>
<?php if($options)
{?>
<script type="text/javascript" src="catalog/view/javascript/jquery/ajaxupload.js"></script>
 
<?php foreach($options as $option)
{?>
 
<?php if($option['type'] == 'file')
{?>
<script type="text/javascript">
new AjaxUpload('#button-option-<?php echo $option['product_option_id'];?>', {
action: 'index.php?route=product/product/upload',
name: 'file',
autoSubmit: true,
responseType: 'json',
onSubmit: function(file, extension) {
$('#button-option-<?php echo $option['product_option_id'];?>').after('<img src="catalog/view/theme/default/image/loading.gif" class="loading" style="padding-left: 5px;" />');
$('#button-option-<?php echo $option['product_option_id'];?>').attr('disabled', true);
},
onComplete: function(file, json) {
$('#button-option-<?php echo $option['product_option_id'];?>').attr('disabled', false);
$('.error').remove();
if (json['success']) {
alert(json['success']);
$('input[name=\'option[<?php echo $option['product_option_id'];?>]\']').attr('value', json['file']);
}
 
if (json['error']) {
$('#option-<?php echo $option['product_option_id'];?>').after('<span class="error">' + json['error'] + '</span>');
}
 
$('.loading').remove();
}
});
</script>
<?php }?>
<?php }?>
<?php }?>
 
 
 
<script type="text/javascript">
/* $(document).ready(function() {
if ($.browser.msie && $.browser.version == 6) {
$('.date, .datetime, .time').bgIframe();
}
 
$('.date').datepicker({dateFormat: 'yy-mm-dd'});
 
$('.datetime').datetimepicker({
dateFormat: 'yy-mm-dd',
timeFormat: 'h:m'
});
$('.time').timepicker({timeFormat: 'h:m'});
}); */
</script> 

 

 

 

post-701991-0-56800600-1444960688_thumb.png

Змінено користувачем maks37614
Надіслати
Поділитися на інших сайтах


Створіть аккаунт або увійдіть для коментування

Ви повинні бути користувачем, щоб залишити коментар

Створити обліковий запис

Зареєструйтеся для отримання облікового запису. Це просто!

Зареєструвати аккаунт

Вхід

Уже зареєстровані? Увійдіть тут.

Вхід зараз
  • Зараз на сторінці   0 користувачів

    • Ні користувачів, які переглядиють цю сторінку
×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.