Commit 5989c2b1 by dhn

修改购物车属性展示溢出bug,修改支付页运输方式信息溢出bug

parent 7af77d29
......@@ -23,6 +23,11 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
.item-options-line span:first-child{
width:30%;
}
@media (max-width: 1024px){
.cart-container .cart.table-wrapper .item-options {
min-width: 100px;
}
}
</style>
<tbody class="cart item">
<tr class="item-info">
......@@ -55,20 +60,25 @@ $canApplyMsrp = $helper->isShowBeforeOrderConfirm($product) && $helper->isMinima
<div class="item-options-line">
<?php $_formatedOptionValue = $block->getFormatedOptionValue($_option) ?>
<span style="margin-top: 0px;"><?= $block->escapeHtml($_option['label']) ?></span>
<?php
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$resource = $objectManager->get('Magento\Framework\App\ResourceConnection');
$connection = $resource->getConnection();
?>
<span>
<?php if ($_option['label'] != 'Size'){ ?>
<?php if (isset($_formatedOptionValue['full_view'])) :?>
<?= $block->escapeHtml($_formatedOptionValue['full_view']) ?>
<?php else :?>
<?= $block->escapeHtml($_formatedOptionValue['value'], ['span', 'a']) ?>
<?php endif; ?>
<?php }else{
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$resource = $objectManager->get('Magento\Framework\App\ResourceConnection');
$connection = $resource->getConnection();
<?php
$tableName = $resource->getTableName('eav_attribute_option_value');
$sql = "Select * FROM " . $tableName ." where store_id=0 AND option_id=".$_option['option_value'];
$result = $connection->fetchRow($sql);
?>
<?= $block->escapeHtml($result['value']) ?>
<?php }else{
$tableName = $resource->getTableName('eav_attribute_option_swatch');
$sql = "Select * FROM " . $tableName ." where store_id=0 AND option_id=".$_option['option_value'];
$result = $connection->fetchRow($sql);
echo $result['value'];
} ?>
</span>
......
......@@ -137,8 +137,6 @@
overflow-y: overlay;
}
}
#maincontent .page-title-wrapper #page-title-heading .base{
display: none;
}
......@@ -794,10 +792,6 @@ p.shopbycate-title {
font-size: 13px;
color: #777777;
}
.free-over{
font-size: 16px;
color: #000;
}
.checkout-index-index #checkout-step-shipping_method .table-checkout-shipping-method .row .col.col-method{
margin:0px 1rem;
padding: 0;
......@@ -895,6 +889,10 @@ p.shopbycate-title {
.checkout-cart-index .checkout-methods-items {
background-color: #fff;
}
.free-over{
font-size: 16px;
color: #000;
}
}
.recently-viewed .product-info-promotion-span{
position: absolute;
......@@ -910,10 +908,14 @@ p.shopbycate-title {
margin:0;
}
.checkout-index-index .method-content .method-msg{
padding: 5px 0px 5px 2.2rem;
font-size: 13px;
padding: 5px 0 5px 2.2rem;
font-size: 12px;
color: #777777;
}
.checkout-index-index .free-over{
font-size: 13px;
color: #000;
}
.checkout-cart-index .cart-container .cart-summary > .title {
padding: 1rem 0px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment