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
5b86335a
Commit
5b86335a
authored
May 17, 2023
by
halweg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5c0f7253
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
12 deletions
+10
-12
app/code/Magepow/Sizechart/Block/Product/Sizechart.php
+3
-2
app/code/Magepow/Sizechart/view/adminhtml/layout/magepow_sizechart_sizechart_index.xml
+0
-1
app/code/Magepow/Sizechart/view/adminhtml/templates/columnLabel.phtml
+1
-1
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
+2
-3
app/design/frontend/Joshine/breeze/Magento_Swatches/web/js/swatch-renderer.js
+3
-4
app/design/frontend/Joshine/breeze/web/css/_custom.less
+1
-1
No files found.
app/code/Magepow/Sizechart/Block/Product/Sizechart.php
View file @
5b86335a
...
...
@@ -132,8 +132,8 @@ class Sizechart extends \Magento\Catalog\Block\Product\AbstractProduct
$chartTableArray
=
[];
if
(
$sizeChart
!=
null
)
{
$chartTable
=
$sizeChart
->
getData
(
'custom_size'
);
$chartTableArray
=
json_encode
(
$chartTable
,
true
)
;
$chartTableArray
=
$chartTable
;
}
return
$chartTableArray
;
return
json_encode
(
$chartTableArray
,
true
)
;
}
}
\ No newline at end of file
app/code/Magepow/Sizechart/view/adminhtml/layout/magepow_sizechart_sizechart_index.xml
View file @
5b86335a
<page
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd"
>
<update
handle=
"styles"
/>
<body>
<referenceContainer
name=
"content"
>
<uiComponent
name=
"magepow_sizechart_sizechart_listing"
/>
...
...
app/code/Magepow/Sizechart/view/adminhtml/templates/columnLabel.phtml
View file @
5b86335a
...
...
@@ -5,7 +5,7 @@
?>
<div
class=
"admin__control
-wysiwig
"
id=
"content_single_field"
>
<div
class=
"admin__control"
id=
"content_single_field"
>
<input
id=
"content"
name=
"column_label"
data-ui-id=
"adminhtml-sizechart-edit-tab-main-0-fieldset-element-text-name"
value=
"
<?=
$block
->
getCustomSizeData
()[
'column_label'
]
??
''
?>
"
title=
"Name"
class=
"required_entry input-text admin__control-text required-entry _required"
type=
"text"
aria-required=
"true"
>
...
...
app/design/frontend/Joshine/breeze/Magento_Catalog/templates/product/view/addtocart.phtml
View file @
5b86335a
...
...
@@ -113,7 +113,6 @@
#fme_sizechart_table_th
{
background
:
#111
;
border
:
1px
solid
#111
;
font-size
:
16px
;
padding
:
8px
0
;
color
:
#fff
;
font-weight
:
600
!important
;
...
...
@@ -128,7 +127,8 @@
}
#fme_sizechart_table
.th
,
.table
.td
{
padding
:
.5rem
!important
;
font-size
:
.9rem
;
padding
:
.33rem
!important
;
text-align
:
center
;
}
...
...
@@ -185,7 +185,6 @@
display
:
inline-block
;
padding
:
0
0.9rem
;
line-height
:
1.99rem
;
font-size
:
1.15rem
;
height
:
2rem
;
border
:
1px
solid
#f3f3f3
;
color
:
#666
;
...
...
app/design/frontend/Joshine/breeze/Magento_Swatches/web/js/swatch-renderer.js
View file @
5b86335a
...
...
@@ -419,12 +419,12 @@ define([
for
(
let
i
=
0
;
i
<
labelLen
;
i
++
)
{
if
(
i
==
0
)
{
label
+=
currentItem
[
i
]
+
"
: "
;
label
+=
currentItem
[
i
]
+
" : "
;
continue
;
}
label
+=
option
[
i
]
+
currentItem
[
i
]
+
"(cm)"
;
label
+=
option
[
i
]
+
' '
+
currentItem
[
i
]
+
"(cm)"
;
if
(
i
<
labelLen
-
1
)
{
label
+=
",
"
;
label
+=
", "
;
}
}
...
...
@@ -601,7 +601,6 @@ define([
if
(
item
.
id
==
137
)
{
// Create new control
var
sizeContent
=
'<div class="swatch-attribute-selected-option-size-content" style="display:block;">'
+
'<div>'
+
$
.
mage
.
__
(
"Product Size Describe"
)
+
'</div>'
+
'<span class="'
+
classes
.
attributeSelectedOptionLabelClass
+
'">'
+
that
.
_getSizeChartData
(
item
,
optionConfig
[
137
][
item
.
options
[
0
].
id
].
value
)
+
'</span></div>'
;
container
.
append
(
...
...
app/design/frontend/Joshine/breeze/web/css/_custom.less
View file @
5b86335a
...
...
@@ -2704,7 +2704,7 @@ button.action.submit.primary {
}
.swatch-attribute.size .swatch-attribute-selected-option{
font-size: .8rem;
font-size: .8
5
rem;
}
.swatch-attribute-selected-option-size-content{
...
...
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