Commit 2ecec624 by lmf

详情页增加尺码选中功能

详情页面描述默认打开
parent b2e6cc85
......@@ -222,7 +222,7 @@ if ($description) :
<div class="joshine-desction">
<div id="accordion" data-mage-init='{
"accordion":{
"active": [1, 2],
"active": [0],
"collapsible": true,
"openedState": "active",
"multipleCollapsible": true
......@@ -230,7 +230,7 @@ if ($description) :
<div data-role="collapsible">
<div data-role="trigger" class="description-button">
<a class="desction-left description info-desc" href="#">description</a>
<a class="desction-right description info-desc" href="#">+</a>
<a class="desction-right description info-desc" href="#">-</a>
</div>
</div>
<div data-role="content" id="description">
......
......@@ -134,7 +134,12 @@
</ul>
<div class="area-content">
<div id="size-chart" style="display: none;">
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('product-intro-size-chart')->toHtml();?>
<?php
$productCharTemplate = $block->getProduct()->getAttributeText("sizeTemplate");
if (empty($block->getProduct()->getAttributeText("sizeTemplate"))){
$productCharTemplate = "product-size-chart-default";
}
echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId($productCharTemplate)->toHtml();?>
</div>
<div id="free-return" style="display: none;">
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('product-intro-free-return')->toHtml();?>
......
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