Commit 5b86335a by halweg

no message

parent 5c0f7253
...@@ -132,8 +132,8 @@ class Sizechart extends \Magento\Catalog\Block\Product\AbstractProduct ...@@ -132,8 +132,8 @@ class Sizechart extends \Magento\Catalog\Block\Product\AbstractProduct
$chartTableArray = []; $chartTableArray = [];
if ($sizeChart != null) { if ($sizeChart != null) {
$chartTable = $sizeChart->getData('custom_size'); $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
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../lib/internal/Magento/Framework/View/Layout/etc/page_configuration.xsd"> <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> <body>
<referenceContainer name="content"> <referenceContainer name="content">
<uiComponent name="magepow_sizechart_sizechart_listing"/> <uiComponent name="magepow_sizechart_sizechart_listing"/>
......
...@@ -5,7 +5,7 @@ ...@@ -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" <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" value="<?= $block->getCustomSizeData()['column_label'] ?? '' ?>" title="Name" class="required_entry input-text admin__control-text required-entry _required"
type="text" aria-required="true"> type="text" aria-required="true">
......
...@@ -113,7 +113,6 @@ ...@@ -113,7 +113,6 @@
#fme_sizechart_table_th { #fme_sizechart_table_th {
background: #111; background: #111;
border: 1px solid #111; border: 1px solid #111;
font-size:16px;
padding:8px 0; padding:8px 0;
color: #fff; color: #fff;
font-weight: 600 !important; font-weight: 600 !important;
...@@ -128,7 +127,8 @@ ...@@ -128,7 +127,8 @@
} }
#fme_sizechart_table .th, .table .td { #fme_sizechart_table .th, .table .td {
padding: .5rem !important; font-size: .9rem;
padding: .33rem !important;
text-align: center; text-align: center;
} }
...@@ -185,7 +185,6 @@ ...@@ -185,7 +185,6 @@
display: inline-block; display: inline-block;
padding: 0 0.9rem; padding: 0 0.9rem;
line-height: 1.99rem; line-height: 1.99rem;
font-size: 1.15rem;
height: 2rem; height: 2rem;
border: 1px solid #f3f3f3; border: 1px solid #f3f3f3;
color: #666; color: #666;
......
...@@ -419,12 +419,12 @@ define([ ...@@ -419,12 +419,12 @@ define([
for (let i = 0; i < labelLen; i++) { for (let i = 0; i < labelLen; i++) {
if (i == 0) { if (i == 0) {
label += currentItem[i]+" : "; label += currentItem[i]+" : ";
continue; continue;
} }
label += option[i] + currentItem[i] +"(cm)"; label += option[i] + ' ' + currentItem[i] +"(cm)";
if (i < labelLen - 1) { if (i < labelLen - 1) {
label +=", "; label +=", ";
} }
} }
...@@ -601,7 +601,6 @@ define([ ...@@ -601,7 +601,6 @@ define([
if (item.id == 137) { if (item.id == 137) {
// Create new control // Create new control
var sizeContent = '<div class="swatch-attribute-selected-option-size-content" style="display:block;">'+ 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>'; '<span class="'+classes.attributeSelectedOptionLabelClass + '">'+that._getSizeChartData(item, optionConfig[137][item.options[0].id].value)+'</span></div>';
container.append( container.append(
......
...@@ -2704,7 +2704,7 @@ button.action.submit.primary { ...@@ -2704,7 +2704,7 @@ button.action.submit.primary {
} }
.swatch-attribute.size .swatch-attribute-selected-option{ .swatch-attribute.size .swatch-attribute-selected-option{
font-size: .8rem; font-size: .85rem;
} }
.swatch-attribute-selected-option-size-content{ .swatch-attribute-selected-option-size-content{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment