Skynet Posted March 12, 2012 Report Share Posted March 12, 2012 подскажите пожалуйста, как сделать в корзине такие же линии, в файле style.css purchases скопировал с демки, но всёрано не появляются линии в корзинесейчас у меня так: Link to post Share on other sites
m9itbiu Posted March 12, 2012 Report Share Posted March 12, 2012 в шаблоне cart.tpl делайте правки согласно стилям. Link to post Share on other sites
Skynet Posted March 12, 2012 Author Report Share Posted March 12, 2012 уже шаблон сверил, ничего не получается! Link to post Share on other sites
andrewftl Posted March 12, 2012 Report Share Posted March 12, 2012 Скорее всего где-то один div в шаблоне упущен, к которому привязан этот стиль Link to post Share on other sites
m9itbiu Posted March 12, 2012 Report Share Posted March 12, 2012 могли бы кусок кода сюда впихнуть, возможно кто сразу и поправит)) Link to post Share on other sites
Danya Posted March 12, 2012 Report Share Posted March 12, 2012 версия Simpla 2.0.2 тоже без линийcart.tpl{* Список покупок *} <table id="purchases" width="100%"> {foreach from=$cart->purchases item=purchase} <tr id="item_cart_{$purchase->variant->id}"> {* Изображение товара *} <td class="image"> {$image = $purchase->product->images|first} {if $image} <a href="products/{$purchase->product->url}"><img src="{$image->filename|resize:50:50}" alt="{$product->name|escape}"></a> {/if} </td> {* Название товара *} <td class="name"> <a href="products/{$purchase->product->url}">{$purchase->product->name|escape}</a> {$purchase->variant->name|escape} </td> {* Цена за единицу *} <td class="price"> {($purchase->variant->price)|convert} {$currency->sign} </td> {* Количество *} <td class="amount" id="amount_{$purchase->variant->id}"> <select name="amounts[{$purchase->variant->id}]" onchange="update_cart('{$purchase->variant->id}',$(this).val());" class="amounts"> {section name=amounts start=1 loop=$purchase->variant->stock+1 step=1} <option value="{$smarty.section.amounts.index}" {if $purchase->amount==$smarty.section.amounts.index}selected{/if}>{$smarty.section.amounts.index} {$settings->units}</option> {/section} </select> </td> {* Цена *} <td class="price" id="total_cost_{$purchase->variant->id}"> {($purchase->variant->price*$purchase->amount)|convert} {$currency->sign} </td> {* Удалить из корзины *} <td class="remove" id="remove_{$purchase->variant->id}"> <a href="#" onclick="remove_item_cart('{$purchase->variant->id}'); return false"> <img src="design/{$settings->theme}/images/delete.png" title="Удалить из корзины" alt="Удалить из корзины"> </a> </td> </tr> {/foreach} {if $user->discount} <tr> <th class="image"></th> <th class="name">скидка</th> <th class="price"></th> <th class="amount"></th> <th class="price"> {$user->discount} % </th> <th class="remove"></th> </tr> {/if} <tr> <th class="image"></th> <th class="name"></th> <th class="price" colspan="4" id="total_price"> Итого {$cart->total_price|convert} {$currency->sign} </th> </tr> </table>style.css/* @group Корзина */#purchases tr{ border-top: 1px solid #d5d5d5; height: 70px;}#purchases th{ vertical-align: top; padding-top: 10px; font-size: 18px; font-weight: normal;}#purchases .image{ width: 50px; text-align: center;}#purchases .image a{ border: 1px solid #e0e0e0; background-color: #ffffff; margin: 0 7px 7px 0; display: table-cell; vertical-align: middle; text-align: center; width: 50px; height: 50px;}#purchases .name{ padding-left: 10px; padding-right: 10px; text-align: left;}#purchases td.name{ font-size: 14px;}#purchases td .download_attachment{ white-space: nowrap; color: #3b8500; padding: 5px 10px 7px 10px; border-bottom-color: 1px dotted green; background-color: #ccff72; line-height: 30px;}#purchases .price{ padding-left: 5px; padding-right: 5px; white-space: nowrap; text-align: right;}#purchases td.price{ font-size: 14px;}#purchases .remove{ padding-left: 15px; text-align: right;}#purchases .amount{ font-size: 14px; padding-left: 5px; padding-right: 5px;}#purchases .amount select{ font-size:12px;}ul#deliveries{ margin-top: 20px; margin-bottom: 20px; background-color: #ffffff; border: 1px solid #e0e0e0; padding: 20px 20px 0 20px; list-style: none;}ul#deliveries li{ margin-bottom: 20px;}ul#deliveries li div.checkbox{ float: left;}ul#deliveries li h3, ul#deliveries li .description{ display: block; margin-left: 25px;} Link to post Share on other sites
m9itbiu Posted March 12, 2012 Report Share Posted March 12, 2012 я не верстальщик попробуйте так {* Список покупок *}<table id="purchases"> только без \ Link to post Share on other sites
Skynet Posted March 13, 2012 Author Report Share Posted March 13, 2012 и это не подхолит! копирую с демки код и всёравно не работает!админ, подскажите пожалуйста, где копать? у меня версия 2.0.2 Link to post Share on other sites
nightmaar Posted March 13, 2012 Report Share Posted March 13, 2012 border-top: 1px solid #D5D5D5;border-bottom: 1px solid #D5D5D5;Пропишите в стилях для соответствующих элементов ВАШЕЙ корзины. Или дайте живой линк на ваш сайт, чтобы мы могли посмотреть вживую. Link to post Share on other sites
Skynet Posted March 13, 2012 Author Report Share Posted March 13, 2012 ! Link to post Share on other sites
m9itbiu Posted March 13, 2012 Report Share Posted March 13, 2012 только что поставил себе на денвер, все прекрасно работает. Видимо вы что-то наковыряли в шаблоне. поставьте дефолт шаблон, посмотрите как будет на нем Link to post Share on other sites
Inna Posted September 16, 2012 Report Share Posted September 16, 2012 А я вот наоборот пытаюсь эти линии убрать) Link to post Share on other sites
Recommended Posts