Косяк верстки в корзине
Добавлено: 05.05.2018, 10:02
В корзине на "мобильной" верстке виднеется блок-кусок от купонов.
Лечим:
В файле cart_purchases.tpl в находим 90 строку и наблюдаем:
Необходимо проверку на купоны переместить выше блока <td colspan="3" class="coupon text_left">не забыв {/if} перенести под </td> + добавить проверку на купоны в блоке <td colspan="2" class="purchase_total">:
Лечим:
В файле cart_purchases.tpl в находим 90 строку и наблюдаем:
Код: Выделить всё
<tfoot>
<tr>
<td colspan="3" class="coupon text_left">
{* Coupon *}
{if $coupon_request}
{* Coupon error messages *}
{if $coupon_error}
<div class="message_error">
{if $coupon_error == 'invalid'}
{$lang->cart_coupon_error}
{/if}
</div>
{/if}
{if $cart->coupon->min_order_price > 0}
<div class="message_success">
{$lang->cart_coupon} {$cart->coupon->code|escape} {$lang->cart_coupon_min} {$cart->coupon->min_order_price|convert} {$currency->sign|escape}
</div>
{/if}
{* Coupon field *}
<input class="fn_coupon input_coupon" type="text" name="coupon_code" value="{$cart->coupon->code|escape}" placeholder="{$lang->cart_coupon}">
<input class="coupon_button fn_sub_coupon" type="button" value="{$lang->cart_purchases_coupon_apply}">
{/if}
</td>
<td colspan="2" class="purchase_total">
{* Total *}
<span data-language="cart_total_price">{$lang->cart_total_price}:</span>
<span class="total_sum nowrap">{$cart->total_price|convert} {$currency->sign|escape}</span>
</td>
<td></td>
</tr>
</tfoot>
Необходимо проверку на купоны переместить выше блока <td colspan="3" class="coupon text_left">не забыв {/if} перенести под </td> + добавить проверку на купоны в блоке <td colspan="2" class="purchase_total">:
Код: Выделить всё
<tfoot>
<tr>
{* Coupon *}
{if $coupon_request}
<td colspan="3" class="coupon text_left">
{* Coupon error messages *}
{if $coupon_error}
<div class="message_error">
{if $coupon_error == 'invalid'}
{$lang->cart_coupon_error}
{/if}
</div>
{/if}
{if $cart->coupon->min_order_price > 0}
<div class="message_success">
{$lang->cart_coupon} {$cart->coupon->code|escape} {$lang->cart_coupon_min} {$cart->coupon->min_order_price|convert} {$currency->sign|escape}
</div>
{/if}
{* Coupon field *}
<input class="fn_coupon input_coupon" type="text" name="coupon_code" value="{$cart->coupon->code|escape}" placeholder="{$lang->cart_coupon}">
<input class="coupon_button fn_sub_coupon" type="button" value="{$lang->cart_purchases_coupon_apply}">
</td>
{/if}
<td {if $coupon_request}colspan="2"{else}colspan="5"{/if} class="purchase_total">
{* Total *}
<span data-language="cart_total_price">{$lang->cart_total_price}:</span>
<span class="total_sum nowrap">{$cart->total_price|convert} {$currency->sign|escape}</span>
</td>
<td></td>
</tr>
</tfoot>