M
M
mts20502016-03-10 19:00:14
opencart
mts2050, 2016-03-10 19:00:14

Short description and social network buttons are not displayed. How to fix?

The product page does not display a short description and social. buttons.
CMS: ocStore
Here is the code. Please tell me how to fix it.

<div class="col-lg-6 hidden-md hidden-sm hidden-xs">
              <?php if (!$short_description_off) { ?>
              <h5><strong><?php echo $product_short_description_text; ?></strong></h5>
              <p><?php echo utf8_substr(strip_tags(html_entity_decode($description, ENT_QUOTES, 'UTF-8')), 0, 330) . '... ' ?><a href="" class="red-link" onclick="$('a[href=\'#tab-description\']').trigger('click'); $('html, body').animate({ scrollTop: $('a[href=\'#tab-description\']').offset().top - 6}, 250); return false;"><?php echo $product_read_more_text; ?> &#8594;</a></p>
              <?php } ?>							
              <?php if (!$short_attribute_off) { ?>
              <?php if ($attribute_groups) { ?>
              <?php $i = 0; ?>
              <?php foreach ($attribute_groups as $attribute_group) { ?>
              
              <?php if ($i < 8) { ?>
                <h5><strong><?php echo $attribute_group['name']; ?></strong></h5>
                <table class="short-attr-table">
                  <tbody>
                    <?php foreach ($attribute_group['attribute'] as $attribute) { ?>
                    <?php if ($i < 8) { ?>
                      <tr>
                        <td class="left"><span><?php echo $attribute['name']; ?></span></td>
                        <td class="right"><span><?php echo $attribute['text']; ?></span></td>												
                      </tr>
                    <?php } ?>
                    <?php $i++ ?>
                    <?php } ?>
                  </tbody>
                </table>							
              <?php } ?>							
              <?php $i++ ?>
              <?php } ?>
              <p>...</p>
              <p><button class="btn btn-sm btn-default" onclick="$('a[href=\'#tab-specification\']').trigger('click'); $('html, body').animate({ scrollTop: $('a[href=\'#tab-specification\']').offset().top - 2}, 250); return false;"><?php echo $product_all_specifications_text; ?></button></p>
              <?php } ?>
              <br>
              <?php } ?>							
              <?php if (!$social_likes_off) { ?>
              <div class="social-likes" style="margin-bottom:20px;">
                <div class="facebook" title="<?php echo $product_share_text; ?> на Facebook">Facebook</div>
                <div class="twitter" title="<?php echo $product_share_text; ?> в Twitter">Twitter</div>
                <div class="vkontakte" title="<?php echo $product_share_text; ?> во Вконтакте">Вконтакте</div>
                <div class="plusone" title="<?php echo $product_share_text; ?> в Google+">Google+</div>
              </div>
              <?php } ?>							
            </div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shockoway, 2016-03-10
@mts2050

<?php if (!$short_description_off) { ?>
<?php if (!$social_likes_off) { ?>

Do you need this check?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question