Jump to content
Sign in to follow this  
s1sadm1nch1k

Изменить цвет и шрифт количеству баллов

Recommended Posts

Добрый день помогите изменить цвет и шрифт количеству баллов. Хочу чтобы в карточке товаров в поле Бонусные баллы справа где отображается количество изменился цвет на красным например и другой шрифт. Нашел в инструментах разработчика этот блок , 450 строка в stylesheet.css . Меняю цвет на красный , но цвет меняется и в строке выше "название модели товара"   Как сделать так чтобы изменился только лишь цвет и шрифт Количество бонусных баллов ?

Прикладываю скриншоты

post-710401-0-66766100-1464162886_thumb.png

post-710401-0-75368700-1464162993_thumb.png

Edited by s1sadm1nch1k

Share this post


Link to post
Share on other sites

В product.tpl кол-ко заключить в span и добавить класс и менять стили только тогда

Share this post


Link to post
Share on other sites

product.tpl и stylesheet.css прикрепите сюда, добавлю все

Share this post


Link to post
Share on other sites

А как там это количество найти ? Там переменную нужно искать ? 

Share this post


Link to post
Share on other sites
<?php echo $header; ?>

<div class="breadcrumb">

<div class="wrapper-center">

  <?php foreach ($breadcrumbs as $breadcrumb) { ?>

  <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>

  <?php } ?>

</div>

</div>

<div id="container-center">

<?php echo $column_left; ?><?php echo $column_right; ?>

<div id="content"><?php echo $content_top; ?>

 

  <div class="product-info">

    <?php if ($thumb || $images) { ?>

    <div class="left">

 

<?php $zoomHow = 1;

 

if ($zoomHow == 1) {?>

 

 

    <?php if ($thumb) { ?>

        <div class="image">

    <div id="wrap">

    <a href="<?php echo $popup; ?>" class="cloud-zoom" id="zoomFull" rel="position: 'inside' ,showTitle: false, adjustX:0, adjustY:0" style="position: relative; display: block;">

    <img src="<?php echo $thumb; ?>" id="image" style="display: block;" />

    </a>

    </div>

    <div class="cloud_zoom_about"><?php echo $cloud_zoom_about; ?></div> 

    <div class="cloud_zoom_lupe"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="cloud-zoom-in colorbox " id="zoomFull" rel="colorbox"><i class="icon-zoom-in"></i></a></div> 

    </div>

    <?php } ?>

    <?php if ($images) { ?>

   <div class="image-additional">

<div id="carousel1">

  <ul class="jcarousel-skin-additional">

<li><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>"  class="cloud-zoom-gallery cloud-zoom-in-gallery"  rel="useZoom: 'zoomFull', smallImage: '<?php echo $thumb; ?>' "><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a></li>

        <?php foreach ($images as $image) { ?>

        <li><a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>"  class="cloud-zoom-gallery"  rel="useZoom: 'zoomFull', smallImage: '<?php echo $image['thumb']; ?>' "><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a></li>

        <?php } ?>

      </ul>

    </div>

    <script type="text/javascript"><!--

    $('#carousel1 ul').jcarousel({  auto: 4,  wrap: null, vertical: false,         scroll: 1    });    

//--></script>

 

        </div>

<?php foreach ($images as $image) { ?>

    <a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"></a>

<?php } ?>

    <?php } ?>

 

    

<?php } else  { ?>

 

 

<?php if ($thumb) { ?>

        <div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>

    <?php } ?>

    

     <?php if ($images) { ?>

   <div class="image-additional">

<div id="carousel1">

  <ul class="jcarousel-skin-additional">

 

        <?php foreach ($images as $image) { ?>

        <li><a href="<?php echo $image['popup']; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"><img src="<?php echo $image['thumb']; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" /></a></li>

        <?php } ?>

      </ul>

    </div>

    <script type="text/javascript"><!--

    $('#carousel1 ul').jcarousel({     auto: 4,  wrap: null, vertical: false,         scroll: 1   });

    //--></script>

        </div>

    <?php } ?>   

    

     

<?php } ?>

 

 

 

 

 

 

    

    </div>

    <?php } ?>

    <div class="right">

<div class="shadowProductInfo"></div>

<div class="review float-right">

        <div><img src="catalog/view/theme/bigdesfashion/image/stars-<?php echo $rating; ?>.png" alt="<?php echo $reviews; ?>" /><br />

<a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $reviews; ?></a><br /><a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $text_write; ?></a></div>

<?php if ($mimage) { ?> <a href="<?php echo $manufacturers; ?>"><img src="<?php echo $mimage; ?>" title="<?php echo $manufacturer; ?>" /></a> <?php } ?>

</div>  

 

 <h1><?php echo $heading_title; ?></h1>

 

      <?php if ($price) { ?>

      <div class="price">

        <?php if (!$special) { ?>

        <?php echo $price; ?>

        <?php } else { ?>

        <span class="price-new"><?php echo $special; ?></span><span class="price-old"><?php echo $price; ?></span> 

        <?php } ?>

        <br />

        <?php if ($tax) { ?>

        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span><br />

        <?php } ?>

        <?php if ($points) { ?>

        <span class="reward"><small><?php echo $text_points; ?> <?php echo $points; ?></small></span><br />

        <?php } ?>

        <?php if ($discounts) { ?>

        <br />

        <div class="discount">

          <?php foreach ($discounts as $discount) { ?>

          <?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?><br />

          <?php } ?>

        </div>

        <?php } ?>

      </div>

      <?php } ?>

 

 

      <div class="description">

        <?php if ($manufacturer) { ?>

        <span><?php echo $text_manufacturer; ?></span> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a><br />

        <?php } ?>

        <span><?php echo $text_model; ?></span> <?php echo $model; ?><br />

        <?php if ($reward) { ?>

        <span><?php echo $text_reward; ?></span> <?php echo $reward; ?><br />

        <?php } ?>

        <span><?php echo $text_stock; ?></span> <?php echo $stock; ?>

 </div>

 

 

 

 

 

 

 

      <?php if ($options) { ?>

      <div class="options">

       

        <?php foreach ($options as $option) { ?>

        <?php if ($option['type'] == 'select') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:    <?php if ($option['required']) { ?><span class="required">*</span><?php } ?>      </b>

 <div class="float-left">

          <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>

        </div>

        <br />

        <?php } ?>

        <?php if ($option['type'] == 'radio') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:              <?php if ($option['required']) { ?><span class="required">*</span><?php } ?>    </b>

 <div class="float-left">

          <?php foreach ($option['option_value'] as $option_value) { ?>

          <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']; ?>" />

          <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>

          <br />

          <?php } ?>

 

        </div>

        </div>

        <br />

        <?php } ?>

        <?php if ($option['type'] == 'checkbox') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:             <?php if ($option['required']) { ?><span class="required">*</span><?php } ?>     </b>

 <div class="float-left">

          <?php foreach ($option['option_value'] as $option_value) { ?>

          <input 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']; ?>" />

          <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>

          <br />

          <?php } ?>

          </div>

        </div>

        <br />

        <?php } ?>

        <?php if ($option['type'] == 'image') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:             <?php if ($option['required']) { ?><span class="required">*</span><?php } ?></b>

 <div class="float-left">

          <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>

        </div>

        <br />

        <?php } ?>

        <?php if ($option['type'] == 'text') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:               <?php if ($option['required']) { ?><span class="required">*</span> <?php } ?></b>

 <div class="float-left">

          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" />

          </div>

        </div>

        <br />

        <?php } ?>

        <?php if ($option['type'] == 'textarea') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:              <?php if ($option['required']) { ?><span class="required">*</span><?php } ?></b>

 <div class="float-left">

          <textarea name="option[<?php echo $option['product_option_id']; ?>]" cols="40" rows="5"><?php echo $option['option_value']; ?></textarea>

          </div>

        </div>

        <br />

        <?php } ?>

        <?php if ($option['type'] == 'file') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:              <?php if ($option['required']) { ?><span class="required">*</span><?php } ?></b>

 <div class="float-left">

          <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>

        </div>

        <br />

        <?php } ?>

        <?php if ($option['type'] == 'date') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:             <?php if ($option['required']) { ?><span class="required">*</span><?php } ?></b>

 <div class="float-left">

          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="date" />

          </div>

        </div>

        <br />

        <?php } ?>

        <?php if ($option['type'] == 'datetime') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:              <?php if ($option['required']) { ?><span class="required">*</span><?php } ?></b>

 <div class="float-left">

          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="datetime" />

          </div>

        </div>

        <br />

        <?php } ?>

        <?php if ($option['type'] == 'time') { ?>

        <div id="option-<?php echo $option['product_option_id']; ?>" class="option">

 

          <b><?php echo $option['name']; ?>:                 <?php if ($option['required']) { ?><span class="required">*</span><?php } ?></b>

 <div class="float-left">

          <input type="text" name="option[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['option_value']; ?>" class="time" />

          </div>

        </div>

        <br />

        <?php } ?>

        <?php } ?>

      </div>

      <?php } ?>

      <div class="cart">

 

<div class="boxCount">

<b><?php echo $text_qty; ?></b>

<span class="icoMinus" onclick="jQuery(this).next().val( (parseInt(jQuery(this).next().val())-1)<1 ?1 : (parseInt(jQuery(this).next().val())-1));"> </span>

<input type="text" name="quantity" class="input" size="2" value="<?php echo $minimum; ?>" />

<span class="icoPlus" onclick="jQuery(this).prev().val(parseInt(jQuery(this).prev().val())+1);"></span>

<input type="hidden" name="product_id" size="2" value="<?php echo $product_id; ?>" />

<?php if ($minimum > 1) { ?>        <div class="minimum"><?php echo $text_minimum; ?></div>        <?php } ?>

</div>

        

<input type="button" value="<?php echo $button_cart; ?>" id="button-cart" class="button" />

<span class="wishlist-box"><a onclick="addToWishList('<?php echo $product_id; ?>');"  class="button-sub button-wishlist" ><?php echo $button_wishlist; ?></a></span>

<a onclick="addToCompare('<?php echo $product_id; ?>');"  class="button-sub" style="display:none" ><?php echo $button_compare; ?></a>

      </div>

      <?php if ($review_status) { ?>

      <div class="review">

 

        <div class="share"><!-- AddThis Button BEGIN -->

          <div class="addthis_default_style addthis_32x32_style">

<a class="addthis_button_vk" title="VKontakte"></a>

<a class="addthis_button_mymailru" title="Mail.ru"></a>

<a class="addthis_button_odnoklassniki_ru" title="Odnoklassniki" ></a>

<a class="addthis_button_facebook" title="Facebook"></a>

<a class="addthis_button_twitter" title="Twitter" ></a>

<a class="addthis_button_google" title="Google" ></a>

<a class="addthis_button_email" title="e-mail"></a>

<a class="addthis_button_print" title="Print"></a>

 </div> 

 <script type="text/javascript" src="//s7.addthis.com/js/250/addthis_widget.js"></script> 

          <!-- AddThis Button END --> 

        </div>

      </div>

      <?php } ?>

    </div>

  </div>

  <div id="tabs" class="htabs"><a href="#tab-description"><?php echo $tab_description; ?></a>

    <?php if ($attribute_groups) { ?>

    <a href="#tab-attribute"><?php echo $tab_attribute; ?></a>

    <?php } ?>

    <?php if ($review_status) { ?>

    <a href="#tab-review"><?php echo $tab_review; ?></a>

    <?php } ?>

  </div>

  <div id="tab-description" class="tab-content"><?php echo $description; ?></div>

  <?php if ($attribute_groups) { ?>

  <div id="tab-attribute" class="tab-content">

    <table class="attribute">

      <?php foreach ($attribute_groups as $attribute_group) { ?>

      <thead>

        <tr>

          <td colspan="2"><?php echo $attribute_group['name']; ?></td>

        </tr>

      </thead>

      <tbody>

        <?php foreach ($attribute_group['attribute'] as $attribute) { ?>

        <tr>

          <td><?php echo $attribute['name']; ?></td>

          <td><?php echo $attribute['text']; ?></td>

        </tr>

        <?php } ?>

      </tbody>

      <?php } ?>

    </table>

  </div>

  <?php } ?>

  <?php if ($review_status) { ?>

  <div id="tab-review" class="tab-content">

    <div id="review"></div>

    <h2 id="review-title"><?php echo $text_write; ?></h2>

    <b><?php echo $entry_name; ?></b><br />

    <input type="text" name="name" value="" />

    <br />

    <br />

    <b><?php echo $entry_review; ?></b>

    <textarea name="text" cols="40" rows="8" style="width: 98%;"></textarea>

    <span style="font-size: 11px;"><?php echo $text_note; ?></span><br />

    <br />

    <b><?php echo $entry_rating; ?></b> <span><?php echo $entry_bad; ?></span> 

    <input type="radio" name="rating" value="1" />

     

    <input type="radio" name="rating" value="2" />

     

    <input type="radio" name="rating" value="3" />

     

    <input type="radio" name="rating" value="4" />

     

    <input type="radio" name="rating" value="5" />

     <span><?php echo $entry_good; ?></span><br />

    <br />

    <b><?php echo $entry_captcha; ?></b><br />

    <input type="text" name="captcha" value="" />

    <br />

    <img src="index.php?route=product/product/captcha" alt="" id="captcha" /><br />

    <br />

    <div class="buttons">

      <div class="right"><a id="button-review" class="button"><?php echo $button_continue; ?></a></div>

    </div>

  </div>

  <?php } ?>

  <?php if ($products) { ?>

 

 

<script type="text/javascript">

 

function mycarousel_initCallback(carousel)

{

   // Disable autoscrolling if the user clicks the prev or next button.

   carousel.buttonNext.bind('click', function() {

       carousel.startAuto(0);

   });

 

   carousel.buttonPrev.bind('click', function() {

       carousel.startAuto(0);

   });

 

   // Pause autoscrolling if the user moves with the cursor over the clip.

   carousel.clip.hover(function() {

       carousel.stopAuto();

   }, function() {

       carousel.startAuto();

   });

};

 

jQuery(document).ready(function() {

   jQuery('#special-products').jcarousel({

       auto: 4,

       wrap: null,

       initCallback: mycarousel_initCallback

   });

});

 

</script>

<div class="box-module">

  <div class="box-heading-module"><?php echo $tab_related; ?></div>

  <div class="box-content-module">

    <ul id="special-products" class="box-product jcarousel-skin-tango">

      <?php foreach ($products as $product) { ?>

      <li>

        <?php if ($product['special']) { ?><div class="ifsale"><a href="<?php echo $product['href']; ?>" class="ico-sale"><span class="shadowSale"></span>-<?php echo $product['percent']; ?>%</a></div><?php } ?>

        <?php if ($product['thumb']) { ?>

        <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>

<?php } else {?>

<div class="image"><a href="<?php echo $product['href']; ?>"><img src="/image/nofoto.jpg" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></div> 

        <?php } ?>

        <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>

        <?php if ($product['price']) { ?>

        <div class="price">

          <?php if (!$product['special']) { ?>

          <?php echo $product['price']; ?>

          <?php } else { ?>

          <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>

          <?php } ?>

        </div>

        <?php } ?>

        <?php if ($product['rating']) { ?>

        <div class="rating"><img src="catalog/view/theme/bigdesfashion/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>

        <?php } ?>

        <div class="cart"><a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button"><?php echo $button_cart; ?></a></div>

      </li>

      <?php } ?>

    </ul>

  </div>

</div>

 

 

 

 

 

  <?php } ?>

  <?php if ($tags) { ?>

  <div class="tags"><b><?php echo $text_tags; ?></b>

    <?php for ($i = 0; $i < count($tags); $i++) { ?>

    <?php if ($i < (count($tags) - 1)) { ?>

    <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>,

    <?php } else { ?>

    <a href="<?php echo $tags[$i]['href']; ?>"><?php echo $tags[$i]['tag']; ?></a>

    <?php } ?>

    <?php } ?>

  </div>

  <?php } ?>

  <?php echo $content_bottom; ?></div>

 

 

 

<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="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/bigdesfashion/image/close.png" alt="" class="close" /></div>');

 

$('.success').fadeIn('slow');

 

$('#cart-total').html(json['total']);

 

$('html, body').animate({ scrollTop: 0 }, 'slow'); 

 

$('.product-info .cart .wishlist-box').fadeOut('fast',function () {

$(this).html('<a class="button" href="<?php echo $checkout; ?>"><span><?php echo $button_checkout; ?></span></a>').fadeIn('fast');

}) ;

}

}

});

});

//--></script>

<script type="text/javascript"><!--

$('.colorbox').colorbox({

overlayClose: true,

opacity: 0.5

});

//--></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/bigdesfashion/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"><!--

$('#review .pagination a').live('click', function() {

$('#review').fadeOut('slow');

 

$('#review').load(this.href);

 

$('#review').fadeIn('slow');

 

return false;

});

 

$('#review').load('index.php?route=product/product/review&product_id=<?php echo $product_id; ?>');

 

$('#button-review').bind('click', function() {

$.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();

$('#button-review').attr('disabled', true);

$('#review-title').after('<div class="attention"><img src="catalog/view/theme/bigdesfashion/image/loading.gif" alt="" /> <?php echo $text_wait; ?></div>');

},

complete: function() {

$('#button-review').attr('disabled', false);

$('.attention').remove();

},

success: function(data) {

if (data['error']) {

$('#review-title').after('<div class="warning">' + data['error'] + '</div>');

}

 

if (data['success']) {

$('#review-title').after('<div class="success">' + data['success'] + '</div>');

 

$('input[name=\'name\']').val('');

$('textarea[name=\'text\']').val('');

$('input[name=\'rating\']:checked').attr('checked', '');

$('input[name=\'captcha\']').val('');

}

}

});

});

 

 

 

//--></script> 

<script type="text/javascript"><!--

$('#tabs a').tabs();

//--></script> 

<script type="text/javascript" src="catalog/view/javascript/jquery/ui/jquery-ui-timepicker-addon.js"></script> 

<script type="text/javascript"><!--

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> 

<?php echo $footer; ?>

Share this post


Link to post
Share on other sites

Проблему решил другим способом , удалил модели с товаров с помощью вот этого модуля xml

Удаляет модель с товаров .Требуется vmod . Теперь выглядит вот так 

model_remove.xml

post-710401-0-29561500-1464168542_thumb.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.