Комментарии (1)

  • Решение
    Колмаков Игорь 9 февраля 2016 11:02 #

    В файле "product.html"

    1. замените блок кода

    {if $product.description}<li class="selected"><a data-name="description" href="{$wa->shop->productUrl($product)}">[`Description`]</a></li>{/if}
    {if $product.features}<li><a data-name="features" href="{$wa->shop->productUrl($product)}">[`Features`]</a></li>{/if}

    на

    {if $product.description || $product.features}<li class="selected"><a data-name="description" href="{$wa->shop->productUrl($product)}">[`Description`]</a></li>{/if}

    2. замените блок кода

    {if $product.description}
        <h2 class="product-tabs-nav-trigger-wrapper"><a class="product-tabs-nav-trigger" data-name="description" href="{$wa->shop->productUrl($product)}">[`Description`]</a></h2>
        <div id="product-tab-description" class="product-tab">
            <div id="product-description" itemprop="description">{$product.description}</div>
        </div>
    {/if}
    {if $product.features}<!-- product features -->
        {$_valid_features = ['color','weight']}
        <h2 class="product-tabs-nav-trigger-wrapper"><a class="product-tabs-nav-trigger" data-name="features" href="{$wa->shop->productUrl($product)}">[`Features`]</a></h2>
        <div id="product-tab-features" class="product-tab">
            <table class="features striped" id="product-features">
                {foreach $product.features as $f_code => $f_value}
                    <tr{if $features[$f_code].type == 'divider'} class="divider"{/if}>
                        <td class="name">
                            {$features[$f_code].name|escape}
                        </td>
                        <td class="value"{if in_array($f_code|escape, $_valid_features)} itemprop="{$f_code|escape}"{/if}>
                            {if is_array($f_value)}
                                {if $features[$f_code].type == 'color'}
                                    {implode('<br /> ', $f_value)}
                                {else}
                                    {implode(', ', $f_value)}
                                {/if}
                            {else}
                                {$f_value}
                            {/if}
                        </td>
                    </tr>
                {/foreach}
            </table>
        </div>
     {/if}

    на

    {if $product.description || $product.features}
        <div id="product-tab-description" class="product-tab">
            <div class="row-grid">
                {if $product.description}<div id="product-description" itemprop="description" class="col-grid s12{if $product.features} l6{/if}">{$product.description}</div>{/if}
                {if $product.features}<!-- product features -->
                    {$_valid_features = ['color','weight']}
                    <div class="col-grid s12{if $product.description} l6{/if}">
                        <table class="features striped" id="product-features">
                            {foreach $product.features as $f_code => $f_value}
                                <tr{if $features[$f_code].type == 'divider'} class="divider"{/if}>
                                    <td class="name">
                                        {$features[$f_code].name|escape}
                                    </td>
                                    <td class="value"{if in_array($f_code|escape, $_valid_features)} itemprop="{$f_code|escape}"{/if}>
                                        {if is_array($f_value)}
                                            {if $features[$f_code].type == 'color'}
                                                {implode('<br /> ', $f_value)}
                                            {else}
                                                {implode(', ', $f_value)}
                                            {/if}
                                        {else}
                                            {$f_value}
                                        {/if}
                                    </td>
                                </tr>
                            {/foreach}
                        </table>
                    </div>
                {/if}
            </div>
        </div>
    {/if}

    3. в пользоватльских стилях http://wm-site.ru/profitbuy/290/blok-polzovatelski...

    пропишите правило

    table.features.striped td.name {
        min-width: 0;
    }


    1

Добавить ответ

Чтобы добавить комментарий, зарегистрируйтесь или войдите

Услуги

Контакты

Дорогие друзья!

К сожалению, Ваш браузер не поддерживает современные технологии используемые на нашем сайте.

Пожалуйста, обновите браузер, скачав его по ссылкам ниже, или обратитесь к системному администратору, обслуживающему Ваш компьютер.

Internet Explorer

от Microsoft

Chrome

от Google

Safari

от Apple

Opera

от Opera Software

Firefox

от Mozilla

Вверх