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
05106c46
Commit
05106c46
authored
Dec 08, 2022
by
lmf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试代码
parent
5c2acdd7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/code/Magento/Catalog/Model/Product/Gallery/GalleryManagement.php
+2
-2
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
+3
-3
No files found.
app/code/Magento/Catalog/Model/Product/Gallery/GalleryManagement.php
View file @
05106c46
...
...
@@ -100,7 +100,7 @@ class GalleryManagement implements \Magento\Catalog\Api\ProductAttributeMediaGal
$existingMediaGalleryEntries
=
$product
->
getMediaGalleryEntries
();
if
(
$existingMediaGalleryEntries
==
null
)
{
throw
new
NoSuchEntityException
(
__
(
'No image with the provided ID was found. Verify the ID and try again.'
)
__
(
'No image with the provided ID was found. Verify the ID and try again
11111111111
.'
)
);
}
$found
=
false
;
...
...
@@ -116,7 +116,7 @@ class GalleryManagement implements \Magento\Catalog\Api\ProductAttributeMediaGal
}
if
(
!
$found
)
{
throw
new
NoSuchEntityException
(
__
(
'No image with the provided ID was found. Verify the ID and try again.'
)
__
(
'No image with the provided ID was found. Verify the ID and try again
22222222222
.'
)
);
}
$product
->
setMediaGalleryEntries
(
$existingMediaGalleryEntries
);
...
...
app/design/frontend/Joshine/breeze/Magento_Cms/templates/default/home.phtml
View file @
05106c46
...
...
@@ -67,18 +67,18 @@
overflow
:
"hidden"
}).
children
(
".imgbox"
).
css
({
"width"
:
"100%"
,
"height"
:
"280px"
,
}).
children
(
"a"
).
css
({
position
:
"absolute"
,
left
:
1920
,
top
:
0
,
"width"
:
"100%"
,
"height"
:
"280px"
,
}).
eq
(
0
).
css
({
left
:
0
}).
end
().
children
(
"img"
).
css
({
"width"
:
"100%"
,
"height"
:
"280px"
,
});
}
this
.
_obj
.
init
();
...
...
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