Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joshine
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
joshine
Commits
5989c2b1
Commit
5989c2b1
authored
Apr 12, 2023
by
dhn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改购物车属性展示溢出bug,修改支付页运输方式信息溢出bug
parent
7af77d29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
17 deletions
+29
-17
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/item/default.phtml
+19
-9
app/design/frontend/Joshine/breeze/web/css/_custom.less
+10
-8
No files found.
app/design/frontend/Joshine/breeze/Magento_Checkout/templates/cart/item/default.phtml
View file @
5989c2b1
...
...
@@ -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
:
0
px
;
"><?=
$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>
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
5989c2b1
...
...
@@ -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 0
px
5px 2.2rem;
font-size: 1
3
px;
padding: 5px 0 5px 2.2rem;
font-size: 1
2
px;
color: #777777;
}
.checkout-index-index .free-over{
font-size: 13px;
color: #000;
}
.checkout-cart-index .cart-container .cart-summary > .title {
padding: 1rem 0px;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment