Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Panasonic
Project
Project
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
John
Panasonic
Commits
2a6395f3
Commit
2a6395f3
authored
Jan 10, 2017
by
John Punzalan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update product view, add image
parent
bd17794b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
view.phtml
...rontend/lecanal/oscar/template/catalog/product/view.phtml
+6
-2
media.phtml
...d/lecanal/oscar/template/catalog/product/view/media.phtml
+2
-0
No files found.
app/design/frontend/lecanal/oscar/template/catalog/product/view.phtml
View file @
2a6395f3
...
...
@@ -33,6 +33,7 @@
?>
<?php
$_helper
=
$this
->
helper
(
'catalog/output'
);
?>
<?php
$_product
=
$this
->
getProduct
();
?>
<?php
$no_display_image_id
=
array
(
1
,
2
,
3
);
?>
<script
type=
"text/javascript"
>
var
optionsPrice
=
new
Product
.
OptionsPrice
(
<?php
echo
$this
->
getJsonConfig
()
?>
);
</script>
...
...
@@ -46,8 +47,11 @@
<input
type=
"hidden"
name=
"related_product"
id=
"related-products-field"
value=
""
/>
</div>
<div
class=
"col-md-7"
>
<div
class=
"image-product"
id=
"
<?=
strtolower
(
$_product
->
getSku
())
?>
"
></div>
<!-- -->
<?php
//echo $this->getChildHtml('media') ?>
<div
class=
"image-product"
id=
"
<?=
strtolower
(
$_product
->
getSku
())
?>
"
>
<?php
if
(
!
in_array
(
$_product
->
getId
(),
$no_display_image_id
))
:
?>
<?php
echo
$this
->
getChildHtml
(
'media'
)
?>
<?php
endif
;
?>
</div>
</div>
<div
class=
"col-md-5"
>
<div
class=
"product-info-block"
>
...
...
app/design/frontend/lecanal/oscar/template/catalog/product/view/media.phtml
View file @
2a6395f3
...
...
@@ -41,4 +41,6 @@ $_helper = $this->helper('catalog/output');
<img
itemprop=
"image"
class=
"rsImg cloudzoom"
data-rsTmb=
"
<?php
echo
$this
->
helper
(
'catalog/image'
)
->
init
(
$this
->
getProduct
(),
'thumbnail'
,
$_image
->
getFile
())
->
resize
(
600
)
?>
"
data-cloudzoom=
"zoomImage: '
<?php
echo
$this
->
helper
(
'catalog/image'
)
->
init
(
$this
->
getProduct
(),
'image'
,
$_image
->
getFile
())
->
constrainOnly
(
TRUE
)
->
keepAspectRatio
(
TRUE
)
->
keepFrame
(
FALSE
)
->
resize
(
1200
,
null
)
?>
', zoomSizeMode:'image'"
src=
"
<?php
echo
$this
->
helper
(
'catalog/image'
)
->
init
(
$this
->
getProduct
(),
'image'
,
$_image
->
getFile
())
->
constrainOnly
(
TRUE
)
->
keepAspectRatio
(
TRUE
)
->
keepFrame
(
FALSE
)
->
resize
(
600
,
null
)
?>
"
width=
"400"
/>
<?php
endforeach
;
?>
</div>
<?php
else
:
?>
<img
src=
"
<?=
$_product
->
getImage
()
?>
"
/>
<?php
endif
;
?>
\ No newline at end of file
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