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
09b09a77
Commit
09b09a77
authored
Oct 10, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复描述多余显示
parent
a2c61f71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/attribute.phtml
+6
-1
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/attributes.phtml
+2
-1
No files found.
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/attribute.phtml
View file @
09b09a77
...
@@ -41,7 +41,12 @@ if ($_attributeType && $_attributeType == 'text') {
...
@@ -41,7 +41,12 @@ if ($_attributeType && $_attributeType == 'text') {
?
$_product
->
getAttributeText
(
$_code
)
?
$_product
->
getAttributeText
(
$_code
)
:
''
;
:
''
;
}
else
{
}
else
{
$_attributeValue
=
$_helper
->
productAttribute
(
$_product
,
$_product
->
$_call
(),
$_code
);
if
(
$_code
==
"short_description"
){
$_attributeValue
=
""
;
}
else
{
$_attributeValue
=
$_helper
->
productAttribute
(
$_product
,
$_product
->
$_call
(),
$_code
);
}
}
}
?>
?>
...
...
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/attributes.phtml
View file @
09b09a77
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
<table class="
data
table
additional
-
attributes
" id="
product
-
attribute
-
specs
-
table
">
<table class="
data
table
additional
-
attributes
" id="
product
-
attribute
-
specs
-
table
">
<caption class="
table
-
caption
"><?=
$block->escapeHtml
(__('More Information')) ?></caption>
<caption class="
table
-
caption
"><?=
$block->escapeHtml
(__('More Information')) ?></caption>
<tbody>
<tbody>
<?php foreach (
$_additional
as
$_data
) :?>
<?php
foreach (
$_additional
as
$_data
) :?>
<tr>
<tr>
<th class="
col
label
" scope="
row
"><?=
$block->escapeHtml
(
$_data['label']
) ?></th>
<th class="
col
label
" scope="
row
"><?=
$block->escapeHtml
(
$_data['label']
) ?></th>
<td class="
col
data
" data-th="
<?=
$block
->
escapeHtmlAttr
(
$_data
[
'label'
])
?>
">
<?=
/* @noEscape */
$_helper
->
productAttribute
(
$_product
,
$_data
[
'value'
],
$_data
[
'code'
])
?>
</td>
<td class="
col
data
" data-th="
<?=
$block
->
escapeHtmlAttr
(
$_data
[
'label'
])
?>
">
<?=
/* @noEscape */
$_helper
->
productAttribute
(
$_product
,
$_data
[
'value'
],
$_data
[
'code'
])
?>
</td>
...
...
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