Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coconva2118
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hanumant Pratap Singh
coconva2118
Commits
3b8e7747
Commit
3b8e7747
authored
5 years ago
by
Ketan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating changes for cropper.
parent
754d3428
develop
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1637 additions
and
7 deletions
+1637
-7
details.phtml
...op4u/Magento_Catalog/templates/product/view/details.phtml
+6
-5
croppie.js
pub/static/frontend/Sm/shop4u/en_US/jquery/croppie.js
+1625
-0
requirejs-config.js
pub/static/frontend/Sm/shop4u/en_US/requirejs-config.js
+6
-2
No files found.
app/design/frontend/Sm/shop4u/Magento_Catalog/templates/product/view/details.phtml
View file @
3b8e7747
...
@@ -64,10 +64,10 @@ $show_custom_tab = $_config->getProductDetail('show_custom_tab');
...
@@ -64,10 +64,10 @@ $show_custom_tab = $_config->getProductDetail('show_custom_tab');
$custom_tab_name
=
$_config
->
getProductDetail
(
'custom_tab_name'
);
$custom_tab_name
=
$_config
->
getProductDetail
(
'custom_tab_name'
);
$customtab_content
=
$_config
->
getProductDetail
(
'customtab_content'
);
$customtab_content
=
$_config
->
getProductDetail
(
'customtab_content'
);
?>
?>
<?php
if
(
!
empty
(
$product
->
getCustomAttribute
(
'tile_price'
))){
?>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"all"
href=
"//localhost/coconva2118/pub/static/version1569245418/frontend/Sm/shop4u/en_US/js/jquery.selectareas.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"all"
href=
"//localhost/coconva2118/pub/static/version1569245418/frontend/Sm/shop4u/en_US/js/jquery.selectareas.css"
>
<?php
if
(
!
empty
(
$product
->
getCustomAttribute
(
'tile_price'
))){
?>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
tile_desc
=
'
<?php
echo
$product
->
getCustomAttribute
(
'tile_price'
)
->
getValue
();
?>
'
;
var
tile_desc
=
'
<?php
echo
$product
->
getCustomAttribute
(
'tile_price'
)
->
getValue
();
?>
'
;
tile_desc
=
tile_desc
.
split
(
'-'
);
tile_desc
=
tile_desc
.
split
(
'-'
);
...
@@ -77,7 +77,7 @@ $customtab_content = $_config->getProductDetail('customtab_content');
...
@@ -77,7 +77,7 @@ $customtab_content = $_config->getProductDetail('customtab_content');
</script>
</script>
<?php
}
?>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
.loader
{
.loader
{
...
@@ -129,6 +129,7 @@ require([
...
@@ -129,6 +129,7 @@ require([
'selectareas'
'selectareas'
//'//localhost/coconva2118/pub/static/version1569245418/frontend/Sm/shop4u/en_US/js/jquery.selectareas.js'
//'//localhost/coconva2118/pub/static/version1569245418/frontend/Sm/shop4u/en_US/js/jquery.selectareas.js'
],
function
(
jQuery
,
selectareas
)
{
],
function
(
jQuery
,
selectareas
)
{
jQuery
(
'.price-final_price'
).
html
(
' '
);
jQuery
.
noConflict
();
jQuery
.
noConflict
();
if
(
jQuery
(
'span:contains('
+
widthLabel
+
')'
).
parent
().
next
(
'div'
).
children
(
'input'
).
length
&&
jQuery
(
'span:contains('
+
heightLabel
+
')'
).
parent
().
next
(
'div'
).
children
(
'input'
).
length
)
{
if
(
jQuery
(
'span:contains('
+
widthLabel
+
')'
).
parent
().
next
(
'div'
).
children
(
'input'
).
length
&&
jQuery
(
'span:contains('
+
heightLabel
+
')'
).
parent
().
next
(
'div'
).
children
(
'input'
).
length
)
{
...
@@ -313,7 +314,7 @@ jQuery('#preloader').remove();
...
@@ -313,7 +314,7 @@ jQuery('#preloader').remove();
});
});
</script>
</script>
<?php
}
?>
<?php
if
(
$detailedInfoGroup
=
$block
->
getGroupChildNames
(
'detailed_info'
,
'getChildHtml'
))
:
?>
<?php
if
(
$detailedInfoGroup
=
$block
->
getGroupChildNames
(
'detailed_info'
,
'getChildHtml'
))
:
?>
<div
class=
"product info detailed"
>
<div
class=
"product info detailed"
>
<?php
$layout
=
$block
->
getLayout
();
?>
<?php
$layout
=
$block
->
getLayout
();
?>
...
...
This diff is collapsed.
Click to expand it.
pub/static/frontend/Sm/shop4u/en_US/jquery/croppie.js
0 → 100644
View file @
3b8e7747
This diff is collapsed.
Click to expand it.
pub/static/frontend/Sm/shop4u/en_US/requirejs-config.js
View file @
3b8e7747
...
@@ -37,11 +37,15 @@ var config = {
...
@@ -37,11 +37,15 @@ var config = {
},
},
paths
:
{
paths
:
{
'jquery/ui'
:
'jquery/jquery-ui'
,
'jquery/ui'
:
'jquery/jquery-ui'
,
'selectareas'
:
'jquery/selectareas'
'selectareas'
:
'jquery/selectareas'
,
'Croppie'
:
'jquery/croppie'
},
},
shim
:
{
shim
:
{
'selectareas'
:
{
'selectareas'
:
{
deps
:
[
'jquery'
]
deps
:
[
'jquery'
]
},
'Croppie'
:
{
deps
:
[
'jquery'
]
}
}
},
},
deps
:
[
deps
:
[
...
...
This diff is collapsed.
Click to expand it.
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